You are not logged in.
Pages: 1
I'm looking through my mounted files systems and see that /dev/shm has no data on it and is using up (I assume) some of my RAM but not all 247 MB shown on df -h. Is it safe to take this out of /etc/fstab or is it used for some system function?
Last edited by Erroneous (2009-02-06 05:11:16)
Offline
'shared memory' is extensively used in inter-process communications.
Especially if you don't use threads (which has data common with parent and parallel threads), ie 'fork' - then shared memory is more or less your only opttion ;-)
Offline
Ah I see. So if I don't run anything with threading then it would be safe to take it out. Since I do I won't. Just to make sure I understand, whenever a program requires multiple threads to have common data it stores it in /dev/shm? Like for instance while encoding a video with 2 threads?
Offline
You can have a look at this link http://www.cyberciti.biz/tips/what-is-d … usage.html to have an idea about the shared memory.
Offline
Hmmm - that would be the other way around!
If you use 'fork' - you need shared memory; if you use 'threads' you can but you don't have to.
Otherwise - kgas' link above is a good one.
Offline
Pages: 1