From owner-freebsd-stable@FreeBSD.ORG Mon May 22 17:00:36 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7D6BD16A49A for ; Mon, 22 May 2006 17:00:36 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [209.31.154.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0C64743D45 for ; Mon, 22 May 2006 17:00:36 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [209.31.154.41]) by cyrus.watson.org (Postfix) with ESMTP id 14E4B46C0B; Mon, 22 May 2006 13:00:35 -0400 (EDT) Date: Mon, 22 May 2006 18:00:35 +0100 (BST) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: Michael Butler In-Reply-To: <4471C021.30602@protected-networks.net> Message-ID: <20060522175934.T32297@fledge.watson.org> References: <4471C021.30602@protected-networks.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-stable@freebsd.org Subject: Re: requests for mbufs denied? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 May 2006 17:00:37 -0000 On Mon, 22 May 2006, Michael Butler wrote: > On a 6-stable machine with sufficient RAM, i.e. no swapping and 215MB free > in 'top', I'm seeing .. > > imb@sarah:/home/imb# netstat -m > 386/529/915 mbufs in use (current/cache/total) > 384/254/638/17088 mbuf clusters in use (current/cache/total/max) > 384/128 mbuf+clusters out of packet secondary zone in use (current/cache) > 0/0/0/0 4k (page size) jumbo clusters in use (current/cache/total/max) > 0/0/0/0 9k jumbo clusters in use (current/cache/total/max) > 0/0/0/0 16k jumbo clusters in use (current/cache/total/max) > 864K/640K/1504K bytes allocated to network (current/cache/total) > 1405/14/0 requests for mbufs denied (mbufs/clusters/mbuf+clusters) > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > 0/0/0 requests for jumbo clusters denied (4k/9k/16k) > 0/6/4528 sfbufs in use (current/peak/max) > 0 requests for sfbufs denied > 0 requests for sfbufs delayed > 0 requests for I/O initiated by sendfile > 28 calls to protocol drain routines > > What prompts this behaviour? Do I want/need to "play with" any sysctls to > preallocate more space? This is believed to be a result of an error in the statistics measurement logic in UMA. I've committed the attached patch to the CVS HEAD, and am looking for feedback over the next couple of weeks before merging to RELENG_6 (and possibly the errata branches). Any testing and reports of success or failure would be most welcome. Robert N M Watson Index: uma_core.c =================================================================== RCS file: /home/ncvs/src/sys/vm/uma_core.c,v retrieving revision 1.136 diff -u -r1.136 uma_core.c --- uma_core.c 11 Feb 2006 19:20:56 -0000 1.136 +++ uma_core.c 21 May 2006 19:25:56 -0000 @@ -2413,8 +2413,7 @@ * If nothing else caught this, we'll just do an internal free. */ zfree_internal: - uma_zfree_internal(zone, item, udata, SKIP_DTOR, ZFREE_STATFAIL | - ZFREE_STATFREE); + uma_zfree_internal(zone, item, udata, SKIP_DTOR, ZFREE_STATFREE); return; }