Steady leak of mbufs + panic()

Jason DiCioccio jd at ods.org
Sun Dec 14 13:22:47 PST 2008


Hey all,  I'm running into a strange situation where every ~1.5 days, I will
have a kernel panic:

  Architecture: i386
  Architecture Version: 2
  Version String: FreeBSD 7.0-RELEASE-p6 #1: Sun Dec  7 17:16:36 EST 2008
    geniusj at update.ods.org:/usr/obj/usr/src/sys/UPDATE
  Panic String: kmem_malloc(16384): kmem_map too small: 536858624 total
allocated

  When tracking down the source of the inflated kmem, I noticed that the
mbufs/bytes allocated to network figures in netstat -m were growing steadily
up until the crash.  Before the crash, bytes allocated to network will be up
near 400MB with mbufs reaching nearly 2 million.  mbuf clusters will be in
the low hundreds, however.

  This box is running a decent assortment of network protocols and
functionality.  It's a fairly active DNS server (more active than most), it
is running a couple of instances of openvpn (tap), it's using gif for an
ipv6 tunnel which is then tunneled over openvpn as well, it's also using BGP
over the tunnels with quagga..

  The only thing I can think of that changed before this all started
happening is that I had added AAAA records for the nameserver (in the
registry as well as locally).  The inet6 traffic is fairly light, however
(with a total of ~1.5MB both in and out in the past 15 hours versus 580MB in
and 985MB out for the whole box.).

  Before I go down the bug report route, I'd like to know if there are
accepted conditions where mbufs will grow like this and where I might start
looking..  If more information would be helpful, let me know what's needed.

  Any help would be appreciated.

Thanks!
Jason DiCioccio


More information about the freebsd-net mailing list