Increasing the container SHM

m9p909
HOBBY

a year ago

I have a container that uses a lot of shm, is it possible to increase the shm size?

Archived

9 Replies

a year ago

Can you tell me more about the service you are running?


m9p909
HOBBY

a year ago

I wanted to see if I could get https://hub.docker.com/r/solace/solace-pubsub-standard/ to run. It refuses to start if /dev/shm is less than 1 GiB.


a year ago

Thanks for sharing, I've asked the team and I'll get back to you.


Status changed to Solved Railway over 1 year ago


a year ago

1GB is permissible, you can set the shm size with a RAILWAY_SHM_SIZE_BYTES service variable, this variable accepts a byte value in base 2. E.g 1073741824 for 1GB.

Status changed to Archived brody over 1 year ago


m9p909
HOBBY

a year ago

Putting the byte value in base 2 did not work (1000000000000000000000000000000)

However putting the value in base 10 did
1073741824


a year ago

I have absolutely no clue how you got 1000000000000000000000000000000?

1GB is 1000000000 Bytes in base 10 and 1073741824 Bytes in base 2.


m9p909
HOBBY

a year ago

I know now that you mean't GiB vs GB, but I thought you meant this

Attachments


a year ago

You entered the base 2 number as a base 10 (decimal) number.

This is partially my fault, don't know why I didn't just simply give you the value that you wanted to set.


m9p909
HOBBY

a year ago

Did you see the screenshot? I thought base 2 mean't binary, so I put in the binary number for 1 GiB. I think this is a really funny miscommunication. Thanks for the help!


a year ago

No miscommunications, just a little confusion is all. No worries!


Increasing the container SHM - Railway Help Station