LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-19-2012, 03:08 AM   #1
SilvioGesell
LQ Newbie
 
Registered: Jun 2010
Posts: 3

Rep: Reputation: 0
Question RAM Monitoring


Hi all,

I have 64 bit Debian-Squeeze running with 16 GB RAM and 25 GB Swap. Normally up to 5 GB RAM is in use, no Swap.

But this morning I have seen 58 KB swap used. Swapiness is 60. So either the RAM has grow up this night or .. I dont know.

top
Mem: 16473264k total, 1069824k used, 15403440k free, 189292k buffers
Swap: 25149432k total, 58260k used, 25091172k free, 411852k cached

Also, the Swap-Cached in top is growing ervery time. So I have panic, that the system will have problems in a few days or weeks.

Is there any tool to monitore the RAM usage? Or to see whitch application has used the Swap-Partition?

Beacuse I want to see and know whats going on on my server :-)

Thanks

Last edited by SilvioGesell; 04-19-2012 at 03:20 AM.
 
Old 04-19-2012, 03:54 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,841

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
if you have a process eating up the memory you can see it with top.
(that is 58M, not 58 KB)
 
Old 04-19-2012, 06:41 AM   #3
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
That is totally normal. The Linux kernel swaps out memory pages that weren't used for a long time to use that memory for caching. No problems on your machine.
 
1 members found this post helpful.
Old 04-19-2012, 07:51 AM   #4
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
I agree with TobiSGD's answer.

Some extra detail:

Quote:
Originally Posted by SilvioGesell View Post
But this morning I have seen 58 KB swap used. Swapiness is 60. So either the RAM has grow up this night or .. I dont know.
Apparently cache use grew. It tends to gradually do that as a system with excess ram (compared to workload) stays up.

If you saw a big change over night, that tends to mean some scheduled task does a lot of file I/O, which is probably normal.

Any anonymous memory of processes that had been idle for a long while before that burst of file I/O will be swapped out. When you resume using those processes again, there will be a moment of poor responsiveness as those pages come back in. So far as I know, there isn't a good way to tune that sub optimal behavior out (but people try a lot of bad ways, doing more harm than good). It generally is NOT a big enough problem to care about.

Generally some anonymous pages of some services are stale data (typically left over from the service startup). Once cache usage has been high enough (whether gradually or due to a big burst of file I/O) those pages stay in swap, because nothing ever needs them in ram.

Some of the 58MB you see is stale data with no reason to come back into ram. Maybe some of it belongs to some service that hadn't been touched again after whatever file I/O kicked. 58MB is small enough that the delay to bring it back will be trivial if whatever service owns that data resumes work.

Last edited by johnsfine; 04-19-2012 at 09:27 AM. Reason: missed the important word NOT
 
1 members found this post helpful.
  


Reply

Tags
ram, swap



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
Finding out what RAM chip needed to upgrade from 2GB to 4GB RAM. farmerluk Linux - Hardware 4 11-17-2011 12:02 PM
Why size of swap space is 2x of RAM??? Why not 1.5x of RAM or 2.5x of RAM??? Saurav Ghosh Linux - Newbie 7 11-01-2011 03:49 AM
Monitoring free memory with enterprise monitoring application Steelb Linux - Enterprise 2 02-13-2008 10:10 AM
FC 6 - missing RAM - Intel S5000PSL Board - 16GB RAM meofcourse Linux - Hardware 11 12-20-2007 03:21 AM
Win98SE Pentium166MMX/64MB RAM vs Linux AthlonXP+ 3000/512MB RAM : Lucent LT WinModem t3gah Linux - Software 2 04-22-2005 01:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration