Fedora Linux Support Community & Resources Center
  #1  
Old 5th December 2009, 06:08 PM
James Board Offline
Registered User
 
Join Date: Mar 2008
Posts: 276
linuxfedorafirefox
/dev/shm

I just noticed this in my "df" output:
Code:
    >df | grep tmpfs
    tmpfs                   224224         0    224224   0% /dev/shm
There's an entry in /etc/fstab which mounts this automatically. If I interpret that correctly, that's a 224 mbyte ramdisk that is consuming 224 mbytes of system memory whether or not I use it. Is that correct?

If so, will anything break if I unmount it and delete it from /etc/fstab? Do programs typically depend on it? I'd like to reclaim the system memory (low DRAM machine) for other uses.
Reply With Quote
  #2  
Old 5th December 2009, 06:55 PM
Camberwell's Avatar
Camberwell Offline
Registered User
 
Join Date: Mar 2006
Location: Wallingford, Oxfordshire, UK
Age: 34
Posts: 293
linuxfedorafirefox
is there anything in that folder?

I've got some stuff in mine from pulseaudio...

Code:
[martin@localhost ~]$ ls /dev/shm
pulse-shm-1228622519  pulse-shm-2601782879
I probably wouldn't get rid of it tho, personally
__________________
Processor: AMD Athlon(tm) 64 X2 Dual Core Processor 5200+
Memory: 4096MB
OpenGL Renderer: nVidia GeForce 9500 GT/PCI/SSE2
Operating System: Fedora release 18 (Spherical Cow)
Desktop Environment: KDE 4.10
Reply With Quote
  #3  
Old 5th December 2009, 07:43 PM
James Board Offline
Registered User
 
Join Date: Mar 2008
Posts: 276
linuxfedorafirefox
There's nothing in it. And this is about half the memory on this specific machine. I'd love to reclaim all that unused memory.
Reply With Quote
  #4  
Old 5th December 2009, 09:12 PM
robert-e Offline
Registered User
 
Join Date: May 2008
Posts: 720
linuxfedorafirefox
Interesting; mine is much bigger:
[bob@localhost ~]$ df | grep tmpfs
tmpfs 772120 312 771808 1% /dev/shm


I looked into it, and it has two lines refering to Pulse Audio. This machine has 1.5 Gbytes of ram, and that is about half of it. I will watch this thead for further comments regarding this ram disk.

Regards,
Bob
Reply With Quote
  #5  
Old 5th December 2009, 11:12 PM
dd_wizard's Avatar
dd_wizard Offline
Registered User
 
Join Date: Sep 2009
Posts: 1,409
linuxfedorafirefox
I don't think having a a 224MB /dev/shm uses 224MB of RAM, this is linux, not Windoze! I have the following three tmpfs mounts:
Code:
Filesystem            Size  Used Avail Use% Mounted on
tmpfs                1001M  328K 1001M   1% /dev/shm
/tmp                 1001M  9.3M  992M   1% /tmp
vartmp               1001M  165M  836M  17% /var/tmp
If you add the sizes up, you get 3,003MB (almost 3GB) on a laptop with only 2GB of RAM. System Monitor tells me that right now, I'm using 558MB (28%) of my RAM, and no swap. My guess is that tmpfs file systems use only as much RAM as they need. And if you get low on RAM, they'll get swapped out if need be. A good description of the usage of /dev/shm is availabe here. My guess is, things could break badly if you umount /dev/shm.

dd_wizard

Last edited by dd_wizard; 5th December 2009 at 11:28 PM.
Reply With Quote
  #6  
Old 6th December 2009, 01:20 AM
robert-e Offline
Registered User
 
Join Date: May 2008
Posts: 720
linuxfedorafirefox
dd_wizard,
Thank you; your link helped me understand. I guess in my case, Pulse Audio is using it, even though I am not (listening) using it.
Regards,
Bob
Reply With Quote
Reply

Tags
or dev or shm

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


Current GMT-time: 00:00 (Sunday, 19-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat