LinuxQuestions.org
Review your favorite Linux distribution.
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 05-07-2007, 04:01 PM   #1
sp149
Member
 
Registered: May 2007
Posts: 73

Rep: Reputation: 17
Memory Usage >95%


Friends,

Need some guidance.

memory usage according to Grid Control is >95%. Oracle should be using 50% not 95%. I need to know what in oracle is consuming 95%

what is eating up all the memory?


free output
total used free shared buffers cached
Mem: 4041428 3945060 96368 0 147664 2206852
-/+ buffers/cache: 1590544 2450884
Swap: 8345656 42008 8303648


top output
Tasks: 223 total, 1 running, 222 sleeping, 0 stopped, 0 zombie
Cpu(s): 1.0% us, 1.7% sy, 0.0% ni, 94.9% id, 2.4% wa, 0.0% hi, 0.0% si
Mem: 4041428k total, 3932916k used, 108512k free, 147668k buffers
Swap: 8345656k total, 42008k used, 8303648k free, 2206984k cached
 
Old 05-07-2007, 04:38 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Linux preallocates most memory to buffers/cache so you'll always see a high memory utilization in free if you look at the first line.

However if you look at the "-/+ buffers/cache" line you'll see what is used/free without the buffers/cache. This is your ACTUAL memory used/free. Looking at what you posted I don't see a memory constraint.
 
Old 05-07-2007, 04:43 PM   #3
kotnik
Member
 
Registered: Nov 2004
Location: Novi Sad, Serbia
Distribution: Debian, Slackware, Gentoo, openSuSE
Posts: 254

Rep: Reputation: 31
Look at the output after buffers/cache. Seems to me you have 2.2G free memory.

In short, Linux is pretty advanced kernel, and it has "free memory is wasted memory" philosophy. So, it uses almost all free memory to cache stuff. Cached memory is free. It takes virtually no CPU time to give cached memory to program, it's like it is not used at all.

Anyway, always look at the output after -/+ buffers/cache, and search the Internet if you want to know more about Linux memory managment (which is the best as the current computer science can provide).

EDIT: jlightner answered while I was typing this (I'm sleepy after work, so I type with ease ). Gotta love LQ

Last edited by kotnik; 05-07-2007 at 04:44 PM.
 
Old 05-07-2007, 06:05 PM   #4
sp149
Member
 
Registered: May 2007
Posts: 73

Original Poster
Rep: Reputation: 17
Thank you for the prompt reply along with the explanation.

what would be your suggestion to me for monitoring the threshold
suppose i want to be notified when memory usage is above 75%
do i keep track of -/+ buffers cache.

Thanks again
 
Old 05-07-2007, 07:15 PM   #5
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
That's what I do. My monitoring is based on the +/- buffers/cache.
 
  


Reply



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
X hangs after prolonged usage ... memory usage goes upto 195MB duryodhan Slackware 18 05-10-2007 06:16 PM
Memory Usage Spaw Usage Swappiness Issues joelunch Linux - Software 3 01-04-2006 06:16 PM
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
Controlling CPU usage & memory usage Saravana babu Linux - Software 0 02-18-2004 05:55 AM

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

All times are GMT -5. The time now is 01: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