diff options
author | julian <julian@FreeBSD.org> | 2004-06-16 00:26:31 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 2004-06-16 00:26:31 +0000 |
commit | 6c9d81ae0df6427002b251b73dadd33e8dcad9ac (patch) | |
tree | ccd863bb9258875fbfaaa74744c38e9db22822b0 /sys/vm | |
parent | eedef68f32aacaf0c79774e686ad03691318b8d3 (diff) | |
download | FreeBSD-src-6c9d81ae0df6427002b251b73dadd33e8dcad9ac.zip FreeBSD-src-6c9d81ae0df6427002b251b73dadd33e8dcad9ac.tar.gz |
Nice, is a property of a process as a whole..
I mistakenly moved it to the ksegroup when breaking up the process
structure. Put it back in the proc structure.
Diffstat (limited to 'sys/vm')
-rw-r--r-- | sys/vm/vm_glue.c | 2 | ||||
-rw-r--r-- | sys/vm/vm_pageout.c | 5 |
2 files changed, 2 insertions, 5 deletions
diff --git a/sys/vm/vm_glue.c b/sys/vm/vm_glue.c index b625615..b34f629 100644 --- a/sys/vm/vm_glue.c +++ b/sys/vm/vm_glue.c @@ -824,7 +824,7 @@ loop: kg = td->td_ksegrp; pri = p->p_swtime + kg->kg_slptime; if ((p->p_sflag & PS_SWAPINREQ) == 0) { - pri -= kg->kg_nice * 8; + pri -= p->p_nice * 8; } /* diff --git a/sys/vm/vm_pageout.c b/sys/vm/vm_pageout.c index b7ac7a4..640770d 100644 --- a/sys/vm/vm_pageout.c +++ b/sys/vm/vm_pageout.c @@ -1225,12 +1225,9 @@ unlock_and_continue: } sx_sunlock(&allproc_lock); if (bigproc != NULL) { - struct ksegrp *kg; killproc(bigproc, "out of swap space"); mtx_lock_spin(&sched_lock); - FOREACH_KSEGRP_IN_PROC(bigproc, kg) { - sched_nice(kg, PRIO_MIN); /* XXXKSE ??? */ - } + sched_nice(bigproc, PRIO_MIN); mtx_unlock_spin(&sched_lock); PROC_UNLOCK(bigproc); wakeup(&cnt.v_free_count); |