LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-10-2011, 12:40 AM   #1
aamerjavaid
Member
 
Registered: Dec 2005
Posts: 53

Rep: Reputation: 15
understanding memory consumption


Hi All,

I am from Database Team, and due to recent performance issues, I want to know more about my linux box (RHEL 4.8 Nahant) memory consumption, the confusion lies in the tools, i used to check memory utilization.

First, i used
Code:
free -m
and the results were that i just have near 400M left on my linux box.

Then, i used linux graphic tool
Code:
System Monitor
, and the results were totally different. and it showed that i am just using near 4G of RAM from my 32G.

I have also uploaded print screens for the both sessions.

Thanks,
Amir
Attached Thumbnails
Click image for larger version

Name:	Memory_Consumption_Line.JPG
Views:	16
Size:	60.9 KB
ID:	8344   Click image for larger version

Name:	Memory_Consumption.JPG
Views:	12
Size:	79.9 KB
ID:	8345  
 
Old 11-10-2011, 02:15 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389
Hi,

I do believe you are incorrectly reading the output of the free command.
Quote:
The disk cache on linux servers use up the majority of total memory which is common and inherent in the kernel. The kernel will always try to utilize most of it. As long as the server isn’t using swap space, there’s shouldn’t be a concern about physical memory. The memory that’s currency being registered as used can be replaced if another program needs it. To get a “true” reading of memory usage, the best thing to look at is the -/+ buffers/cache.
Code:
             total       used       free     shared    buffers     cached
Mem:         32489      32083        405          0       1394      26218
-/+ buffers/cache:       4470      28018
Swap:        32767         83      32684
From an applications point of view you need to look at the bold part (4Gb used and 28Gb free), which is consistent with the GUI output.

Have a look at these links:
- Linux ate my RAM! ("simple")
- Why doesn't free memory go down (bit more in depth)

Hope this helps.
 
1 members found this post helpful.
Old 11-10-2011, 05:52 AM   #3
aamerjavaid
Member
 
Registered: Dec 2005
Posts: 53

Original Poster
Rep: Reputation: 15
Hi druuna,

Thanks for your reply, yes, it might be an interpretation issue, now i got it.

Regards,
Amir
 
Old 11-10-2011, 06:40 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389
You're welcome
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with memory consumption vidyavati Linux - Embedded & Single-board computer 1 07-09-2009 12:37 PM
Higher memory consumption in RHEL 4 prakashmodi Linux - Enterprise 1 09-25-2008 08:30 AM
Memory Consumption of 10.2 naparhi Slackware 4 08-27-2006 03:10 AM
process memory consumption ilnli Linux - General 4 09-08-2005 07:13 PM
Slackware memory consumption muhkuhmasta Slackware 5 07-15-2004 05:51 AM


All times are GMT -5. The time now is 12:35 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration