113 * A swapped in process is given a small amount of core without being bothered
114 * by the page replacement algorithm. Basically this says that if you are
115 * swapped in you deserve some resources. We protect the last SAFERSS
116 * pages against paging and will just swap you out rather than paging you.
117 * Note that each process has at least UPAGES pages which are not
118 * paged anyways so this number just means a swapped in process is
119 * given around 32k bytes.
120 */
121 /*
122 * nominal ``small'' resident set size
123 * protected against replacement
124 */
125 #define SAFERSS 3
126
127 /*
128 * DISKRPM is used to estimate the number of paging i/o operations
129 * which one can expect from a single disk controller.
130 *
131 * XXX - The system doesn't account for multiple swap devices.
132 */
133 #define DISKRPM 60
134
135 /*
136 * The maximum value for handspreadpages which is the the distance
137 * between the two clock hands in pages. This is only used when the page
138 * scanner is first started.
139 */
140 #define MAXHANDSPREADPAGES ((64 * 1024 * 1024) / PAGESIZE)
141
142 /*
143 * Paged text files that are less than PGTHRESH bytes
144 * may be "prefaulted in" instead of demand paged.
145 */
146 #define PGTHRESH (280 * 1024)
147
148 #ifdef __cplusplus
149 }
150 #endif
151
152 #endif /* _SYS_VM_MACHPARAM_H */
|
113 * A swapped in process is given a small amount of core without being bothered
114 * by the page replacement algorithm. Basically this says that if you are
115 * swapped in you deserve some resources. We protect the last SAFERSS
116 * pages against paging and will just swap you out rather than paging you.
117 * Note that each process has at least UPAGES pages which are not
118 * paged anyways so this number just means a swapped in process is
119 * given around 32k bytes.
120 */
121 /*
122 * nominal ``small'' resident set size
123 * protected against replacement
124 */
125 #define SAFERSS 3
126
127 /*
128 * DISKRPM is used to estimate the number of paging i/o operations
129 * which one can expect from a single disk controller.
130 *
131 * XXX - The system doesn't account for multiple swap devices.
132 */
133 #define DISKRPM 600
134
135 /*
136 * The maximum value for handspreadpages which is the the distance
137 * between the two clock hands in pages. This is only used when the page
138 * scanner is first started.
139 */
140 #define MAXHANDSPREADPAGES ((64 * 1024 * 1024) / PAGESIZE)
141
142 /*
143 * Paged text files that are less than PGTHRESH bytes
144 * may be "prefaulted in" instead of demand paged.
145 */
146 #define PGTHRESH (280 * 1024)
147
148 #ifdef __cplusplus
149 }
150 #endif
151
152 #endif /* _SYS_VM_MACHPARAM_H */
|