Date: Tue, 23 May 1995 13:16:04 -0700 (PDT) From: brian@mediacity.com (Brian Litzinger) To: freebsd-questions@FreeBSD.org Subject: troubles with mbuf's Message-ID: <m0sE0N3-000rdJC@easynet.com>
next in thread | raw e-mail | index | archive | help
I have a device driver which works correctly on FreeBSD 2.0R, but on -current it leaks MBUF CLUSTERS, while it doesn't leak MBUFs. Or perhaps it leaks MBUF clusters on 2.0R too, but I can't tell cuz netstat -m on 2.0R doesn't report MBUF clusters. What happens on my -current system is that the MBUF Clusters field fills up (reports 256/256 clusters in use, 512K in use by network). However, vmstat -m, doesn't reflect this. And the mbuf pool seems in a reasonable state. I.E. other drivers relying on just mbufs work fine. However, the ed driver stops working because in -current it fails if it can't get a cluster, while in 2.0R it falls back to using individual mbufs. Looking at the mbuf allocation code, I don't immediately see where the accounting for mbuf clusters is done. Also, I get the message 'mb_map full' on the console each time the mbuf cluster field fills up. Lastly I can beat the device driver to death for days under 2.0R and the mbuf pool remains stable. Any ideas? Thanks, Brian Litzinger brian@easynet.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?m0sE0N3-000rdJC>