Print this page
4747 remove unused [DS]SIZE_LIMIT defines
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/uts/sun4/sys/vm_machparam.h
+++ new/usr/src/uts/sun4/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 */
21 21 /* Copyright (c) 1988 AT&T */
↓ open down ↓ |
21 lines elided |
↑ open up ↑ |
22 22 /* All Rights Reserved */
23 23
24 24 /*
25 25 * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
26 26 * Use is subject to license terms.
27 27 */
28 28
29 29 #ifndef _SYS_VM_MACHPARAM_H
30 30 #define _SYS_VM_MACHPARAM_H
31 31
32 -#pragma ident "%Z%%M% %I% %E% SMI"
33 -
34 32 #ifdef __cplusplus
35 33 extern "C" {
36 34 #endif
37 35
38 36 /*
39 37 * Machine dependent constants for sun4u.
40 38 */
41 39
42 40 /*
43 41 * USRTEXT is the start of the user text/data space.
44 42 */
45 43 #define USRTEXT 0x2000
46 44
↓ open down ↓ |
3 lines elided |
↑ open up ↑ |
47 45 /*
48 46 * Virtual memory related constants for UNIX resource control, all in bytes
49 47 * The default stack size of 8M allows an optimization of mmu mapping
50 48 * resources so that in normal use a single mmu region map entry (smeg)
51 49 * can be used to map both the stack and shared libraries
52 50 */
53 51 #define MAXSSIZ (0x7ffff000) /* max stack size limit */
54 52 #define DFLSSIZ (8*1024*1024) /* initial stack size limit */
55 53
56 54 /*
57 - * DSIZE_LIMIT and SSIZE_LIMIT exist to work-around an SVVS bug (1094085),
58 - * and should be removed from the kernel (1094089)
59 - */
60 -
61 -#define DSIZE_LIMIT (USERLIMIT-USRTEXT) /* physical data limit */
62 -#define SSIZE_LIMIT (0x7fffffff) /* physical stack limit */
63 -
64 -/*
65 55 * Minimum allowable virtual address space to be used
66 56 * by the seg_map segment driver for fast kernel mappings.
67 57 */
68 58 #define MINMAPSIZE 0x200000
69 59
70 60 /*
71 61 * The virtual address space to be used by the seg_map segment
72 62 * driver for fast kernel mappings.
73 63 *
74 64 * Size is 1/8th of physmem at boot.
75 65 */
76 66
77 67 #ifdef _LP64
78 68 #define SEGMAPSIZE (256L * 1024L * 1024L * 1024L) /* 256G */
79 69 #else
80 70 #define SEGMAPSIZE (256 * 1024 * 1024) /* 256M */
81 71 #endif /* _LP64 */
82 72
83 73 /*
84 74 * Define the default virtual size and valid size range for the segkp segment.
85 75 */
86 76 #ifdef _LP64
87 77 #define SEGKPDEFSIZE (2L * 1024L * 1024L * 1024L) /* 2G */
88 78 #define SEGKPMAXSIZE (24L * 1024L * 1024L * 1024L) /* 24G */
89 79 #define SEGKPMINSIZE (512L * 1024 * 1024L) /* 512M */
90 80 #else
91 81 #define SEGKPDEFSIZE (512 * 1024 * 1024)
92 82 #define SEGKPMAXSIZE (512 * 1024 * 1024)
93 83 #define SEGKPMINSIZE (512 * 1024 * 1024)
94 84 #endif /* _LP64 */
95 85
96 86 /*
97 87 * Define minimum size for zio segment
98 88 */
99 89 #define SEGZIOMINSIZE (512L * 1024L * 1024L) /* 512M */
100 90 #define SEGZIOMAXSIZE (512L * 1024L * 1024L * 1024L) /* 512G */
101 91
102 92 /*
103 93 * The time for a process to be blocked before being very swappable.
104 94 * This is a number of seconds which the system takes as being a non-trivial
105 95 * amount of real time. You probably shouldn't change this;
106 96 * it is used in subtle ways (fractions and multiples of it are, that is, like
107 97 * half of a ``long time'', almost a long time, etc.)
108 98 * It is related to human patience and other factors which don't really
109 99 * change over time.
110 100 */
111 101 #define MAXSLP 20
112 102
113 103 /*
114 104 * A swapped in process is given a small amount of core without being bothered
115 105 * by the page replacement algorithm. Basically this says that if you are
116 106 * swapped in you deserve some resources. We protect the last SAFERSS
117 107 * pages against paging and will just swap you out rather than paging you.
118 108 * Note that each process has at least UPAGES pages which are not
119 109 * paged anyways so this number just means a swapped in process is
120 110 * given around 32k bytes.
121 111 */
122 112 /*
123 113 * nominal ``small'' resident set size
124 114 * protected against replacement
125 115 */
126 116 #define SAFERSS 3
127 117
128 118 /*
129 119 * DISKRPM is used to estimate the number of paging i/o operations
130 120 * which one can expect from a single disk controller.
131 121 *
132 122 * XXX - The system doesn't account for multiple swap devices.
133 123 */
134 124 #define DISKRPM 60
135 125
136 126 /*
137 127 * The maximum value for handspreadpages which is the the distance
138 128 * between the two clock hands in pages.
139 129 */
140 130 #define MAXHANDSPREADPAGES ((64 * 1024 * 1024) / PAGESIZE)
141 131
142 132 /*
143 133 * Paged text files that are less than PGTHRESH bytes
144 134 * may be "prefaulted in" instead of demand paged.
145 135 */
146 136 #define PGTHRESH (280 * 1024)
147 137
148 138 /*
149 139 * Cacheable bit for 64 bit MXCC Stream Source registers
150 140 */
151 141 #define BC_CACHE_SHIFT 36
152 142
153 143 /*
154 144 * set type for 64 bit phys addr variables. Needed at least for interface
155 145 * with MXCC.
156 146 */
157 147
158 148 #ifndef _ASM
159 149 typedef unsigned long long pa_t;
160 150 #endif
161 151
162 152 #ifdef __cplusplus
163 153 }
164 154 #endif
165 155
166 156 #endif /* _SYS_VM_MACHPARAM_H */
↓ open down ↓ |
92 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX