SCCS-vsn: sys/kern/init_main.c 4.49
SCCS-vsn: sys/vm/vm_meter.c 4.20
-/* init_main.c 4.48 83/03/31 */
+/* init_main.c 4.49 83/04/04 */
#include "../machine/pte.h"
#include "../machine/pte.h"
if (newproc(0)) {
proc[2].p_flag |= SLOAD|SSYS;
proc[2].p_dsize = u.u_dsize = nswbuf*CLSIZE*KLMAX;
if (newproc(0)) {
proc[2].p_flag |= SLOAD|SSYS;
proc[2].p_dsize = u.u_dsize = nswbuf*CLSIZE*KLMAX;
-#ifdef NOPAGING
- for (;;)
- sleep((caddr_t)&u, PSLEP);
- /*NOTREACHED*/
-#else
pageout();
/*NOTREACHED*/
pageout();
/*NOTREACHED*/
-/* vm_meter.c 4.19 83/01/17 */
+/* vm_meter.c 4.20 83/04/04 */
#include "../h/param.h"
#include "../h/systm.h"
#include "../h/param.h"
#include "../h/systm.h"
if (lotsfree == 0)
lotsfree = LOOPPAGES / 4;
if (desfree == 0) {
if (lotsfree == 0)
lotsfree = LOOPPAGES / 4;
if (desfree == 0) {
desfree = (200*1024) / NBPG;
if (desfree > LOOPPAGES / 8)
desfree = LOOPPAGES / 8;
desfree = (200*1024) / NBPG;
if (desfree > LOOPPAGES / 8)
desfree = LOOPPAGES / 8;
-#else
- desfree = (32*1024) / NBPG;
-#endif
}
if (minfree == 0) {
minfree = (64*1024) / NBPG;
}
if (minfree == 0) {
minfree = (64*1024) / NBPG;
* and 3. the short (5-second) and longer (30-second) average
* memory is less than desirable.
*/
* and 3. the short (5-second) and longer (30-second) average
* memory is less than desirable.
*/
- if (
-#ifdef NOPAGING
- freemem == 0 ||
-#endif
- kmapwnt || (avenrun[0] >= 2 && imax(avefree, avefree30) < desfree &&
+ if (kmapwnt || (avenrun[0] >= 2 && imax(avefree, avefree30) < desfree &&
(rate.v_pgin + rate.v_pgout > maxpgio || avefree < minfree))) {
desperate = 1;
goto hardswap;
(rate.v_pgin + rate.v_pgout > maxpgio || avefree < minfree))) {
desperate = 1;
goto hardswap;
divisor = 1;
if (outpri > maxslp/2) {
deservin = 1;
divisor = 1;
if (outpri > maxslp/2) {
deservin = 1;
-#ifdef NOPAGING
- divisor = 1;
-#else
}
needs = p->p_swrss;
if (p->p_textp && p->p_textp->x_ccount == 0)
}
needs = p->p_swrss;
if (p->p_textp && p->p_textp->x_ccount == 0)