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 02-05-2012, 10:53 AM   #1
rajaniyer123
Member
 
Registered: Feb 2004
Location: BARODA, GUJARAT
Posts: 259

Rep: Reputation: 30
Command to check process taking high cached memory


Hi,

In one of RHEL5 server I am facing low memory problem.

While checking /proc/meminfo i got below o/p

MemTotal: 16410952 kB
MemFree: 45332 kB
Buffers: 106252 kB
Cached: 15236112 kB


Any idea which process is utilizing high cached part of memory.

O/P of top is as below.

top - 06:18:07 up 71 days, 17:24, 10 users, load average: 6.83, 8.29, 12.12
Tasks: 211 total, 6 running, 202 sleeping, 0 stopped, 3 zombie
Cpu(s): 33.3% us, 33.3% sy, 0.0% ni, 0.0% id, 0.0% wa, 0.0% hi, 33.3% si
Mem: 16410952k total, 16360452k used, 50500k free, 107432k buffers
Swap: 16777208k total, 269756k used, 16507452k free, 15221532k cached
 
Old 02-05-2012, 03:52 PM   #2
tommylovell
Member
 
Registered: Nov 2005
Distribution: Raspbian, Debian, Ubuntu
Posts: 374

Rep: Reputation: 101Reputation: 101
Cache isn't associated with a process per se, it is related to I/O on your system.

Linux tries to cache as much I/O data as it can. If that data needs to be read in the future, it is already in storage. Cache is a mechanism to avoid doing real I/O operations as real I/O to a disk is very slow compared to just retrieving it from memory. So a high cache number is generally good and nothing to be concerned with.

If on the other hand your cache has been trimmed back and is now very small and you start using a lot of swap, then you have a low memory problem.

One caveat is that caching data works very well if the memory is real memory (you're running on bare metal). If this is a virtual system, that memory is virtual memory provided by the hipervisor and the hipervisor may end up swapping... Not a good thing.

Your load average looks high.

Last edited by tommylovell; 02-05-2012 at 04:14 PM.
 
  


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
How to check memory usage on running process/applications rickylim Linux - General 17 05-08-2013 09:09 PM
what is command in Linux to check memory? bganesh75 Linux - Newbie 1 07-20-2011 01:38 AM
High Memory utilzation by Mysql Process in Solaris rajaniyer123 Solaris / OpenSolaris 2 05-26-2011 07:44 AM
Linux memory management: Real memory or Cached buffers? gubbu Linux - Server 2 10-01-2010 01:58 AM
How to check memory consumed by hidden/defunct/zombie process rajaniyer123 Solaris / OpenSolaris 11 05-27-2009 02:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:26 PM.

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