[lug] shm filesystem and RH/KRUD 7.3

Rob Riggs rob at pangalactic.org
Wed Jul 17 23:07:25 MDT 2002


D. Stimits wrote:

>Sean Reifschneider wrote:
>
>>If you don't have anything using the shm, it hardly takes up any space at
>>all.
>>
>>   Filesystem           1k-blocks      Used Available Use% Mounted on
>>   none                    160236         0    160236   0% /dev/shm
>>
>>In this case, it isn't 160MB that's being used, it's close to 0.
>>
>
>I interpret that (probably incorrectly) to mean that 0% of the space on
>the partition (virtual though it may be, it seems to be a partition) has
>been used, but that the partition itself is about 160 MB.
>

It's not a file system (see where it says "none" under the "Filesystem" 
heading). Don't worry about it. Mucking about with /dev/shm is akin to 
trying to delete /proc/kcore to free up disk space. It's a shared memory 
space mapped as a file to /dev/shm.. Remember, the tradition in Unix is 
to map almost everything to a file (give everything a file-like 
interface from an OO perspective).  No memory is used until a process 
needs to allocate shared memory segments.

-Rob





More information about the LUG mailing list