LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 03-06-2006, 03:01 PM   #1
mnotgninnep
LQ Newbie
 
Registered: Jan 2005
Posts: 23

Rep: Reputation: 15
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...
 
Old 03-06-2006, 03:55 PM   #2
dracae
Member
 
Registered: Feb 2006
Location: Oklahoma
Distribution: Debian Sid and Etch
Posts: 423

Rep: Reputation: 30
/dev/shm is shared memory. It is compiled into the kernel. It is not using disk space.
 
Old 03-06-2006, 03:57 PM   #3
mnotgninnep
LQ Newbie
 
Registered: Jan 2005
Posts: 23

Original Poster
Rep: Reputation: 15
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)
 
Old 03-06-2006, 04:33 PM   #4
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,684

Rep: Reputation: 54
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

Last edited by jomen; 03-06-2006 at 04:37 PM.
 
Old 03-06-2006, 04:43 PM   #5
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 47
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.
 
Old 03-06-2006, 04:48 PM   #6
dracae
Member
 
Registered: Feb 2006
Location: Oklahoma
Distribution: Debian Sid and Etch
Posts: 423

Rep: Reputation: 30
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.
 
Old 03-06-2006, 04:52 PM   #7
mnotgninnep
LQ Newbie
 
Registered: Jan 2005
Posts: 23

Original Poster
Rep: Reputation: 15
ah, ok, thankyou all for your prompt replies
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
mount tmpfs help GLF2000 Linux - Networking 1 03-03-2006 07:09 AM
tmpfs for Windows bobwall Linux - Software 0 02-24-2005 11:20 AM
tmpfs akuate Linux - General 9 08-15-2004 01:02 PM
tmpfs and ramfs jatho Linux - General 0 06-23-2004 04:11 AM
tmpfs seazon Linux - General 1 09-07-2003 04:45 AM


All times are GMT -5. The time now is 06:28 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration