diff options
author | silby <silby@FreeBSD.org> | 2003-08-11 05:51:51 +0000 |
---|---|---|
committer | silby <silby@FreeBSD.org> | 2003-08-11 05:51:51 +0000 |
commit | bd71f7b671e366859e8f21e4a701d9e2983c983a (patch) | |
tree | 7efbff8c0c8f8b69e755e549cc66602574c40aaf /sys/vm/vm_init.c | |
parent | 1bb319c2485b484e6bb7d594064ec61ef4dfeb7e (diff) | |
download | FreeBSD-src-bd71f7b671e366859e8f21e4a701d9e2983c983a.zip FreeBSD-src-bd71f7b671e366859e8f21e4a701d9e2983c983a.tar.gz |
More pipe changes:
From alc:
Move pageable pipe memory to a seperate kernel submap to avoid awkward
vm map interlocking issues. (Bad explanation provided by me.)
From me:
Rework pipespace accounting code to handle this new layout, and adjust
our default values to account for the fact that we now have a solid
limit on allocations.
Also, remove the "maxpipes" limit, as it no longer has a purpose.
(The limit on kva usage solves the problem of having two many pipes.)
Diffstat (limited to 'sys/vm/vm_init.c')
-rw-r--r-- | sys/vm/vm_init.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/vm/vm_init.c b/sys/vm/vm_init.c index c7ab903..215289c 100644 --- a/sys/vm/vm_init.c +++ b/sys/vm/vm_init.c @@ -75,6 +75,8 @@ __FBSDID("$FreeBSD$"); #include <sys/mutex.h> #include <sys/proc.h> #include <sys/systm.h> +#include <sys/selinfo.h> +#include <sys/pipe.h> #include <sys/bio.h> #include <sys/buf.h> @@ -195,6 +197,7 @@ again: pager_map->system_map = 1; exec_map = kmem_suballoc(kernel_map, &minaddr, &maxaddr, (16*(ARG_MAX+(PAGE_SIZE*3)))); + pipe_map = kmem_suballoc(kernel_map, &minaddr, &maxaddr, maxpipekva); /* * XXX: Mbuf system machine-specific initializations should |