3 Replies Latest reply: Sep 29, 2010 11:45 AM by gleng RSS

    Solaris10 kstat anonpgoup understanding

    807567
      On Solaris10 I have next kstat:
      $ kstat -n vm | grep anon
              anonfree                        1472578
              anonpgin                        137728
              anonpgout                       1472701
              anonfree                        4
              anonpgin                        145122
              anonpgout                       0
              anonfree                        2
              anonpgin                        138029
              anonpgout                       0
              anonfree                        0
              anonpgin                        114248
              anonpgout                       0
      so

      total anonfree 1472584
      total anonpgin 535128
      total anonpgout 1472701

      and
      $ pagesize
      4096
      $ swap -l
      swapfile             dev  swaplo blocks   free
      /dev/dsk/c1t0d0s1   61,65      8 51215208 44908168
      $ bc
      (51215208-44908168)/2/4
      788380
      $
      so I have 788380 pages "pagedouted" to the swap device
      How could it be, that I have 788380 pages paged out in my swap device and

      1472701-1472584=117 pages only ?

      Edited by: Dperf on Sep 13, 2010 1:47 AM
        • 1. Re: Solaris10 kstat anonpgoup understanding
          user4994457
          You seem to be trying to line up two figures that aren't comparable.

          The swap -l output will tell you about the status of the system. How many allocated pages are on the pagefile.

          The kstat output is telling you about what your CPU has done in the past. How many page motions it has performed. You can't subtract page frees from pageouts. In fact, I'll bet most of those refer to motion of the same pages.

          So you've paged out 1472701 pages in the past and you have 788380 pages in use on the page file right now. Presumably some of the pages came back in or were invalidated after being paged out.

          --
          Darren
          • 2. Re: Solaris10 kstat anonpgoup understanding
            807567
            You say:
            The kstat output is telling you about what your CPU has done in the past.
            But how long that "in the past". One example from my servers:
            $ uptime
            7:51pm  up 394 day(s),  6:05,  2 users,  load average: 0.57, 0.62, 0.62
            $ sudo kstat -n vm | grep anon
            anonfree                        1317
            anonpgin                        414
            anonpgout                       1317
            anonfree                        7518
            anonpgin                        1461
            anonpgout                       7518
            anonfree                        2100
            anonpgin                        480
            anonpgout                       2100
            anonfree                        10559
            anonpgin                        1372
            anonpgout                       10559
            It's unlikely than there were so little free/pgin/pgout since boot. I understand swap -l & -s output.
            But what kstat values mean ?

            Edited by: Dperf on Sep 17, 2010 9:00 AM
            • 3. Re: Solaris10 kstat anonpgoup understanding
              gleng
              hmmm ... it's Sept 29th, but looks like posting is still enabled.


              I see the following on a production Oracle DB server:
              uptime
               11:38am  up 80 day(s), 10:36,  3 users,  load average: 1.21, 1.41, 1.61
              sudo kstat -n vm | grep anon
                      anonfree                        0
                      anonpgin                        0
                      anonpgout                       0
                      anonfree                        0
                      anonpgin                        0
                      anonpgout                       0
                      anonfree                        0
                      anonpgin                        0
                      anonpgout                       0
                      anonfree                        0
                      anonpgin                        0
                      anonpgout                       0
                      anonfree                        0
                      anonpgin                        0
                      anonpgout                       0
                      anonfree                        0
                      anonpgin                        0
                      anonpgout                       0
                      anonfree                        0
                      anonpgin                        0
                      anonpgout                       0
                      anonfree                        0
                      anonpgin                        0
                      anonpgout                       0
              It's just over 80 days, but ir is an active production server.

              have a good day,
              Glen