LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 01-18-2006, 11:12 AM   #1
swaroop.tata
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, 01:38 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,965
Blog Entries: 11

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


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 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 06:16 PM
memory usage problem hegedus General 5 03-04-2005 07:00 AM
getting realtime info on memory usage-cpu and harddrive usage steering Linux - Newbie 5 03-03-2005 08: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 04:45 AM
memory usage problem vcheah Linux - Hardware 1 12-05-2002 01:00 AM


All times are GMT -5. The time now is 04:05 PM.

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