AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
 View Only
  • 1.  Memory Utilization of a AIX box

    Posted Tue July 25, 2006 10:19 AM

    Originally posted by: SystemAdmin


    Dear all,
    Am trying to calculate de memory utilization of a AIX device(no need for process pertaining info also am aware of de fact tat usually AIX boxes will utilize sth around 99%..but I want to know howmuch n how it can be calculted..) ..tried svmon but it seems to be work only when the user is login as root... for me i need to calculate it as a normal user..Any help???
    Thanks
    Muthukumaran.M
    #AIX-Forum


  • 2.  Re: Memory Utilization of a AIX box

    Posted Wed July 26, 2006 07:24 AM

    Originally posted by: SystemAdmin


    Muthu: are you trying to figure out the extent to which memory is over-committed on the box as a whole? I'm not sure I've understood your question but I think that's what you're after. If so you should be able to get what you want from nmon. It will show numbers for computational versus non-computational memory. The reason that overall numbers in AIX usually show as 99+% is that whatever memory isn't used for working set (computational) pages is given over to file pages (non-computational). As memory starts to be more fully committed you should expect to see the percentage of computational pages increase.

    HTH

    Jim Lane
    #AIX-Forum


  • 3.  Re: Memory Utilization of a AIX box

    Posted Wed July 26, 2006 09:15 AM

    Originally posted by: SystemAdmin


    Thanks JIM... but that doesnt help me either.. since nmon is not a in-built package IBM site itself claims that you cant expect it to be installed in every machine.. Same problem for me.. The device 4 which am trying to find de Total Memory Utilization dont have the nmon tool... Anyother tool that comes with AIX default package..
    #AIX-Forum


  • 4.  Re: Memory Utilization of a AIX box

    Posted Wed July 26, 2006 09:46 AM

    Originally posted by: SystemAdmin


    Hi,

    Give this a try:

    1. Use NMON to get the total memory on the server
    (for example: Total(MB) 16384.0MB)

    1. Issue: vmstat 1

    2. Record the average avm value
    (for example: 1161888)

    kthr memory page faults cpu

    -----------
    ------------
    r b avm fre re pi po fr sr cy in sy cs us sy id wa
    0 2 1161913 1023 0 2 0 14718 20558 0 1954 6838 3689 8 13 62 17
    0 1 1161888 1087 0 9 0 15101 19732 0 1933 3306 3403 6 16 66 12
    1 0 1161888 983 0 0 0 13807 15780 0 1767 2729 3215 5 14 66 14
    3. We have avm 1161888 x 4096 = 4,759,093,248

    Versus memory 16384 x 1024 x 1024 = 17,179,869,184
    As a side note:
    If avm is lower than RAM, then paging-space paging could be caused by RAM being filled up with file pages. In that case, tuning the minperm,maxperm, and maxclient values, could reduce the amount of paging-space paging

    Hope this helps,

    Joseph Karpinski
    #AIX-Forum


  • 5.  Re: Memory Utilization of a AIX box

    Posted Thu July 27, 2006 07:37 AM

    Originally posted by: SystemAdmin


    Muthu: I realize that nmon isn't standard. That shouldn't be a problem because you can easily install it yourself. Have a look at http://www-128.ibm.com/developerworks/eserver/articles/analyze_aix/index.html
    for all the details.

    -Jim
    #AIX-Forum


  • 6.  Re: Memory Utilization of a AIX box

    Posted Wed July 26, 2006 09:52 AM

    Originally posted by: SystemAdmin



    One other area to check is shared memory.

    Issue ipcs -am and sum up the SEGSZ values of your shared memory segments:
    T ID KEY MODE OWNER GROUP CREATOR CGROUP NATTCH SEGSZ
    m 0 0x704ecfbc --rw-r----- oracle dba oracle dba 45 369,901,568
    m 1 0xffffffff --rw-rw---- root system root system 1 4,096
    m 2 0xc5d07ab4 --rw-r----- oracle dba oracle dba 83 755,777,536
    m 3 0x0d023b26 --rw-rw---- root system root system 2 1,440
    m 4 0x827d9cd0 --rw-r----- oracle dba oracle dba 10 319,569,920
    m 5 0x79b3a2b0 --rw-r----- oracle dba oracle dba 22 369,901,568
    m 6 0x00003039 --rw-rw-rw- oracle dba oracle dba 1 4,304
    m 7 0xffffffff --rw-rw---- root system root system 1 4,096
    m 8 0xffffffff --rw-rw---- root system root system 1 4,096
    m 9 0x41545200 --rw-rw-rw- root system root system 0 1,048,576

    Total 1,816,217,200

    Best regards,

    Joseph Karpinski
    #AIX-Forum