Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 04-03-2008, 06:29 AM   #1
Registered: Jun 2004
Distribution: Ubuntu 6.10 Edgy Eft
Posts: 61

Rep: Reputation: 15
Reported memory usage doesn't tally with top

I have an Ubuntu server which seems to be using more RAM/swap than the listed processes would suggest.

In htop, these are the stats:

Mem = 653MB of 1006MB
Swap = 474MB of 2498MB

Why is swap being used if there's free RAM?

The greediest process is taking 17% of RAM. How can I total the processes' RAM usage apart from using top/htop?
Old 04-04-2008, 12:52 PM   #2
Registered: Mar 2005
Location: India
Distribution: RHEL 3/4, Solaris 8/9/10, Fedora 4/8, Redhat Linux 9
Posts: 237
Blog Entries: 1

Rep: Reputation: 34
Use vmstat or free command.
There may be some option in sar also for historical memory usage.
Old 04-04-2008, 03:09 PM   #3
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 13,253

Rep: Reputation: 1289Reputation: 1289Reputation: 1289Reputation: 1289Reputation: 1289Reputation: 1289Reputation: 1289Reputation: 1289Reputation: 1289
What is (used) memory ???. This is a real can of worms - even the kernel devs can't agree on it.
Have a read of this to get you started. Some of the follow-up comments are actually worth reading - lots of noise though as well.


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
Memory usage using TOP FantaJ Linux - Newbie 2 03-05-2008 12:35 PM
Incorrect usercount reported by 'w' and 'top' Yalla-One Slackware 13 07-02-2007 11:48 AM
How do I read the memory usage in top? jaakkop Linux - Hardware 1 03-10-2006 10:12 AM
Firefox gets stuck... top shows 98-99% memory usage amitsharma_26 Linux - General 26 12-28-2005 03:01 PM
Memory usage reported using TOP Kdiver58 Linux - Newbie 1 02-03-2003 01:31 PM

All times are GMT -5. The time now is 06:34 PM.

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