a year ago
I have a container that uses a lot of shm, is it possible to increase the shm size?
9 Replies
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.
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
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.
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.
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!