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 ; /* 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
nscan
defined in line
18;
never used
defined in line
28;
never used
Defined struct's