LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (http://www.linuxquestions.org/questions/debian-26/)
-   -   tmpfs (http://www.linuxquestions.org/questions/debian-26/tmpfs-422231/)

mnotgninnep 03-06-2006 03:01 PM

tmpfs
 
Please exuse the noobish question :P


What is tmpfs? Can I get rid of it?

I've set up a small web/game server with a 1GB / ext3 filesystem. Obviously I'm tight for space, but I've done pretty well getting everything into 600MB...

The question is can I get rid of it, and if so, how? If I run df -h it shows

Code:

Filesystem      Size  Used Avail  Use% Mounted on
/dev/hda2      861M  600M  215M  74% /
tmpfs          189M    0  189M    0% /dev/shm

as you can see, it's eating a precious 200M for nothing...

dracae 03-06-2006 03:55 PM

/dev/shm is shared memory. It is compiled into the kernel. It is not using disk space.

mnotgninnep 03-06-2006 03:57 PM

so why the does it only say I've got 215M space left when I should have nearly 400M?
why does it need to reserve almost 200M for nothing?

I partitioned it as 1GB (almost)

jomen 03-06-2006 04:33 PM

Code:

Filesystem      Size  Used Avail  Use% Mounted on
/dev/hda2      861M  600M  215M  74% /
tmpfs          189M    0  189M    0% /dev/shm

Quote:

so why the does it only say I've got 215M space left
Quote:

so why the does it say I've only got 215M space left --> would be correct
and it doesn't say what you think...
it says: 600 MB is used from 861 MB available...
tmpfs is in "shared memory" as dracae said - which means RAM or/and swap...
and this (your...) usage has _nothing_ to do with tmpfs - as it says:
Quote:

0 from 189 MB available

leonscape 03-06-2006 04:43 PM

It might be the way sizes are calulated. How much space was available, and how best in fit into the Cylinder/Sector setup of the disk. Plus your using a journaling file system. which takes up a bit of space to do its stuff.

dracae 03-06-2006 04:48 PM

You will find that your 1GB disk is 1000000000 bytes, which translates to 953MB of UNFORMATTED space. Tack on partition and filesystem overhead and you've got 861MB.

mnotgninnep 03-06-2006 04:52 PM

ah, ok, thankyou all for your prompt replies :D


All times are GMT -5. The time now is 12:00 PM.