AIXThis forum is for the discussion of IBM AIX.
eserver and other IBM related questions are also on topic.
Notices
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
lsps -a
/usr/samples/kernel/vmtune # aix 433, 5.1
vmo -L # 5.2
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.