1 1.1 glass 2 1.1 glass #define USRTEXT NBPG 3 1.6 glass #define USRSTACK 0x0E000000 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.6 glass #define MAXTSIZ (8*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.6 glass #define MAXDSIZ (32*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.6 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.4 glass * PTEs for mapping user space into the kernel for phyio operations. 36 1.4 glass * [this figure is based on the assumption that you can put ptes in real 37 1.4 glass * memory. this is a false assumption on a sun3] 38 1.4 glass * 39 1.4 glass */ 40 1.4 glass #ifndef USRIOSIZE 41 1.4 glass #define USRIOSIZE 1 42 1.4 glass #endif 43 1.4 glass 44 1.4 glass /* 45 1.1 glass * The time for a process to be blocked before being very swappable. 46 1.1 glass * This is a number of seconds which the system takes as being a non-trivial 47 1.1 glass * amount of real time. You probably shouldn't change this; 48 1.1 glass * it is used in subtle ways (fractions and multiples of it are, that is, like 49 1.1 glass * half of a ``long time'', almost a long time, etc.) 50 1.1 glass * It is related to human patience and other factors which don't really 51 1.1 glass * change over time. 52 1.1 glass */ 53 1.1 glass #define MAXSLP 20 54 1.1 glass 55 1.1 glass /* 56 1.1 glass * A swapped in process is given a small amount of core without being bothered 57 1.1 glass * by the page replacement algorithm. Basically this says that if you are 58 1.1 glass * swapped in you deserve some resources. We protect the last SAFERSS 59 1.1 glass * pages against paging and will just swap you out rather than paging you. 60 1.1 glass * Note that each process has at least UPAGES+CLSIZE pages which are not 61 1.1 glass * paged anyways (this is currently 8+2=10 pages or 5k bytes), so this 62 1.1 glass * number just means a swapped in process is given around 25k bytes. 63 1.1 glass * Just for fun: current memory prices are 4600$ a megabyte on VAX (4/22/81), 64 1.1 glass * so we loan each swapped in process memory worth 100$, or just admit 65 1.1 glass * that we don't consider it worthwhile and swap it out to disk which costs 66 1.1 glass * $30/mb or about $0.75. 67 1.1 glass */ 68 1.1 glass #define SAFERSS 4 /* nominal ``small'' resident set size 69 1.1 glass protected against replacement */ 70 1.1 glass 71 1.5 glass #define DVMA_SPACE_SIZE 0x00100000 72 1.5 glass #define DVMA_SPACE_START 0x0FD00000 73 1.5 glass #define DVMA_SPACE_END 0x0FE00000 /* mon start */ 74 1.1 glass 75 1.1 glass /* 76 1.1 glass * Mach derived constants 77 1.1 glass */ 78 1.1 glass 79 1.1 glass /* user/kernel map constants */ 80 1.1 glass #define VM_MIN_ADDRESS ((vm_offset_t)0) 81 1.2 glass #define VM_MAXUSER_ADDRESS ((vm_offset_t)0x0E000000) 82 1.6 glass #define VM_MAX_ADDRESS ((vm_offset_t)0x0FFF00000) 83 1.1 glass #define VM_MIN_KERNEL_ADDRESS ((vm_offset_t)0x0E004000) 84 1.6 glass #define VM_MAX_KERNEL_ADDRESS ((vm_offset_t)0x0FD00000) /* dvma start */ 85 1.1 glass 86 1.1 glass /* virtual sizes (bytes) for various kernel submaps */ 87 1.1 glass #define VM_MBUF_SIZE (NMBCLUSTERS*MCLBYTES) 88 1.1 glass #define VM_KMEM_SIZE (NKMEMCLUSTERS*CLBYTES) 89 1.1 glass #define VM_PHYS_SIZE (USRIOSIZE*CLBYTES) 90