AIXThis forum is for the discussion of IBM AIX.
eserver and other IBM related questions are also on topic.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Something like svmon -Pu -t 5 should show the top 5 processes (this will work on 5.2, if you have a different version and it isn't working right, check the man page. If svmon isn't installed on your system, you'll need to install it (can't remember the fileset right now - I'll check tomorrow). I think you get a ton of information on each process so some filtering might be in order.
As for what you can do about it...usual stuff I guess. See if there are processes you don't need, or something that's grabbing more memory than it should. See if there's anything you can move to a different system. If you've got memory hogs that you can recompile, see if you can improve the memory footprint that way.
Originally posted by Greenman
I have run top but can't see what is chewing up all the mem, how can I see what mem all running processes are using.
You definately want to use topas, not top in AIX. It is a lot more informative. Also verfiy that your paging space is setup correctly, you can use lsps -a and you can see where and how big the space. The svmon command works as well as mentioned by iainr
If you are "running out of memory," you must determine if it is actually memory overcommitment or fake paging (assuming that the system is using paging space). Memory overcommitment occurs where the in-core memory requirements are larger than real memory. Fake paging occurs because of improper settings of minperm and maxperm. Understanding memory in AIX is a non-trivial topic. I have written about this topic in IBM's eServer magazine. The articles are posted on my Website: www.tomfarwellconsulting.com.
when you say your running out of memory ? you mean that you are paging to paging space ? or the free page list is low ?
AIX by default will allow as much memory to be consumed as possible until you hit minfree, then lrud will start looking for pages as candidates to page out based on the least recently used algorythm. if they are file pages (persisteint) then the page will be flushed back to the filesystem and the memory page put back on the free list.. if its a computational (working) page, then it is flushed to paging space.... only when you hit minfree will this start to happen..(by default.. you can use strict_maxperm to limit your filesystem cache size and start paging file pages out before the minfree setting is hit).
Ok, saying that... you need to post some vmstat, vmtune (vmo on aix 5.2), lsps -a output so we can see whats going on.
please post the following info...
lsattr -EHl mem0
vmstat 1 15 # when system is under load
/usr/samples/kernel/vmtune # aix 433, 5.1
vmo -L # 5.2