LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Memory usage display problem (https://www.linuxquestions.org/questions/linux-general-1/memory-usage-display-problem-404961/)

swaroop.tata 01-18-2006 11:12 AM

Memory usage display problem
 
Dear There,


I am new to linux, and having a problem. One of our server shows like below when i type the command



[root@host root]# df -lh
Filesystem Size Used Avail Use% Mounted on
/dev/hda5 7.7G 4.6G 2.8G 63% /
/dev/hda1 76M 8.2M 64M 12% /boot
none 506M 0 506M 0% /dev/shm
/dev/hda8 84G 43G 37G 54% /home
/dev/hda7 1012M 33M 928M 4% /tmp
/dev/hda3 7.7G 1.7G 5.7G 23% /usr
/dev/hda2 7.7G 7.4G 0 100% /var


But when i connected to "/var" folder and see below, it is showing like


[root@host var]# du -ksh
224M .




By using the first command it says that 7.4 GB has been used. and the second command says that only 224 M has been used. Where is the problme...?

Tinkster 01-18-2006 01:38 PM

Hi, and welcome to LQ!

You may have blasted away an open file. It won't show in ls
or du, but the space it used to occupy is actually still in use
(until you roll the process that held it).


Cheers,
Tink


All times are GMT -5. The time now is 07:42 AM.