I have some questions regarding the performance, MEMORY/ Virtual Memory (paging /swap space)
Please see the nmon-MEMORY stats from my AIX LPAR.
Question 1)
I see that MEMORY is utilized around 98% all the time. and no paging activity. Is this normal? do i need to react ?
Note: this LPAR has very lite application, system is idle most of the time. But still RAM --> 98% used
Question 2)
As per my understanding,
LPAR will consume entire MEMORY, even if we allocate 50 GB RAM (in my case) to this LPAR. I believe...mostly for filesystem caching. And system will release memory from filesystem caching when ever there is a need for process.
is this correct ? please correct me if i'm wrong
question 3) what is the RAM to Paging space ratio on prod systems ??
I think i read some where....that Paging space should be atleast 3/4 of RAM. Please advice.
AIX is very good at keeping memory full with all sorts of things it believes will be useful. If something is not needed now, there is no reason to actually scrub memory unless another process is allocated that address to work in. I used to worry about this too. It can (as you suggest) be used for all sorts of caching. It is faster than reading from the disk, but there is no point in paging it out, so it just gets lost if not used. When a process then needs the data, it is just read from disk as normal, which is no different than paging back in (unless you have wildly different performance disks) but to use the paging, it would have to keep a record that it existed etc., so it's more effort to page this kind of thing.
Basically, if the server is not paging, then it is fine.
There used to be a rule of thumb for double paging space for your RAM. Then that changed (even less formally if that's possible) to double RAM for the first 2Gb, then 1Gb for the rest of your RAM allocation.
Of course, what you really need to estimate is the total space you will need and balance the cost against the speed of real memory. Beyond what you can justify paying for, allocate paging to cover it, and a bit more to be sure. Very inexact though. Have some sort of monitor that check paging space, either have a regular look with lsps -a or vmstat, sar or other tools just to keep a check on how much you are really using.
If you are paranoid about crashing the server, allocate lots extra paging space, but don't try to grow /dev/hd6. If you succeed, you will never be able extract it without considerable effort.
If you allocate 2Gb chunks as paging00, paging01, paging02 ....etc., then when your service is settled, you can work out how many to remove.
If you can space a disk, create a dedicated VG for them in the short term, rather than filling up rootvg and making DR recovery a problem.
Yes, that´s totally normal. Most RAM is being used to cache files so access to slower disks can be hopefully avoided.
Correct, see 1. It depends on your tuning parameters when and how much memory will be freed. Usually from AIX 5.3 TL... (forgot it), the tuning parameters for VMM are good and usually don´t need adjustment.
If your system actually does page out to Paging Space or page in from there, it will be very slow. So either by tuning or enough memory, you will try to avoid paging at all cost. Therefore these days, you can use a fix amount of Paging Space, which may be rather small compared to RAM. I would use a fix size of 5 GB.
Location: on the road for work; home is private time
Posts: 456
Thanks Given: 10
Thanked 108 Times in 100 Posts
The first thing I look at, for a feeling of how the system has been behaving since boot is vmstat -s michael@x054:[/home/michael]vmstat -s
Further, I prefer the command lsps -s for an accurate view of how much paging space is being used.
My rule of thumb is that paging space percent used should be less than 20%. I start very small (512MB for 9G of memory on my current system) - because I do not want to see paging activity to/from paging space. Everything above what is needed is just being wasted.
And I definitely disagree with multiple paging spaces to "tune" paging space. If you paging space is active - you have an application "condition", generally a configuration issue. If not, add more memory. Tuning paging space was acceptble back when a large system had 128MB-512MB of memory, and less than 4GB disk space. This is today - forget best practice anno 1994 - at least for AIX.
Further, as said above, AIX caches stuff in memory. Generally there are two categories to worry about: file and computational.
Computational is best compared with legacy *nix memory model while file memory is everything else that AIX caches via virtual memory manager. The premise is i/o to/from memory is faster than i/o to/from disk.
So, on an AIX system is quite common to see the total writes (page outs) to be larger than the reads (page ins) - see above - because the data is being written to disk but just stays in memory (cached) and a physical i/o (page in) is not needed when the data is needed later.
Rather than the nmon view, try the topas view
On the right side, under MEMORY, you can see the Computational (Comp) and other/File memory (noncomp) and below that the Paging Space. In the middle is the column Paging.
Depending on how quick I want to see results I set the interval to 5, 15 or 60 seconds (topas -i ##)
Thanks much for your response....@ Robin, @ Zaxxon...and @Michael
I really appreciate your ideas.......
As per your comments/ideas, i understand that
It is not a problem/bottleneck...If RAM (memory) utilization in AIX goes beyond 99% .
The only issue is when there is a paging activity......lets say....paging space goes above 20% (page in/out)
In my case, i see lot of Memory utilization 99% all the time
but 1% paging space.
no paging activity.
REAL MEMORY --> 24 GB
% comp --> 29
% non comp --> 64
% client --> 64
paging space
1 % used
Please correct me if i am wrong.
Last edited by System Admin 77; 08-13-2013 at 06:52 PM..
Yes, you are correct. Your system has no problem with memory as long as the following have no activity/are zero:
vmstat: Columns pi and pi topas: Values for PgspIn and PgspOut nmon: Interactive press m and see fields for to Paging Space
For a longterm monitoring it would suit to setup nmon non-interactive per cron and have it permanently collect performance data. In case of problems this data will have a big value. You can process the data graphically with nmon2rrd.
I did verified the system activity (pi/po and other items..etc). It is not even paging. no issues.
And have a cron job (script) which collects nmon performance data every 30 sec interval, saves in to a .nmon file on daily basis. I usually run nmon analyzer to view it.
i've never used nmon2rrd. i just found the link online....and am going to use nmon2rrd tool.
thanks for all your help.
Last edited by System Admin 77; 08-14-2013 at 11:44 AM..
Hi, i have 2 identical web servers using AIX. I use nmon analyser to check their performance.
The server A exceeds 20% memory usage for system, 5% for cache and the rest 75% for processes. While, it uses 4% of Paging Space.
The server B exceeds 20% for system, 45% for cache and 35% for processes.... (24 Replies)
Hello,
Am working on small program that used to calculate the memory usage of AIX servers. Am using svmon -G command to get the memory usage. For example, consider the following output.
$ svmon -G
size inuse free pin virtual mmode
memory ... (9 Replies)
Hi,
I have AIX 5.3TL8 two node cluster using HACMP and have 10g database using RAW devices. I am seeing gradual increase in comp% memory everyday and it reaches 100% and evicts the node, we had 4 evictions in 40days.
I am pasting vmstat and vmo output, anyone seen this issue?
... (5 Replies)
how can I find cpu usage memory usage swap usage and
I want to know CPU usage above X% and contiue Y times and memory usage above X % and contiue Y times
my final destination is monitor process
logical volume usage above X % and number of Logical voluage above
can I not to... (3 Replies)
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... (5 Replies)
Hi All,
I have a question, can you guys please help me by giving your valuable suggestons:
I am using AIX 5L, running oracle 7 version. I need to increase the oracle memory to 40 MB more. Currently Oracle occupies 260M. I wanted to know whether I can increase the memory without any problem.... (3 Replies)
Hi All,
I have a question, can you guys please help me by giving your valuable suggestons:
I am using AIX 5L, running oracle 7 version. I need to increase the oracle memory to 40 MB more. Currently Oracle occupies 260M. I wanted to know whether I can increase the memory without any problem.... (1 Reply)