Performance Tuning WebWizard

Expanation of Memory and Paging

The Memory of your machine hardly needs any expanation but how it is used is complex. In modern computer systems the memory is relatively inexpensive and so is often the second thing to be upgraded (disks first).

The Memory is used for:

... and you thought you understood memory !!!

When real phyiscal memory is full, AIX does a number of things to work around this problem. AIX uses virtual memory (this is physically on the hard disk allocated for paging as paging space). AIX uses virtual memory by temporarily writing pages of memory to the paging space. This frees up real memory for running the system.

AIX is a very advanced version of UNIX. This means is does not have fixed sizes for above list of "things" that use memory but these are dynamically allocated. This means AIX does not have to be rebooted to change their sizes.

AIX always seems low in Memory

The above does mean that AIX "seems" to slowly use up all memory regardless of how much it really needs. What is actually happening is that as users and programs read files from the file systems AIX keeps these for as long as possible in case it can reuse the memory version and thus avoid disk I/O. To prove this is happening you can steal memory from the system with the rmss (say 25% of RAM) command and then give it back. This will appear as genuinely unused real memory that will then slowly be allocated until AIX again "seems" to use all the RAM. If this takes 60 seconds or longer then its not really used. If this took 5 seconds to be used up then you are short of RAM.

Memory or Paging Bottleneck ???

Criteria:

Not a criteria:

In a multi-user environment memory usage is always likely to be very peaky - meaning that users demands of the memory are in lots of small unpredictable bursts. To cater for this we need to keep space always free in the paging space, so that small peaks in workload can be handled immediately. Failure to do this will cause totally unexpected program/process crashes - it will appear that AIX randomly choises which process to crash. Actually, it will be the next process to request any extra memory or when trying to start new programs.

Memory and Paging monitor Statistics

The basic Memory and Paging usage is on the Main Screen of nmon.
The statisics comprises the Real Memory, Virtual Memory and Paging rate activity.

Notes:

What can you do to tune Memory?

If you find the memory is 100% used:

If you find the system paging too much or even thrashing: