Increasing the container SHM
m9p909
HOBBYOP

2 years ago

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

Archived

9 Replies

brody
EMPLOYEE

2 years ago

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


m9p909
HOBBYOP

2 years 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.


brody
EMPLOYEE

2 years ago

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


Status changed to Solved Railway almost 2 years ago


brody
EMPLOYEE

2 years 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 almost 2 years ago


m9p909
HOBBYOP

2 years ago

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

However putting the value in base 10 did
1073741824


brody
EMPLOYEE

2 years ago

I have absolutely no clue how you got 1000000000000000000000000000000?

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


m9p909
HOBBYOP

2 years ago

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

Attachments


brody
EMPLOYEE

2 years 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
HOBBYOP

2 years 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!


brody
EMPLOYEE

2 years ago

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


Loading...