Topic
IC4NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
2 replies Latest Post - ‏2012-05-09T22:51:16Z by UNIX-OS
aravinthsamy
aravinthsamy
34 Posts
ACCEPTED ANSWER

Pinned topic Nmon CPU-MEM Utilization Differs With PS Command for Checking the Usage

‏2012-05-07T08:35:56Z |
This is regarding the CPU/Memory utilization mismatch sync between NMON and ps command in aix. In below output we can find that memory is 96% utilized in nmon. But while trying to find which are all the process utilizing this 96%memory, we are unable to get the exact utilization for this 96%memory utilization. We are using the below ps command to find the exact 96%memory utilizing process,it just shows 1% mem for db2sysc. Where to find the remaining 95% memory utilizing process...This is the case for CPU also. Please provide us the suggestions/commands to get exact Memory/CPUutilization which needs to sync with NMON and PS commands or any relevant commands.
NMON output for Memory

Physical PageSpace
¦% Used 96.0% 7.6%
¦% Free 4.0% 92.4%
¦MB Used 7681.6MB 620.0MB
¦MB Free 318.4MB 7572.0MB
¦Total(MB) 8000.0MB 8192.0MB
¦
---

Memory utilization using PS command
  1. ps aux |head -1; ps aux |sort -rn +3
USER PID %CPU %MEM SZ RSS TTY STAT STIME TIME COMMAND
dbuser 909464 4.3 1.0 72616 59460 - A May 04 427:59 db2sysc 0
svcagent 979112 0.0 0.0 140 144 - A 00:00:40 0:00 sleep 86400
svcagent 975012 0.0 0.0 140 144 - A 11:48:15 0:00 sleep 30
svcagent 880728 0.0 0.0 792 828 - A 10:31:30 0:00 /bin/sh /usr/svc
svcagent 770108 0.0 0.0 11548 11556 - A 10:31:31 0:04 java -Xbootclass
svcagent 725000 0.0 0.0 108 112 - A 11:48:14 0:00 sleep 10
svcagent 700442 0.0 0.0 96 104 - A 10:31:31 0:00 /usr/svcagent/cm
svcagent 504054 0.0 0.0 772 440 - A Apr 27 0:00 /bin/sh /usr/svc
svcagent 499956 0.0 0.0 788 448 - A Apr 27 1:26 /bin/sh /usr/svc
svcagent 495858 0.0 0.0 772 420 - A Apr 27 0:46 /bin/sh /usr/svc
****************************
Regards,
Aravinth V
Updated on 2012-05-09T22:51:16Z at 2012-05-09T22:51:16Z by UNIX-OS
  • SystemAdmin
    SystemAdmin
    6902 Posts
    ACCEPTED ANSWER

    Re: Nmon CPU-MEM Utilization Differs With PS Command for Checking the Usage

    ‏2012-05-09T20:59:36Z  in response to aravinthsamy
    The memory is not only used for processes. It is also used by the system/kernel and for file caching.
  • UNIX-OS
    UNIX-OS
    14 Posts
    ACCEPTED ANSWER

    Re: Nmon CPU-MEM Utilization Differs With PS Command for Checking the Usage

    ‏2012-05-09T22:51:16Z  in response to aravinthsamy
    Aix uses memory for file system cacheing, if process needs it will take it from file system cache. do you see large amount of paging activity?

    use nmon or download perfpmr and look at detailed memory usage.

    ftp://ftp.software.ibm.com/aix/tools/perftools/perfpmr/
    perfpmr.sh -x memdetails.sh