summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authormckusick <mckusick@FreeBSD.org>2002-11-20 05:16:11 +0000
committermckusick <mckusick@FreeBSD.org>2002-11-20 05:16:11 +0000
commita51ebc9dc0c4e3fff0481c2fcda024ceddbbea46 (patch)
tree72dec091bc56588662d59142b1274d65d0cc1ad4 /sys
parent637af64f544f6afdc6bfad85d6fb1706fd0907af (diff)
downloadFreeBSD-src-a51ebc9dc0c4e3fff0481c2fcda024ceddbbea46.zip
FreeBSD-src-a51ebc9dc0c4e3fff0481c2fcda024ceddbbea46.tar.gz
The target for the maximum number of dependencies has been cut
in half because of reports that under heavy load the kernel could exhaust its memory pool. The limit is now (desiredvnodes * 4) rather than (desiredvnodes * 8), so it will still scale with larger systems, just not as quickly. Sponsored by: DARPA & NAI Labs.
Diffstat (limited to 'sys')
-rw-r--r--sys/ufs/ffs/ffs_softdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/ufs/ffs/ffs_softdep.c b/sys/ufs/ffs/ffs_softdep.c
index 5a185e5..5be0d05 100644
--- a/sys/ufs/ffs/ffs_softdep.c
+++ b/sys/ufs/ffs/ffs_softdep.c
@@ -1127,7 +1127,7 @@ softdep_initialize()
LIST_INIT(&mkdirlisthd);
LIST_INIT(&softdep_workitem_pending);
- max_softdeps = desiredvnodes * 8;
+ max_softdeps = desiredvnodes * 4;
pagedep_hashtbl = hashinit(desiredvnodes / 5, M_PAGEDEP,
&pagedep_hash);
sema_init(&pagedep_in_progress, "pagedep", PRIBIO, 0);
OpenPOWER on IntegriCloud