Subject: no buffer space available (kernel misconfiguration?)
To: None <netbsd-help@netbsd.org>
From: Karo Salminen <ks@ks.ping-viini.org>
List: netbsd-help
Date: 05/22/2002 22:40:29
Hello,

I mailed about my problem week ago, but... it's still unsolved. The problem is very vague, but I hope 
someone could even tell me how to debug the problem.

Let's start. I'm using rtk0 NIC on NetBSD 1.5.3 RC2 with dhcp. My network works fine but sometimes (not that
frequently) it goes down and I can't connect it to it. SSH says "no route to host" when I try to connect it from the
outside. Then I'll try to look what's wrong locally. If I ping some IP, all I get is this:
ping: sendto: no buffer space available

Netstat -m says:

455 mbufs in use:
        359 mbufs allocated to data
        96 mbufs allocated to packet headers
76/86 mapped pages in use
292 Kbytes allocated to network (91% in use)
0 requests for memory denied
0 requests for memory delayed
0 calls to protocol drain routines

If I do 'ifconfig rtk0 down; ifconfig rtk0 up" then it's back online. This usually does not happen frequently _except_
it usually happens when the backup script is sending backup packages to remote host. The script
can be found at http://ks.ping-viini.org:81/~ks/backup2.sh. This does not happen during _heavy_ traffic, which
is very odd.

Last time I mailed about this one proposed solution was to increase NMBCLUSTERS. I increased it to 8192,
but it didn't help. Some other posts was about throwing the NIC away, but I'm pretty sure it's not because
of the NIC, many people have no problems with it. I doubt the configs... because the problem did not appear on
Linux.
My kernel config can be found at http://ks.ping-viini.org:81/~ks/experiment.

Anyways, I get a segmentation fault and core dump from Apache everytime I start it, but still it works and 
doesn't put anything to error_log.

The previous mail about the issue can be found at http://mail-index.netbsd.org/netbsd-help/2002/05/15/0006.html.

Thanks in advance,
Karo Salminen