Subject: Re: problem with mbufs
To: None <email@example.com>
From: Matthias Winter <firstname.lastname@example.org>
Date: 02/07/2002 10:34:35
> > i have a i386 computer, working as network router / webserver.
> > works fine since i changed nmbclusters from 256 -> 2048 (before that i
> > always got disconnects when there was a lot of traffic). But if the
> > gets really bad i still become disconnected by my ISP.
> If it's still not enough, keep raising NMBCLUSTERS - 4096 or 8192
> are still fairly sane values, 2048 is quite low for busy
> network router.
> > The error says something like: write: sendto: no buffer sdpace available
> Yeah, this is the symptom of mbuf shortage.
> > After reading through the articles oon netbsd.org I came to the opinion
> > the reason for this can be found at the kern.mbuf.msize
> > sysctl kern.mbuf.msize is 256 at the moment.. but how can i change this?
> > sysctl -w kern.mbuf.msize=512 ---> operation not permitted (does not
> > all architectures?)
> You don't need to change the msize.
> > Can anyone tell me how to change this kernel option without compiling a
> > kernel? i have some probs with my hardware which make sbuilding a new
> > impossible for me at the moment!
> You can change the value for compiled kernel using gdb:
> > gdb --write /yourkernel
> (gdb) set nmbclusters 4096
> (gdb) quit
> reboot and that's it :)
i tried increasing nmbclusters, and the size was changed, but this did not
have a effect on the ppp disconnect behaviour :(
I increased the mbuf for testing prupose up to 131072 which did not help
Are the other settings correct? when i do netstat -m there is always a
reasonable amount of free space for the network, but i get disconnected
anyways. I am using the rp-pppoe driver (www.roaringpenguin.com) maybe this
gives anybody a hint.
The disconnects mainly appear when i start to run a edonkey server
(www.edonkey2000.com), and at about 50 connections (i should be able to
handle up to about 1000 clients) i get the ppp disconnect.
The disconnect messages says exactly this:
Feb 7 12:29:19 pppoe: write (SendPacket): No buffer space available
Feb 7 12:29:19 pppd: Modem Hangup
Feb 7 12.29.19 pppd: Connection terminated
Feb 7 12:29:19 ppped Connect time 12.1 minutes
Feb 7 12:29:19 /netbsd : IP Filter v3.4.9 unloaded
Feb 7 12:29:19 pppd : Sent 516362 bytes , received 4612275 bytes
Thanks for any help