#sccs "@(#)uts/kern/sys:vmparam.h 1.1" /* Convergent Technologies - System V - May 1983 */ #ifndef vmparam_h #define vmparam_h #include /* * Virtual memory related constants */ #define MAXVMSIZ MAXUMEM /* max virtual addr (clicks) */ #define MAXTSIZ (MAXVMSIZ - SYSPAGE) /* max text size (clicks) */ #define MAXDSIZ (MAXVMSIZ - SYSPAGE) /* max data size (clicks) */ #define MAXSSIZ (MAXVMSIZ - SYSPAGE) /* max stack size (clicks) */ #if LATER #define YELLOWZONE 1 /* stack auto expansion zone */ #endif #define YELLOWZONE 64 /* stack auto expansion zone */ /* Max # of pages that can be swapped at once (defines virtual address space * for proc 2 */ #define MAXSWP 4 /* * The size of the clock loop. */ #define LOOPPAGES maxmem /* * The time for a process to be blocked before being very swappable. * This is a number of seconds which the system takes as being a non-trivial * amount of real time. You probably shouldn't change this; * it is used in subtle ways (fractions and multiples of it are, that is, like * half of a ``long time'', almost a long time, etc.) * It is related to human patience and other factors which don't really * change over time. */ #define MAXSLP 20 /* * A swapped in process is given a small amount of core without being bothered * by the page replacement algorithm. Basically this says that if you are * swapped in you deserve some resources. We protect the last SAFERSS * pages against paging and will just swap you out rather than paging you. * Note that each process has at least UPAGES+1 pages which are not * paged anyways (this is currently 8+2=10 pages or 5k bytes), so this * number just means a swapped in process is given around 25k bytes. * Just for fun: current memory prices are 4600$ a megabyte on VAX (4/22/81), * so we loan each swapped in process memory worth 100$, or just admit * that we don't consider it worthwhile and swap it out to disk which costs * $30/mb or about $0.75. */ #define SAFERSS 4 /* nominal ``small'' resident set size protected against replacement */ /* * DISKRPM is used to estimate the number of paging i/o operations * which one can expect from a single disk controller. */ #define DISKRPM 60 #ifdef KERNEL extern int klseql; extern int klsdist; extern int klin; extern int kltxt; extern int klout; extern int kv_pages; extern int kv_poip; extern ushort kv_swap; extern struct mpte kv_mpte[]; extern size_t sl_lsize; extern short sl_tbase; extern struct text sl_text; extern struct mpte sl_mpte[]; #endif #endif