Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Let's imagine that we have 8Gb of RAM on server. I'm mounting /dev/shm with 4Gb on board.

mount -o remount,size=4G /dev/shm

Will this memory be strictly reserved for shared memory or if /dev/shm is empty this memory could be used by regular applications (web server, php etc.)?

PS:Sorry for my English.

I'm asking it because I've just checked df -h and found tmpfs 6.0G 0 6.0G 0% /dev/shm on 8Gb RAM sever. I don't know who made this setup, but it seems to me awful.

Thank you!

share|improve this question

1 Answer 1

up vote 1 down vote accepted

No, it's not 'reserved'. It only uses as much RAM as needed. By default (if you don't specify size) it will be 50% the total RAM size.

You only need to worry if you're consistently filling it.

share|improve this answer
@Javier, hello! Thank you for your answer. Please, could you tell me when I can read about it? –  Kirzilla Apr 21 '10 at 12:01

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.