Greetings,

Steven Hartland wrote:
----- Original Message ----- From: "Ivan Voras" <[EMAIL PROTECTED]>
The other thing that bothers me is, that under freebsd is quite easy to get:
[send_ip] sendto: No buffer space available
It happens almost always on my laptop just few seconds after I start
hping with timecounter=TSC

I'm not sure, but from what I understood of Robert Watson's
explanation in the big ZFS thread on -current, maybe increasing
kmem_size (exactly as for ZFS...) could help you with these buffers.

Is this not just running out of mbufs? netstat -m will show if it is and the fix
is to just increase kern.ipc.nmbclusters.
670/1520/2190 mbufs in use (current/cache/total)
462/322/784/25600 mbuf clusters in use (current/cache/total/max)
462/306 mbuf+clusters out of packet secondary zone in use (current/cache)
0/35/35/12800 4k (page size) jumbo clusters in use (current/cache/total/max)
0/0/0/6400 9k jumbo clusters in use (current/cache/total/max)
0/0/0/3200 16k jumbo clusters in use (current/cache/total/max)
1091K/1164K/2255K bytes allocated to network (current/cache/total)
0/0/0 requests for mbufs denied (mbufs/clusters/mbuf+clusters)
0/0/0 requests for jumbo clusters denied (4k/9k/16k)
0/4/6656 sfbufs in use (current/peak/max)
0 requests for sfbufs denied
0 requests for sfbufs delayed
0 requests for I/O initiated by sendfile
0 calls to protocol drain routines

kern.ipc.nmbclusters: 25600

I do not think I'm running out of mbufs.
And increasing nmbclusters doesn't help.

Here is what I have for kmem_size. How can I see how much of the kmem size is used ? vmstat -m :)

vm.kmem_size_scale: 3
vm.kmem_size_max: 335544320
vm.kmem_size_min: 0
vm.kmem_size: 335544320

Something suspicious that I notice is:
vmstat -m|grep devbuf
devbuf 5214 42780K - 6390 16,32,64,128,256,512,1024,2048,4096

42MB memory allocated for devbuf ? Is this ok ?

This is the only thing that 'eat' more then 1-2MB memory reported by vmstat -m.

--

Best Wishes,
Stefan Lambrev
ICQ# 24134177

_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to