1: /*
   2:  * Copyright (c) 1982, 1986 Regents of the University of California.
   3:  * All rights reserved.  The Berkeley software License Agreement
   4:  * specifies the terms and conditions for redistribution.
   5:  *
   6:  *	@(#)vmsystm.h	7.1 (Berkeley) 6/4/86
   7:  */
   8: 
   9: /*
  10:  * Miscellaneous virtual memory subsystem variables and structures.
  11:  */
  12: 
  13: #ifdef KERNEL
  14: int freemem;        /* remaining blocks of free memory */
  15: int avefree;        /* moving average of remaining free blocks */
  16: int avefree30;      /* 30 sec (avefree is 5 sec) moving average */
  17: int deficit;        /* estimate of needs of new swapped in procs */
  18: int nscan;          /* number of scans in last second */
  19: int multprog;       /* current multiprogramming degree */
  20: int desscan;        /* desired pages scanned per second */
  21: 
  22: /* writable copies of tunables */
  23: int maxpgio;        /* max paging i/o per sec before start swaps */
  24: int maxslp;         /* max sleep time before very swappable */
  25: int lotsfree;       /* max free before clock freezes */
  26: int minfree;        /* minimum free pages before swapping begins */
  27: int desfree;        /* no of pages to try to keep free via daemon */
  28: int saferss;        /* no pages not to steal; decays with slptime */
  29: int slowscan;       /* slowest scan rate, clusters/second */
  30: int fastscan;       /* fastest scan rate, clusters/second */
  31: #endif
  32: 
  33: /*
  34:  * Fork/vfork accounting.
  35:  */
  36: struct  forkstat
  37: {
  38:     int cntfork;
  39:     int cntvfork;
  40:     int sizfork;
  41:     int sizvfork;
  42: };
  43: #ifdef KERNEL
  44: struct  forkstat forkstat;
  45: #endif
  46: 
  47: /*
  48:  * Swap kind accounting.
  49:  */
  50: struct  swptstat
  51: {
  52:     int pteasy;     /* easy pt swaps */
  53:     int ptexpand;   /* pt expansion swaps */
  54:     int ptshrink;   /* pt shrinking swaps */
  55:     int ptpack;     /* pt swaps involving spte copying */
  56: };
  57: #ifdef KERNEL
  58: struct  swptstat swptstat;
  59: #endif

Defined variables

avefree defined in line 15; never used
avefree30 defined in line 16; never used
deficit defined in line 17; never used
desfree defined in line 27; never used
desscan defined in line 20; never used
fastscan defined in line 30; never used
forkstat defined in line 44; never used
freemem defined in line 14; never used
lotsfree defined in line 25; never used
maxpgio defined in line 23; never used
maxslp defined in line 24; never used
minfree defined in line 26; never used
multprog defined in line 19; never used
nscan defined in line 18; never used
saferss defined in line 28; never used
slowscan defined in line 29; never used
swptstat defined in line 58; never used

Defined struct's

forkstat defined in line 36; used 2 times
  • in line 44(2)
swptstat defined in line 50; used 2 times
  • in line 58(2)
Last modified: 1986-06-05
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 683
Valid CSS Valid XHTML 1.0 Strict