The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > AIX
Google UNIX.COM


AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How can I get memory usage or anything that show memory used from sar file? panithat HP-UX 1 03-31-2008 09:26 AM
Sendmail is eating high memory neel.gurjar SUN Solaris 6 10-02-2007 05:42 AM
Need to send email on HIGH Disk usage csaha Shell Programming and Scripting 1 05-07-2006 02:43 AM
Sun: High kernel usage & very high load averages lorrainenineill UNIX for Advanced & Expert Users 4 02-06-2006 09:32 AM
High kernel usage using sleep handak9 UNIX for Advanced & Expert Users 4 09-19-2005 10:29 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 02-11-2008
Registered User
 

Join Date: Feb 2008
Posts: 6
High memory usage in AIX 5.1

Hi,

We have AIX 5.1 machine of RAM 8 GB and paging space is 8GB. we are getting high memory usage of almost 99%.Can anybody please help in this ?

Partial vmstat o/p

kthr memory
----- -----------
r b avm fre
2 1 278727 1143

There is no paging issue.Becoz in vmstat output pi and po are always 0Should we need to increase the AVM (active virtual memory) or how to resolve this.


Regards,
Jayakumar
Reply With Quote
Forum Sponsor
  #2  
Old 02-11-2008
Registered User
 

Join Date: Feb 2008
Location: The Netherlands
Posts: 38
Jayakumar,

AIX is trying to get the most out of your memory, it is using the available memory as file cache. This to prevent reading from the 'slow' disks and thereby speeding up the system. When there is no paging then there is no reason to worry. If you want (and really, really want) to influence this behavior you can fiddle with the famous minperm/maxperm parameters..

If you look in this forum for the string "aix memory breakdown" you might find more info about this subject, "pagink" included a link that might give you a more in depth answer.
Reply With Quote
  #3  
Old 02-11-2008
Registered User
 

Join Date: Sep 2006
Posts: 208
Seems you have nothing to wory about there mate.
As rvegmond said AIX just uses memory like that.
If it isn't paging then there is nothing to worry about, AIX is just using the available physical memory to cache filesystem instead of keep waiting to write it in and out of disk space.
Reply With Quote
  #4  
Old 02-14-2008
Registered User
 

Join Date: Feb 2008
Posts: 6
Thanks for the reply.One thing i am wondering.Sometime back the server was having 4GB ram and recently upgraded to 8 GB.Before upgrading from 4 to 8 GB RAM it was showing 99% memory usage & after upgradation also the same case..

Can anybody throw light on this. ?
Reply With Quote
  #5  
Old 02-14-2008
Bughunter Extraordinaire
 

Join Date: May 2005
Location: In the leftmost byte of /dev/kmem
Posts: 1,262
Quote:
Originally Posted by jayakumarrt View Post
Thanks for the reply.One thing i am wondering.Sometime back the server was having 4GB ram and recently upgraded to 8 GB.Before upgrading from 4 to 8 GB RAM it was showing 99% memory usage & after upgradation also the same case..

Can anybody throw light on this. ?
If you have the output of "vmstat" from before the upgrade ready have a look at it: i bet you will see a lot of swapping going on and probably now you won't see any (or at least much less than before). The same is perhaps true for the output of "lsps -a", which tells you about the utilization of the swapspaces: perhaps the numbers decreased steeply after upgrading the RAM.

UNIX tries to use the RAM given to it as efficiently as possible: First all the processes started get the memory they need. Some memory is set aside for network buffers, file cache, etc. If still memory is available these buffers will increase in size - which buffers increases how much depends on how the machine is used: more disk-I/O, more network traffic, etc.. The administrator can tune the kernel built-in heuristics with the tools vmo (virtual memory options), schedo (scheduler options), no (network options) and ioo (I/O-options). See the manpages of these tools and the documentation of /etc/tunables for more information.

If no memory is available after satisfying the started processes demands paging occurs: memory pages are taken from the "computational memory" (memory occupied by programs by swapping them out to the paging space) or from the "file memory" (the file cache). When and how much is taken from what can also be tuned, see the "maxperm" and "minperm" parameters in "vmo".

Of course i cannot give you a detailed documentation of the AIX kernel here: what i wrote above are only glimpses and pretty unsorted ones. If you are interested in the details there are two IBM classes (AIX System Administration III: Performance Tuning; AIX Kernel Internals; each 5 days). There are also Redbooks (IBM Redbooks | AIX 5L Practical Performance Tools and Tuning Guide, IBM Redbooks | AIX 5L Performance Tools Handbook, IBM Redbooks | Database Performance Tuning on AIX) available, read them for further details.

I hope this helps.

bakunin
Reply With Quote
  #6  
Old 02-14-2008
Registered User
 

Join Date: Sep 2006
Posts: 208
As said above:

"Seems you have nothing to wory about there mate.
As rvegmond said AIX just uses memory like that.
If it isn't paging then there is nothing to worry about, AIX is just using the available physical memory to cache filesystem instead of keep waiting to write it in and out of disk space."

If you give (gave) AIX more memory, it will just cache more to save disk I/O, as long as there is no paging and the memory is fully utilised (which it should be in a well tuned active system) you have nothing to worry about.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 06:40 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0