Solaris Troubleshooting : Monitoring Kernel Memory Utilisation :

Ramdev

I have started unixadminschool.com ( aka gurkulindia.com) in 2009 as my own personal reference blog, and later sometime i have realized that my leanings might be helpful for other unixadmins if I manage my knowledge-base in more user friendly format. And the result is today's' unixadminschool.com. You can connect me at - https://www.linkedin.com/in/unixadminschool/

Loading Facebook Comments ...

3 Responses

  1. Ramesh says:

    Hi Ram,

    I used read your posts. I need some help to find out memory usage culprit.

    I have 32GB physical memory and running on 2 local zones. one zone is using 11GB memory as heap size and second one idle. They is no limit set to zones. from global zone i can see only 4gb available free but only using 11GB. I want to find out where remaining memory is used.

    echo ::memstat | mdb -k
    Page Summary Pages MB %Tot
    ———— —————- —————- —-
    Kernel 3015457 11779 36%
    ZFS File Data 1242712 4854 15%
    Anon 2880578 11252 34%
    Exec and libs 30363 118 0%
    Page cache 4875 19 0%
    Free (cachelist) 30003 117 0%
    Free (freelist) 1182401 4618 14%

    Total 8386389 32759
    Physical 8177494 31943

    TOP output:
    last pid: 16396; load avg: 1.62, 1.54, 1.54; up 6+07:28:50 15:12:19
    157 processes: 155 sleeping, 2 on cpu
    CPU states: 83.7% idle, 12.8% user, 3.5% kernel, 0.0% iowait, 0.0% swap
    Memory: 32G phys mem, 3800M free mem, 2048M total swap, 2048M free swap

    PID USERNAME LWP PRI NICE SIZE RES STATE TIME CPU COMMAND
    8666 7612 718 53 2 11G 10G cpu/0 539:39 14.30% java
    16214 7612 1 59 0 2684K 1628K sleep 0:04 0.10% vmstat
    2190 noaccess 18 59 0 151M 117M sleep 19:12 0.06% java
    2151 noaccess 18 59 0 151M 117M sleep 18:40 0.05% java
    15962 noaccess 18 59 0 219M 168M sleep 0:16 0.04% java
    830 root 1 59 0 21M 18M sleep 11:31 0.03% Xorg
    9885 root 12 59 0 37M 23M sleep 6:29 0.03% agtrep
    9661 root 4 59 0 25M 11M sleep 3:57 0.03% opcacta
    9533 root 29 59 0 21M 13M sleep 7:04 0.03% ovcd
    9869 root 8 59 0 42M 26M sleep 13:09 0.02% opcmona
    1519 root 1 59 0 19M 13M sleep 6:36 0.02% dtgreet

    prstat -Z
    430 root 2488K 1520K sleep 59 0 0:00:00 0.0% ttymon/1
    ZONEID NPROC SWAP RSS MEMORY TIME CPU ZONE
    1 60 12G 11G 33% 12:23:08 21% rws-prd-app-01
    0 65 347M 326M 1.0% 1:21:59 0.1% global
    2 36 229M 203M 0.6% 0:26:14 0.0% rws-prd-app-02

    Can you please suggest what i missed and how to find out the culprint?

    • Ramdev says:

      Hi Ramesh,

      ============================

      echo ::memstat | mdb -k
      Page Summary Pages MB %Tot
      ———— —————- —————- —-
      Kernel 3015457 11779 36% <--- Kernel memory ZFS File Data 1242712 4854 15% <-- ZFS ARC ============================== i could see 11GB of memory eaten by kernel, you need to further check. what exactly taking more memory in kernel ( echo "::kmastat"|mdb -k ). And 4.5 GB was used by ZFS file data i.e the amount of memory currently allocated in all memory caches associated with ARC file data. check actual ZZFS ARC usage with " kstat -n arcstats -s size" to understand more about ARC issues you can read this nice article - http://dtrace.org/blogs/brendan/2012/01/09/activity-of-the-zfs-arc/

  1. September 16, 2015

    […] Read– Monitoring Kernel Memory Utilization […]

Leave a Reply

Your email address will not be published.

[contact-form to='ramkumar.ramadevu@gmail.com' subject='New Learning Request Submitted'][contact-field label='Name' type='name' required='1'/][contact-field label='Email' type='email' required='1'/][contact-field label='Learning Request' type='textarea' required='1'/][contact-field label='Are you Looking for ' type='radio' required='1' options='Paid Training,Free Training'/][/contact-form]

What is your Learning Goal for Next Six Months ? Talk to us