Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Hi i heave heard that what ever we put on /dev/shm will be moved to ram disk.

I am having a situation where /dev/shm is 3 GB and / (5GB) became 100%,only file using that much space is /dev/shm resulting in reboot

i just mounted it by specifying it as tmpfs without specifying any size.

Can this cause files put into /dev/shm to appear on HDD rather than on ram resulting in disk becoming full.

share|improve this question

/dev/shm uses the shmfs filesystem, which uses VMM memory to simulate a disk volume.
If you have a swap file or partition, and try to populate the shmfs beyond what free memory you have available, it will swap.

Needless to say, you don't want this to happen; this is why shmfs is only 50% of your physical memory by default.

share|improve this answer
but i am having 50GB ram space with 100% free space for swap only 5GB is allocated to / but for some reason / is 100% and /dev/shm using tmpfs file system consuming 3GB. – kevin Jan 29 '13 at 12:59
So your problem probably lies elsewhere. What has increased usage in / ? – Matt Jan 29 '13 at 14:00

I believe it will only drastically slow down your system.

More info here

share|improve this answer
i am having enough ram,currently i am facing 100% / usage.i am using /dev/shm for saving DB sessions which became 3GB.Can there be any reason for disk to be used instead of ram? – kevin Jan 29 '13 at 12:46

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.