mbuf large clusters
Randall Stewart
rrs at cisco.com
Thu Jan 18 13:58:51 UTC 2007
Christian Brueffer wrote:
>
> Not sure if I'm understanding you correctly, but kern.ipc.nmbclusters is
> a tunable not a sysctl, so it has to be set in /boot/loader.conf or at
> the loader prompt (see loader(8)).
>
Not in current from what I see (if
I understand this correctly of course):
-----------------------------------------------------
static int
sysctl_nmbclusters(SYSCTL_HANDLER_ARGS)
{
int error, newnmbclusters;
newnmbclusters = nmbclusters;
error = sysctl_handle_int(oidp, &newnmbclusters, sizeof(int), req);
if (error == 0 && req->newptr) {
if (newnmbclusters > nmbclusters) {
nmbclusters = newnmbclusters;
uma_zone_set_max(zone_clust, nmbclusters);
EVENTHANDLER_INVOKE(nmbclusters_change);
} else
error = EINVAL;
}
return (error);
}
SYSCTL_PROC(_kern_ipc, OID_AUTO, nmbclusters, CTLTYPE_INT|CTLFLAG_RW,
&nmbclusters, 0, sysctl_nmbclusters, "IU",
"Maximum number of mbuf clusters allowed");
-----------------------------------------------------
It looks to me like it lets you INCREASE the value from
the calculated system value.. but NOT shrink it :-0
R
--
Randall Stewart
NSSTG - Cisco Systems Inc.
803-345-0369 <or> 803-317-4952 (cell)
More information about the freebsd-net
mailing list