diff options
| author | John Dyson <dyson@FreeBSD.org> | 1998-02-05 03:32:49 +0000 |
|---|---|---|
| committer | John Dyson <dyson@FreeBSD.org> | 1998-02-05 03:32:49 +0000 |
| commit | 95461b450d8d76f79be75d7dd0aee4adec4223fb (patch) | |
| tree | 19ec035c730260d5d3bb5bf2326838b26108d09e /sys/vm/vm_glue.c | |
| parent | 47cfdb166d16af183216e459e4e48aff9d2beabf (diff) | |
Notes
Diffstat (limited to 'sys/vm/vm_glue.c')
| -rw-r--r-- | sys/vm/vm_glue.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/vm/vm_glue.c b/sys/vm/vm_glue.c index 9abb81b4c6ee..801673ca07a7 100644 --- a/sys/vm/vm_glue.c +++ b/sys/vm/vm_glue.c @@ -59,7 +59,7 @@ * any improvements or extensions that they make and grant Carnegie the * rights to redistribute these changes. * - * $Id: vm_glue.c,v 1.70 1998/01/22 17:30:34 dyson Exp $ + * $Id: vm_glue.c,v 1.71 1998/02/04 22:33:44 eivind Exp $ */ #include "opt_diagnostic.h" @@ -214,6 +214,7 @@ vm_fork(p1, p2, flags) } while ((cnt.v_free_count + cnt.v_cache_count) < cnt.v_free_min) { + vm_pageout_deficit += (UPAGES + VM_INITIAL_PAGEIN); VM_WAIT; } @@ -332,13 +333,12 @@ loop: for (p = allproc.lh_first; p != 0; p = p->p_list.le_next) { if (p->p_stat == SRUN && (p->p_flag & (P_INMEM | P_SWAPPING)) == 0) { - int mempri; pri = p->p_swtime + p->p_slptime; if ((p->p_flag & P_SWAPINREQ) == 0) { pri -= p->p_nice * 8; } - mempri = pri > 0 ? pri : 0; + /* * if this process is higher priority and there is * enough space, then select this process instead of |
