Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Jan 2006 10:28:02 +0000 (GMT)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Pyun YongHyeon <pyunyh@gmail.com>
Cc:        current@FreeBSD.org
Subject:   Re: mbuf cluster leak on CURRENT?
Message-ID:  <20060120101241.O52145@fledge.watson.org>
In-Reply-To: <20060120051810.GB48366@rndsoft.co.kr>
References:  <20060120051810.GB48366@rndsoft.co.kr>

next in thread | previous in thread | raw e-mail | index | archive | help

On Fri, 20 Jan 2006, Pyun YongHyeon wrote:

> While fixing sk(4) driver issues I'm seeing these mbuf cluster leaks on 
> sparc64/i386. Both machines are SMP.

There is at least one known problem with MBUMA's handling of allocating and 
freeing {mbuf,cluster} pairs, and it is triggered frequently by recent changes 
to cluster allocation.  We need to fix this problem before 7.0, but I've been 
on vacation for the last month and not had a chance to dig in.  I hope to 
address it this spring, but it requires significantly re-thinking of how UMA 
interacts with mbufs.  Probably not a huge code change, but will have to be 
carefully thought out.

Robert N M Watson

>
> sparc64(sk(4))
> 386/1946/2332 mbufs in use (current/cache/total)
> 1710/290/2000/2000 mbuf clusters in use (current/cache/total/max)
> ^^^^^^^^^^^^^^^^^^
> 0/5/4528 sfbufs in use (current/peak/max)
> 3516K/1066K/4583K bytes allocated to network (current/cache/total)
> 0 requests for sfbufs denied
> 0 requests for sfbufs delayed
> 0 requests for I/O initiated by sendfile
> 0 calls to protocol drain routines
>
> i386(em(4))
> 388/1929/2317 mbufs in use (current/cache/total)
> 1727/273/2000/2000 mbuf clusters in use (current/cache/total/max)
> ^^^^^^^^^^^^^^^^^^
> 0/7/3504 sfbufs in use (current/peak/max)
> 3551K/1028K/4579K bytes allocated to network (current/cache/total)
> 0 requests for sfbufs denied
> 0 requests for sfbufs delayed
> 0 requests for I/O initiated by sendfile
> 0 calls to protocol drain routines
>
> Related information from vm.zone:
> mbuf_ext_ref:      4,        0,      0,      0,        0
> mbuf_jumbo_1:  16384,        0,      0,      0,        0
> mbuf_jumbo_9:   9216,        0,      0,      0,        0
> mbuf_jumbo_4:   4096,        0,      0,      0,        0
> mbuf_cluster:   2048,     2000,   2000,      0,     2000
>                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> mbuf:            256,        0,    788,   1657, 87811655
> mbuf_packet:     256,        0,   2160,    285, 50505646
>
> To confirm the mbuf leak I lowered the cluter limit. netperf is
> blocked on a "zonelimit".
> Any ideas?
>
> -- 
> Regards,
> Pyun YongHyeon
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060120101241.O52145>