kern/165903: mbuf leak

Jeremy Chadwick jdc at
Thu Apr 11 00:08:19 UTC 2013

On Wed, Apr 10, 2013 at 04:53:47PM -0700, Jeremy Chadwick wrote:
> On Wed, Apr 10, 2013 at 07:39:31PM +0000, Chris Forgeron wrote:
> >  I've updated the PR on this via bug track email (hopefully, it bounced my first email) , but I thought I should bring it to the attention of the list as it's still happening, and the original PR was from March 2012.
> > 
> >  The PR is here:
> > 
> >  I am experiencing the same mbuf leak on fresh 9.1-RELEASE machines (AMD64). Most of my machines are ESXi 5.1 VM's running the e1000 (em0) NIC. This VM is stock, just one freebsd-update done, nothing custom.
> > 
> >  I have also experienced this condition on an older 9.0-STABLE from Jul 1st 2012. I did not notice it much before that date, but I can't tell for sure. I have a few machines on that build that I still use, so confirmation was easy.
> > 
> >  I do not experience the error if I load up vmware tools and use the vmx3f0 adapter, it's just with em0.
> > 
> >  I have set the mbufs to very high numbers (322144) to buy more time between lockups/crashes. Most often the systems stay functional, they just need a reboot or more mbufs if I add them. Some times they lock up or crash as I ifconfig down/up the adapter or attempt to add more mbufs via sysctl.
> > 
> >  1) Is anyone else able to reproduce this problem? The PR is still open, which says to me not all of us can be having this problem or there would be more drive to fix.
> >  2) What do I need to help with to advance this problem? It's not just my systems, as evidenced by the original poster of the PR.
> 1. This PR does not contain output from "dmesg" nor "pciconf -lvbc", nor
> does your Email.  Output from this matters.
> 2. Please try 9.1-STABLE and see if there is an improvement; there have
> been a huge number of changes/fixes to em(4) between 9.1-RELEASE and
> now.  You can try this:

Other output that would be useful on a machine where the current mbuf
count is actively very high:

* vmstat -z
* netstat -Q
* netstat -n -x

It would also be beneficial to provide any sysctl.conf and loader.conf
adjustments you do.

| Jeremy Chadwick                                   jdc at |
| UNIX Systems Administrator       |
| Mountain View, CA, US                                            |
| Making life hard for others since 1977.             PGP 4BD6C0CB |

More information about the freebsd-stable mailing list