Date: Sun, 3 Jun 2001 22:55:53 +0100 (BST) From: Richard Tobin <richard@cogsci.ed.ac.uk> To: freebsd-net@freebsd.org Subject: help with mbufs Message-ID: <200106032155.WAA26338@banks.cogsci.ed.ac.uk>
next in thread | raw e-mail | index | archive | help
I'm working on a (user-mode) driver for the Alcatel Speedtouch USB ADSL modem. It works, but the process that relays PPP packets to the ppp program sometimes gets ENOBUFS when writing to the it (via a SOCK_DGRAM socketpair). I tried increasing kern.ipc.nmbclusters (from 1024 to 4096) and kern.ipc.nmbufs (from 4096 to 16384) but this doesn't help. Then I looked at the output of netstat -m: $ netstat -m 69/128/16384 mbufs in use (current/peak/max): 66 mbufs allocated to data 3 mbufs allocated to packet headers 64/94/4096 mbuf clusters in use (current/peak/max) 220 Kbytes allocated to network (1% of mb_map in use) 0 requests for memory denied 0 requests for memory delayed 0 calls to protocol drain routines I expected that after getting ENOBUFS, the peak value would be equal to the maximum. Does something else limit the number of mbufs available? -- Richard To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200106032155.WAA26338>