1 1.1 glass 2 1.1 glass #define USRTEXT NBPG 3 1.1 glass #define USRSTACK (0-NBPG) 4 1.1 glass 5 1.1 glass /* 6 1.1 glass * Virtual memory related constants, all in bytes 7 1.1 glass */ 8 1.1 glass #ifndef MAXTSIZ 9 1.1 glass #define MAXTSIZ (6*1024*1024) /* max text size */ 10 1.1 glass #endif 11 1.1 glass #ifndef DFLDSIZ 12 1.1 glass #define DFLDSIZ (8*1024*1024) /* initial data size limit */ 13 1.1 glass #endif 14 1.1 glass #ifndef MAXDSIZ 15 1.1 glass #define MAXDSIZ (16*1024*1024) /* max data size */ 16 1.1 glass #endif 17 1.1 glass #ifndef DFLSSIZ 18 1.1 glass #define DFLSSIZ (512*1024) /* initial stack size limit */ 19 1.1 glass #endif 20 1.1 glass #ifndef MAXSSIZ 21 1.1 glass #define MAXSSIZ MAXDSIZ /* max stack size */ 22 1.1 glass #endif 23 1.1 glass 24 1.1 glass /* 25 1.1 glass * Default sizes of swap allocation chunks (see dmap.h). 26 1.1 glass * The actual values may be changed in vminit() based on MAXDSIZ. 27 1.1 glass * With MAXDSIZ of 16Mb and NDMAP of 38, dmmax will be 1024. 28 1.1 glass * DMMIN should be at least ctod(1) so that vtod() works. 29 1.1 glass * vminit() insures this. 30 1.1 glass */ 31 1.1 glass #define DMMIN 32 /* smallest swap allocation */ 32 1.1 glass #define DMMAX 4096 /* largest potential swap allocation */ 33 1.1 glass 34 1.1 glass /* 35 1.1 glass * The time for a process to be blocked before being very swappable. 36 1.1 glass * This is a number of seconds which the system takes as being a non-trivial 37 1.1 glass * amount of real time. You probably shouldn't change this; 38 1.1 glass * it is used in subtle ways (fractions and multiples of it are, that is, like 39 1.1 glass * half of a ``long time'', almost a long time, etc.) 40 1.1 glass * It is related to human patience and other factors which don't really 41 1.1 glass * change over time. 42 1.1 glass */ 43 1.1 glass #define MAXSLP 20 44 1.1 glass 45 1.1 glass /* 46 1.1 glass * A swapped in process is given a small amount of core without being bothered 47 1.1 glass * by the page replacement algorithm. Basically this says that if you are 48 1.1 glass * swapped in you deserve some resources. We protect the last SAFERSS 49 1.1 glass * pages against paging and will just swap you out rather than paging you. 50 1.1 glass * Note that each process has at least UPAGES+CLSIZE pages which are not 51 1.1 glass * paged anyways (this is currently 8+2=10 pages or 5k bytes), so this 52 1.1 glass * number just means a swapped in process is given around 25k bytes. 53 1.1 glass * Just for fun: current memory prices are 4600$ a megabyte on VAX (4/22/81), 54 1.1 glass * so we loan each swapped in process memory worth 100$, or just admit 55 1.1 glass * that we don't consider it worthwhile and swap it out to disk which costs 56 1.1 glass * $30/mb or about $0.75. 57 1.1 glass */ 58 1.1 glass #define SAFERSS 4 /* nominal ``small'' resident set size 59 1.1 glass protected against replacement */ 60 1.1 glass 61 1.1 glass 62 1.1 glass /* 63 1.1 glass * Mach derived constants 64 1.1 glass */ 65 1.1 glass 66 1.1 glass /* user/kernel map constants */ 67 1.1 glass #define VM_MIN_ADDRESS ((vm_offset_t)0) 68 1.1 glass #define VM_MAXUSER_ADDRESS ((vm_offset_t)0xFFF00000) 69 1.1 glass #define VM_MAX_ADDRESS ((vm_offset_t)0xFFF00000) 70 1.1 glass #define VM_MIN_KERNEL_ADDRESS ((vm_offset_t)0x0E004000) 71 1.1 glass #define VM_MAX_KERNEL_ADDRESS ((vm_offset_t)0xFFFFF000) 72 1.1 glass 73 1.1 glass /* virtual sizes (bytes) for various kernel submaps */ 74 1.1 glass #define VM_MBUF_SIZE (NMBCLUSTERS*MCLBYTES) 75 1.1 glass #define VM_KMEM_SIZE (NKMEMCLUSTERS*CLBYTES) 76 1.1 glass #define VM_PHYS_SIZE (USRIOSIZE*CLBYTES) 77