diff options
author | dillon <dillon@FreeBSD.org> | 1999-01-21 08:29:12 +0000 |
---|---|---|
committer | dillon <dillon@FreeBSD.org> | 1999-01-21 08:29:12 +0000 |
commit | df24433bbe29112b4b9c9f38e80ba6cfb6988cb0 (patch) | |
tree | b0a91cf38166034e837b98d5edacd8177a14aba6 /sys/vm/vm_glue.c | |
parent | bae5debf723220e076d6a9696e417805639cdc3a (diff) | |
download | FreeBSD-src-df24433bbe29112b4b9c9f38e80ba6cfb6988cb0.zip FreeBSD-src-df24433bbe29112b4b9c9f38e80ba6cfb6988cb0.tar.gz |
This is a rather large commit that encompasses the new swapper,
changes to the VM system to support the new swapper, VM bug
fixes, several VM optimizations, and some additional revamping of the
VM code. The specific bug fixes will be documented with additional
forced commits. This commit is somewhat rough in regards to code
cleanup issues.
Reviewed by: "John S. Dyson" <root@dyson.iquest.net>, "David Greenman" <dg@root.com>
Diffstat (limited to 'sys/vm/vm_glue.c')
-rw-r--r-- | sys/vm/vm_glue.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/sys/vm/vm_glue.c b/sys/vm/vm_glue.c index ec844db..0a3309d 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.79 1998/12/19 08:23:31 julian Exp $ + * $Id: vm_glue.c,v 1.80 1999/01/07 21:23:50 julian Exp $ */ #include "opt_rlimit.h" @@ -213,10 +213,19 @@ vm_fork(p1, p2, flags) p1->p_vmspace->vm_refcnt++; } + /* + * Great, so we have a memory-heavy process and the + * entire machine comes to a screaching halt because + * nobody can fork/exec anything. What we really need + * to do is fix the process swapper so it swaps out the right + * processes. + */ +#if 0 while ((cnt.v_free_count + cnt.v_cache_count) < cnt.v_free_min) { vm_pageout_deficit += (UPAGES + VM_INITIAL_PAGEIN); VM_WAIT; } +#endif if ((flags & RFMEM) == 0) { p2->p_vmspace = vmspace_fork(p1->p_vmspace); |