Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 01-18-2006, 12:12 PM   #1
LQ Newbie
Registered: Jan 2006
Posts: 4

Rep: Reputation: 0
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...?
Old 01-18-2006, 02:38 PM   #2
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
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).



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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Memory Usage Spaw Usage Swappiness Issues joelunch Linux - Software 3 01-04-2006 07:16 PM
memory usage problem hegedus General 5 03-04-2005 08:00 AM
getting realtime info on memory usage-cpu and harddrive usage steering Linux - Newbie 5 03-03-2005 09:43 PM
how to determine cpu usage, memory usage, I/O usage by a particular user logged on li rags2k Programming 4 08-21-2004 05:45 AM
memory usage problem vcheah Linux - Hardware 1 12-05-2002 02:00 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:01 AM.

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