|
|
1.1 ! root 1: /* ! 2: * Miscellaneous virtual memory subsystem variables and structures. ! 3: */ ! 4: ! 5: #ifdef KERNEL ! 6: int freemem; /* remaining blocks of free memory */ ! 7: int avefree; /* moving average of remaining free blocks */ ! 8: int avefree30; /* 30 sec (avefree is 5 sec) moving average */ ! 9: int deficit; /* estimate of needs of new swapped in procs */ ! 10: int nscan; /* number of scans in last second */ ! 11: int desscan; /* desired pages scanned per second */ ! 12: int kmapwnt; /* kernel map wanted flag */ ! 13: ! 14: /* writable copies of tunables */ ! 15: int maxpgio; /* max paging i/o per sec before start swaps */ ! 16: int maxslp; /* max sleep time before very swappable */ ! 17: int lotsfree; /* max free before clock freezes */ ! 18: int minfree; /* minimum free pages before swapping begins */ ! 19: int desfree; /* no of pages to try to keep free via daemon */ ! 20: int saferss; /* no pages not to steal; decays with slptime */ ! 21: #endif ! 22: ! 23: /* ! 24: * Swap kind accounting. ! 25: */ ! 26: struct swptstat ! 27: { ! 28: int pteasy; /* easy pt swaps */ ! 29: int ptexpand; /* pt expansion swaps */ ! 30: int ptshrink; /* pt shrinking swaps */ ! 31: int ptpack; /* pt swaps involving spte copying */ ! 32: }; ! 33: #ifdef KERNEL ! 34: struct swptstat swptstat; ! 35: #endif ! 36: ! 37: #ifdef KERNEL ! 38: swblk_t vtod(); ! 39: int vmemall(); ! 40: int memall(); ! 41: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.