Sponsored Content
Full Discussion: Memory usage in AIX server
Operating Systems AIX Memory usage in AIX server Post 302843520 by MichaelFelt on Tuesday 13th of August 2013 03:25:07 PM
Old 08-13-2013
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
Code:
            158133157 total address trans. faults
              1263956 page ins
              3733162 page outs
                    0 paging space page ins
                    0 paging space page outs
                    0 total reclaims
             68833738 zero filled pages faults
                92593 executable filled pages faults
                    0 pages examined by clock
                    0 revolutions of the clock hand
                    0 pages freed by the clock
              3246161 backtracks
                    0 free frame waits
                    0 extend XPT waits
              1009416 pending I/O waits
              3108184 start I/Os
              1608563 iodones
            184504298 cpu context switches
             23924465 device interrupts
               431099 software interrupts
             97864862 decrementer interrupts
                    0 mpc-sent interrupts
                    0 mpc-receive interrupts
                    0 phantom interrupts
                    0 traps
           3552750682 syscalls

Further, I prefer the command lsps -s for an accurate view of how much paging space is being used.
Code:
michael@x054:[/home/michael]lsps -s
Total Paging Space   Percent Used
      512MB               3%

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
Code:
Topas Monitor for host:    x054                 EVENTS/QUEUES    FILE/TTY
Tue Aug 13 19:23:32 2013   Interval: 10         Cswitch     766  Readch  1818.9K
                                                Syscall    9865  Writech  289.8K
CPU  User%  Kern%  Wait%  Idle%                 Reads      4190  Rawin         0
ALL   27.3    5.9    0.1   66.7                 Writes      177  Ttyout       69
                                                Forks         0  Igets         0
Network  KBPS   I-Pack  O-Pack   KB-In  KB-Out  Execs         1  Namei       309
Total   499.7    175.6   395.3    13.1   486.6  Runqueue    5.2  Dirblk        0
                                                Waitqueue   0.0
Disk    Busy%     KBPS     TPS KB-Read KB-Writ                   MEMORY
Total     0.3     50.4     3.0     0.0    50.4  PAGING           Real,MB    9216
                                                Faults      384  % Comp     36
FileSystem        KBPS     TPS KB-Read KB-Writ  Steals        0  % Noncomp  12
Total              1.6K    3.8K   1.5K  42.1    PgspIn        0  % Client   12
                                                PgspOut       0
Name            PID  CPU%  PgSp Owner           PageIn        0  PAGING SPACE
httpd       7929976  12.1  15.5 httpd           PageOut       9  Size,MB     512
named9      2556034   9.8  28.0 root            Sios          9  % Used      2
mysqld      6226088   8.2  22.3 mysql                            % Free     98
db2sysc     7078126   0.2  25.8 ldapdb2         NFS (calls/sec)
topas_nm    6160612   0.1   2.6 root            SerV2         0  WPAR Activ
topas      11862064   0.1   1.5 michael         CliV2         0  WPAR Total
nfsd        4128958   0.1   0.3 root            SerV3         0  Press: "h"-help
ksh         5636284   0.0   0.5 root            CliV3         0         "q"-quit
gil          720922   0.0   0.1 root
db2fmcd     5505196   0.0   1.1 root

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 ##)

Hope this helps with understand what to look for!
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Memory Usage in AIX

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)
Discussion started by: kollam68
1 Replies

2. AIX

Memory Usage in AIX

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)
Discussion started by: kollam68
3 Replies

3. AIX

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... (5 Replies)
Discussion started by: jayakumarrt
5 Replies

4. AIX

Memory usage on AIX

How to check the memory usage on AIX by various processes? (1 Reply)
Discussion started by: aajmani
1 Replies

5. HP-UX

how can I find cpu usage memory usage swap usage and logical volume usage

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)
Discussion started by: alert0919
3 Replies

6. AIX

How to monitor the IBM AIX server for I/O usage,memory usage,CPU usage,network..?

How to monitor the IBM AIX server for I/O usage, memory usage, CPU usage, network usage, storage usage? (3 Replies)
Discussion started by: laknar
3 Replies

7. AIX

AIX 5.3 Physical Memory usage

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)
Discussion started by: navin7386
5 Replies

8. AIX

AIX memory usage always high

hi, I want to ask , my AIX 6.1 is always used about 97% memory. Is this normal ? or any command can free up memory like Linux ? thanks. (1 Reply)
Discussion started by: virusxx
1 Replies

9. AIX

Regarding AIX Memory Utilization usage calculation

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)
Discussion started by: maruthu
9 Replies

10. AIX

AIX memory usage by processes

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)
Discussion started by: dim
24 Replies
All times are GMT -4. The time now is 01:58 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy