Solaris 2.3 kernel variables

Solaris 2.3 kernel variables

Post by Jingwen Wa » Sun, 26 Dec 1993 07:19:13

    We have a program that tries to measure the paging rate as a load index.
To do this we read the information from the kernel. The information is
contained in the following data struct (defined in sys/sysinfo.h):

typedef struct cpu_vminfo {
        ulong   pgrec;          /* page reclaims (includes pageout)     */
        ulong   pgfrec;         /* page reclaims from free list         */
        ulong   pgin;           /* pageins                              */
        ulong   pgpgin;         /* pages paged in                       */
        ulong   pgout;          /* pageouts                             */
        ulong   pgpgout;        /* pages paged out                      */
        ulong   swapin;         /* swapins                              */
        ulong   pgswapin;       /* pages swapped in                     */
        ulong   swapout;        /* swapouts                             */
        ulong   pgswapout;      /* pages swapped out                    */
        ulong   zfod;           /* pages zero filled on demand          */
        ulong   dfree;          /* pages freed by daemon or auto        */
        ulong   scan;           /* pages examined by pageout daemon     */
        ulong   rev;            /* revolutions of the page daemon hand  */
        ulong   hat_fault;      /* minor page faults via hat_fault()    */
        ulong   as_fault;       /* minor page faults via as_fault()     */
        ulong   maj_fault;      /* major page faults                    */
        ulong   cow_fault;      /* copy-on-write faults                 */
        ulong   prot_fault;     /* protection faults                    */
        ulong   softlock;       /* faults due to software locking req   */
        ulong   kernel_asflt;   /* as_fault()s in kernel addr space     */
        ulong   pgrrun;         /* times pager scheduled                */

Quote:} cpu_vminfo_t;

    We tried to use "pgpgin + pgpgout + pgswapin + pgswapout".
However, the values we got are meaningless:
    o It does not change over time, no matter how we try to load the machine.
    o Every time we run this program, we got a different constant value.

    A typical output is:
    pgpgin=39401, pgpgout=302, pgswapin=0, pgswapout=0

    It never changes.

    Can someone help?


Jingwen Wang
U of Toronto



1. HELP: Solaris 2.3 <---> Solaris 2.3 PPP link problems

Hi all,

We are attempting to link up two Solaris 2.3 networks via PPP and we are
running into some problems.  The link initialy comes up and we are able to ping
both sides for about 30 seconds or so and then nothing.  Does anyone have a
clue what could be hapening? We are stumped here.


- Steve
 Always going where no one has gone before...


2. RH8.0 - What did I do here?

3. HELP: Solaris 2.3 <---> Solaris 2.3 PPP link Problems

4. Is there a program like Lotus Agenda for UNIX?

5. Help with Pageview under 2.3 (Re: Display Postscript X Solaris 2.3)

6. New FAQ for Linux/alpha

7. Q. Solaris 2.3 and /kernel/drv/st.conf

8. CDE Open Terminal in File Manager

9. need input on kernel jumbo patch for Solaris 2.3 (101318-70)

10. Solaris 2.3 kernel memory limitations.

11. Solaris 2.3 tunable kernel parameters

12. Setting up Solaris 2.3 Kernel parameters

13. solaris 2.3 kernel thrashed