svn commit: r184703 - user/kmacy/HEAD_multi_tx/sys/kern
Kip Macy
kmacy at FreeBSD.org
Wed Nov 5 15:58:40 PST 2008
Author: kmacy
Date: Wed Nov 5 23:58:40 2008
New Revision: 184703
URL: http://svn.freebsd.org/changeset/base/184703
Log:
fix setting of nmbclusters
Modified:
user/kmacy/HEAD_multi_tx/sys/kern/kern_mbuf.c
Modified: user/kmacy/HEAD_multi_tx/sys/kern/kern_mbuf.c
==============================================================================
--- user/kmacy/HEAD_multi_tx/sys/kern/kern_mbuf.c Wed Nov 5 21:44:20 2008 (r184702)
+++ user/kmacy/HEAD_multi_tx/sys/kern/kern_mbuf.c Wed Nov 5 23:58:40 2008 (r184703)
@@ -104,13 +104,14 @@ struct mbstat mbstat;
static void
tunable_mbinit(void *dummy)
{
+ TUNABLE_INT_FETCH("kern.ipc.nmbclusters", &nmbclusters);
/* This has to be done before VM init. */
- nmbclusters = 1024 + maxusers * 64;
+ if (nmbclusters == 0)
+ nmbclusters = 1024 + maxusers * 64;
nmbjumbop = nmbclusters / 2;
nmbjumbo9 = nmbjumbop / 2;
nmbjumbo16 = nmbjumbo9 / 2;
- TUNABLE_INT_FETCH("kern.ipc.nmbclusters", &nmbclusters);
}
SYSINIT(tunable_mbinit, SI_SUB_TUNABLES, SI_ORDER_ANY, tunable_mbinit, NULL);
More information about the svn-src-user
mailing list