tech-net archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

nmbclusters on amd64



For many years on x86, I've been patching the kernel to set nmbclusters in the absence of it being alterable at run time. So here, it is set to 32768:

# gdb /netbsd
GNU gdb (GDB) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64--netbsd".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /netbsd...(no debugging symbols found)...done.
(gdb) print nmbclusters
$1 = 32768
(gdb) quit

Yet according to sysctl it is 16384:
# sysctl kern.mbuf.nmbclusters
kern.mbuf.nmbclusters = 16384

and it's not alterable:
# sysctl -w kern.mbuf.nmbclusters=32768
sysctl: kern.mbuf.nmbclusters: Invalid argument

This is on:

# uname -rp
7.0_STABLE amd64

However, on the following:

# uname -rp
5.2_STABLE i386

all is as expected:

# sysctl kern.mbuf.nmbclusters
kern.mbuf.nmbclusters = 32768

So, how do I alter the number of nmbclusters on netbsd-7 amd64 to avoid being told to do something which I can't do?:

WARNING: mclpool limit reached; increase kern.mbuf.nmbclusters

--
Stephen



Home | Main Index | Thread Index | Old Index