Print this page
4747 remove unused [DS]SIZE_LIMIT defines
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/uts/i86pc/sys/vm_machparam.h
+++ new/usr/src/uts/i86pc/sys/vm_machparam.h
1 1 /*
2 2 * CDDL HEADER START
3 3 *
4 4 * The contents of this file are subject to the terms of the
5 5 * Common Development and Distribution License (the "License").
6 6 * You may not use this file except in compliance with the License.
7 7 *
8 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 * or http://www.opensolaris.org/os/licensing.
10 10 * See the License for the specific language governing permissions
11 11 * and limitations under the License.
12 12 *
13 13 * When distributing Covered Code, include this CDDL HEADER in each
14 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 15 * If applicable, add the following below this CDDL HEADER, with the
16 16 * fields enclosed by brackets "[]" replaced with your own identifying
17 17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 18 *
19 19 * CDDL HEADER END
20 20 */
↓ open down ↓ |
20 lines elided |
↑ open up ↑ |
21 21 /* Copyright (c) 1988 AT&T */
22 22 /* All Rights Reserved */
23 23 /*
24 24 * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
25 25 * Use is subject to license terms.
26 26 */
27 27
28 28 #ifndef _SYS_VM_MACHPARAM_H
29 29 #define _SYS_VM_MACHPARAM_H
30 30
31 -#pragma ident "%Z%%M% %I% %E% SMI"
32 -
33 31 #ifdef __cplusplus
34 32 extern "C" {
35 33 #endif
36 34
37 35 /*
38 36 * Machine dependent constants for PC.
39 37 */
40 38
41 39 /*
42 40 * USRTEXT is the start of the user text/data space.
43 41 */
44 42 #define USRTEXT USRSTACK
45 43
46 44 /*
47 45 * Virtual memory related constants for UNIX resource control, all in bytes.
48 46 * The default stack size (initial stack size limit) keeps the stack from
49 47 * taking more than 2 page directory entries in addition to the part of
50 48 * the page directory entry which also maps the initial text and data,
51 49 * and makes the default slightly bigger than the 8MB on SPARC.
52 50 */
53 51 #ifdef __amd64
54 52 /*
55 53 * On amd64, the stack grows down from just below KERNELBASE (see the
56 54 * definition of USERLIMIT in i86pc/sys/machparam.h). Theoretically,
57 55 * it could grow down to the top of the VA hole (0xffff800000000000),
58 56 * giving it a possible maximum of about 125T. For an amd64 xpv
59 57 * kernel, all user VA space is below the VA hole. The theoretical
60 58 * maximum for the stack is about the same, although it can't grow
61 59 * to quite that size, since it would clash with the heap.
62 60 *
63 61 * Pick an upper limit that will work in both cases: 32T.
↓ open down ↓ |
21 lines elided |
↑ open up ↑ |
64 62 *
65 63 * For 32bit processes, the stack is below the text segment.
66 64 */
67 65 #define MAXSSIZ (32ULL * 1024ULL * 1024ULL * 1024ULL * 1024ULL)
68 66 #else
69 67 #define MAXSSIZ (USRSTACK - 1024*1024)
70 68 #endif /* __amd64 */
71 69 #define DFLSSIZ (8*1024*1024 + ((USRSTACK) & 0x3FFFFF))
72 70
73 71 /*
74 - * The following are limits beyond which the hard or soft limits for stack
75 - * and data cannot be increased. These may be viewed as fundamental
76 - * characteristics of the system. Note: a bug in SVVS requires that the
77 - * default hard limit be increasable, so the default hard limit must be
78 - * less than these physical limits.
79 - */
80 -#define DSIZE_LIMIT (USERLIMIT-USRTEXT) /* physical data limit */
81 -#define SSIZE_LIMIT (USRSTACK) /* physical stack limit */
82 -
83 -/*
84 72 * Size of the kernel segkmem system pte table. This virtual
85 73 * space is controlled by the resource map "kernelmap".
86 74 */
87 75 #define SYSPTSIZE ((61*1024*1024) / MMU_PAGESIZE)
88 76
89 77 /*
90 78 * Size of the ethernet addressable kernel segkmem system pte table.
91 79 * This virtual space is controlled by the resource map "ekernelmap".
92 80 * The ethernet interfaces in some sun machines can address only
93 81 * the upper 16 Megabytes of memory. Since the ethernet
94 82 * driver kmem_allocs its memory, we bias all kmem_allocs
95 83 * to try ekernelmap first and if it fails try kernelmap.
96 84 * Folks that allocate directly out of kernelmap, above,
97 85 * get memory that is non-ethernet addressable.
98 86 */
99 87 #define E_SYSPTSIZE (0x2000000 / MMU_PAGESIZE)
100 88
101 89 /*
102 90 * The virtual address space to be used by the seg_map segment
103 91 * driver for fast kernel mappings.
104 92 */
105 93 #if defined(__i386)
106 94 #define SEGMAPDEFAULT (16 * 1024 * 1024)
107 95 #define SEGMAPMAX (128 * 1024 * 1024)
108 96 #else
109 97 #define SEGMAPDEFAULT (64 * 1024 * 1024)
110 98 #endif
111 99
112 100 /*
113 101 * The time for a process to be blocked before being very swappable.
114 102 * This is a number of seconds which the system takes as being a non-trivial
115 103 * amount of real time. You probably shouldn't change this;
116 104 * it is used in subtle ways (fractions and multiples of it are, that is, like
117 105 * half of a ``long time'', almost a long time, etc.)
118 106 * It is related to human patience and other factors which don't really
119 107 * change over time.
120 108 */
121 109 #define MAXSLP 20
122 110
123 111 /*
124 112 * A swapped in process is given a small amount of core without being bothered
125 113 * by the page replacement algorithm. Basically this says that if you are
126 114 * swapped in you deserve some resources. We protect the last SAFERSS
127 115 * pages against paging and will just swap you out rather than paging you.
128 116 * Note that each process has at least UPAGES pages which are not
129 117 * paged anyways so this number just means a swapped in process is
130 118 * given around 32k bytes.
131 119 */
132 120 /*
133 121 * nominal ``small'' resident set size
134 122 * protected against replacement
135 123 */
136 124 #define SAFERSS 3
137 125
138 126 /*
139 127 * DISKRPM is used to estimate the number of paging i/o operations
140 128 * which one can expect from a single disk controller.
141 129 *
142 130 * XXX - The system doesn't account for multiple swap devices.
143 131 */
144 132 #define DISKRPM 60
145 133
146 134 /*
147 135 * The maximum value for handspreadpages which is the the distance
148 136 * between the two clock hands in pages.
149 137 */
150 138 #define MAXHANDSPREADPAGES ((64 * 1024 * 1024) / PAGESIZE)
151 139
152 140 /*
153 141 * Paged text files that are less than PGTHRESH bytes
154 142 * may be "prefaulted in" instead of demand paged.
155 143 */
156 144 #define PGTHRESH (280 * 1024)
157 145
158 146 #ifdef __cplusplus
159 147 }
160 148 #endif
161 149
162 150 #endif /* _SYS_VM_MACHPARAM_H */
↓ open down ↓ |
69 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX