I first met this problem when our (60 students) internetgateway refused to boot its new kernel, it was a 4.7-RELEASE. Then i loaded the old kernel and went home to check if my 4.8-STABLE does likewise. And the answer was yes! Both kernels were GENERIC + these options taken from the dummynet man pages: options DUMMYNET options NMBCLUSTERS options HZ When i boot the machine it suddently reboots when the kernel starts loading, i can just manage to see something about "panic: mbinit" before it reboots. Both systems are i386. I hope any of you can tell what's wrong, i really need this feature. Regards, Johan Christiansen HazarT Consult Denmark.
At a certain time, now past [Sat, Apr 05, 2003 at 07:27:18PM +0200], Johan Christiansen spake thusly:> I first met this problem when our (60 students) internetgateway refused to > boot its new kernel, it was a 4.7-RELEASE. Then i loaded the old kernel and > went home to check if my 4.8-STABLE does likewise. And the answer was yes! > Both kernels were GENERIC + these options taken from the dummynet man pages: > > options DUMMYNET > options NMBCLUSTERS > options HZMy first thought is to ask whether options IPFIREWALL is in your kernel config file [since not explicitly stated] ? ~elh -- Eric L. Howard e l h @ o u t r e a c h n e t w o r k s . c o m ------------------------------------------------------------------------ www.OutreachNetworks.com 313.297.9900 ------------------------------------------------------------------------ JabberID: elh@jabber.org Advocate of the Theocratic Rule
Johan Christiansen wrote:> I first met this problem when our (60 students) internetgateway refused to > boot its new kernel, it was a 4.7-RELEASE. Then i loaded the old kernel and > went home to check if my 4.8-STABLE does likewise. And the answer was yes! > Both kernels were GENERIC + these options taken from the dummynet man pages: > > options DUMMYNET > options NMBCLUSTERS > options HZNot quite... some of these take numeric arguments options IPFIREWALL options DUMMYNET options HZ=2000 # choose and appropriate value options DEVICE_POLLING # in 4.8+ this may help net perf # if you need to mess with these, read the kernel LINT file! options NMBCLUSTERS=1024 options NMBUFS=4096
On Tue, Apr 08, 2003 at 10:41:48AM -0700, Michael Sierchio wrote:> Johan Christiansen wrote: > >I first met this problem when our (60 students) internetgateway refused to > >boot its new kernel, it was a 4.7-RELEASE. Then i loaded the old kernel and > >went home to check if my 4.8-STABLE does likewise. And the answer was yes! > >Both kernels were GENERIC + these options taken from the dummynet man > >pages: > > > >options DUMMYNET > >options NMBCLUSTERS > >options HZ > > Not quite... some of these take numeric arguments > > > options IPFIREWALL > options DUMMYNET > options HZ=2000 # choose and appropriate value > options DEVICE_POLLING # in 4.8+ this may help net perf > > # if you need to mess with these, read the kernel LINT file! > > options NMBCLUSTERS=1024 > options NMBUFS=4096What is the NMBUFS? You talk about NSFBUFS? Anyway, NMBCLUSTERS and NSFBUFS maybe set at boot-time. Remove them from kernel config file and just add two following lines into your /boot/loader.conf.local: kern.ipc.nmbclusters="32768" kern.ipc.nsfbufs="32768" AFAIK 1024 is very-very small value for NMBCLUSTERS. -- Rgdz, /"\ ASCII RIBBON CAMPAIGN Sergey Osokin aka oZZ, \ / AGAINST HTML MAIL http://ozz.pp.ru/ X AND NEWS / \
Johan Christiansen
2003-Apr-09 04:56 UTC
SV: 4.8-STABLE Kernel Panic with dummynet options.
>Anyway, NMBCLUSTERS and NSFBUFS maybe set at boot-time. >Remove them from kernel config file and just add two following lines intoyour /boot/loader.conf.local: kern.ipc.nmbclusters="32768" kern.ipc.nsfbufs="32768">AFAIK 1024 is very-very small value for NMBCLUSTERS.I tried to compile without the HZ and NMBCLUSTERS, and the machine now boots fine. Anyways the current kern.ipc.nmbclusters is 1232, reported by sysctl. What would you reccomend for a gateway/firewall machine on a 2Mbit/512Kbit DSL, With Approx. 20 simultaniously users? Can i only set these values at boot time? And what about the HZ value?
On Wed, Apr 09, 2003 at 01:56:41PM +0200, Johan Christiansen wrote:> >Anyway, NMBCLUSTERS and NSFBUFS maybe set at boot-time. > >Remove them from kernel config file and just add two following lines into > your /boot/loader.conf.local: kern.ipc.nmbclusters="32768" > kern.ipc.nsfbufs="32768" > > >AFAIK 1024 is very-very small value for NMBCLUSTERS. > > > I tried to compile without the HZ and NMBCLUSTERS, and the machine now boots > fine. > Anyways the current kern.ipc.nmbclusters is 1232, reported by sysctl. > What would you reccomend for a gateway/firewall machine on a 2Mbit/512Kbit > DSL, > With Approx. 20 simultaniously users? > > Can i only set these values at boot time?At this time you can set kern.ipc.nmbclusters and kern.ipc.nsfbufs at boot time _only_.> And what about the HZ value?AFAIK its compile time option. -- Rgdz, /"\ ASCII RIBBON CAMPAIGN Sergey Osokin aka oZZ, \ / AGAINST HTML MAIL http://ozz.pp.ru/ X AND NEWS / \
Hello! On Wed, 9 Apr 2003 15:13:53 +0400, Sergey A. Osokin wrote:>> options NMBCLUSTERS=1024 >> options NMBUFS=4096 > > What is the NMBUFS? You talk about NSFBUFS?Nope, there is NMBUFS - number of single mbufs vs NMBCLUSTERS for mbuf clusters. You can see current usage: root@atlantis# netstat -m 1080/2736/32768 mbufs in use (current/peak/max): 1010 mbufs allocated to data 70 mbufs allocated to packet headers 781/2434/16384 mbuf clusters in use (current/peak/max) (1st line for mbufs, 4th for mbuf clusters) and adjust both values in /boot/loader.conf: kern.ipc.nmbufs="32768" # Number of mbufs kern.ipc.nmbclusters="16384" # Number of mbuf clusters Note the following sanity check in kernel: /* Sanity checks */ if (nmbufs < nmbclusters * 2) nmbufs = nmbclusters * 2;> AFAIK 1024 is very-very small value for NMBCLUSTERS.Well, it depends ;) Really, one of my routers shows the following: dmitry@cs37$ netstat -m 69/560/6144 mbufs in use (current/peak/max): 69 mbufs allocated to data 35/206/1536 mbuf clusters in use (current/peak/max) after uptime of 46 days (total traffic up to several Mbit/s, 6 network interfaces, dummynet in use). On Wed, 9 Apr 2003 16:00:46 +0400, Sergey A. Osokin wrote:>> And what about the HZ value? > > AFAIK its compile time option.It's also boot-time tunable long time ago, see 4.4-RELEASE release notes: The maxusers kernel configuration parameter is now a boot-time tunable variable. The kernel parameters derived from maxusers are now also tunables and can be overridden at boot-time. The hz parameter is also now ^^^^^^^^^^^^ a tunable. So one can just set HZ to some reasonable value (200, 500, 1000 - it depends also) in loader.conf: kern.hz="200" # Clock interrupts per second Sincerely, Dmitry -- Atlantis ISP, System Administrator e-mail: dmitry@atlantis.dp.ua nic-hdl: LYNX-RIPE
Dmitry Morozovsky
2003-Apr-10 15:59 UTC
SV: 4.8-STABLE Kernel Panic with dummynet options.
On Wed, 9 Apr 2003, Sergey A. Osokin wrote: SAO> > your /boot/loader.conf.local: kern.ipc.nmbclusters="32768" SAO> > kern.ipc.nsfbufs="32768" Are you sure? marck@woozle:~> sysctl -a | grep nsf marck@woozle:~> And, I have for a while in my loader.conf kern.ipc.nmbclusters="16384" kern.ipc.nmbufs="32768" (I found that 1x2 ratio in my situation fits more than standard 1x4) SAO> > And what about the HZ value? SAO> AFAIK its compile time option. Nope, it can be tuned, but is tuneable at boot time only too: kern.hz="250" Sincerely, D.Marck [DM5020, DM268-RIPE, DM3-RIPN] ------------------------------------------------------------------------ *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru *** ------------------------------------------------------------------------