diff options
author | dg <dg@FreeBSD.org> | 1997-01-15 20:46:02 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1997-01-15 20:46:02 +0000 |
commit | 78afd808d565ede1deb869a7d1d7885b10db6033 (patch) | |
tree | 80b222a8d246fee7cd57a6c4ef76bc307b774810 /sys/conf/param.c | |
parent | 3f900d53fcdc1fa8bc234e63452b1b782b255ceb (diff) | |
download | FreeBSD-src-78afd808d565ede1deb869a7d1d7885b10db6033.zip FreeBSD-src-78afd808d565ede1deb869a7d1d7885b10db6033.tar.gz |
Fix bug related to map entry allocations where a sleep might be attempted
when allocating memory for network buffers at interrupt time. This is due
to inadequate checking for the new mcl_map. Fixed by merging mb_map and
mcl_map into a single mb_map.
Reviewed by: wollman
Diffstat (limited to 'sys/conf/param.c')
-rw-r--r-- | sys/conf/param.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/conf/param.c b/sys/conf/param.c index 209f8ef..3738a58 100644 --- a/sys/conf/param.c +++ b/sys/conf/param.c @@ -100,8 +100,8 @@ int extravnodes = EXTRAVNODES; /* spare vnodes to allocate */ #endif int nmbclusters = NMBCLUSTERS; -/* allocate same amount of virtual address space for mbufs XXX */ -int nmbufs = NMBCLUSTERS * (MCLBYTES / MSIZE); +/* allocate 1/4th amount of virtual address space for mbufs XXX */ +int nmbufs = NMBCLUSTERS * 4; int fscale = FSCALE; /* kernel uses `FSCALE', user uses `fscale' */ |