summary |
tags |
clone url |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
5c6adb3)
SCCS-vsn: sys/vm/vm_meter.c 3.2
-/* vm_meter.c 3.1 %H% */
+/* vm_meter.c 3.2 %H% */
#include "../h/param.h"
#include "../h/systm.h"
#include "../h/param.h"
#include "../h/systm.h"
* amount of free memory.
*/
loop:
* amount of free memory.
*/
loop:
deservin = 0;
sleeper = 0;
p = 0;
deservin = 0;
sleeper = 0;
p = 0;
rp->p_flag &= ~SLOAD;
if (rp->p_stat == SRUN)
remrq(rp);
rp->p_flag &= ~SLOAD;
if (rp->p_stat == SRUN)
remrq(rp);
- VOID swapout(rp, rp->p_dsize, rp->p_ssize);
+ (void) swapout(rp, rp->p_dsize, rp->p_ssize);
sleep((caddr_t)&runout, PSWP);
goto loop;
}
sleep((caddr_t)&runout, PSWP);
goto loop;
}
/*
* Decide how deserving this guy is. If he is deserving
* we will be willing to work harder to bring him in.
/*
* Decide how deserving this guy is. If he is deserving
* we will be willing to work harder to bring him in.
* Select the nbig largest jobs, then the oldest of these
* is ``most likely to get booted.''
*/
* Select the nbig largest jobs, then the oldest of these
* is ``most likely to get booted.''
*/
inp = p;
sleeper = 0;
if (nbig > MAXNBIG)
inp = p;
sleeper = 0;
if (nbig > MAXNBIG)
* Want to swap someone in, but can't
* so wait on runin.
*/
* Want to swap someone in, but can't
* so wait on runin.
*/
runin++;
sleep((caddr_t)&runin, PSWP);
goto loop;
runin++;
sleep((caddr_t)&runin, PSWP);
goto loop;