From owner-freebsd-amd64@FreeBSD.ORG Fri Nov 19 20:21:45 2004 Return-Path: Delivered-To: freebsd-amd64@www.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4F6FB16A4CE for ; Fri, 19 Nov 2004 20:21:45 +0000 (GMT) Received: from mproxy.gmail.com (mproxy.gmail.com [216.239.56.251]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2FD5043D5C for ; Fri, 19 Nov 2004 20:21:45 +0000 (GMT) (envelope-from chris.trismegistus@gmail.com) Received: by mproxy.gmail.com with SMTP id x71so50928cwb for ; Fri, 19 Nov 2004 12:21:44 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=kTYwVbXSEpTcpYw6XpI3BSt/Vu8f2qvyiri5RHQY86b/2UmrZWqJnu5CvJ0Yi4Pm8zGW305OVGgevXi0f/uEZknekoN7Iq3Hnpdf9udYpdP52XLX3cH+CA2/ABv2cKYY9kDdzBIZ6pH8JgEYo9C0OWXscrEC6Sa9h58zt1Mu5i0= Received: by 10.11.122.54 with SMTP id u54mr61302cwc; Fri, 19 Nov 2004 12:21:44 -0800 (PST) Received: by 10.11.122.63 with HTTP; Fri, 19 Nov 2004 12:21:44 -0800 (PST) Message-ID: Date: Fri, 19 Nov 2004 15:21:44 -0500 From: Chris McDermott To: trorki@area51.capnet.state.tx.us In-Reply-To: <20041119124946.J29849@area51.capnet.state.tx.us> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <20041119124946.J29849@area51.capnet.state.tx.us> cc: freebsd-amd64@www.freebsd.org Subject: Re: Too many mbufs X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Chris McDermott List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Nov 2004 20:21:45 -0000 > Would you people please include at least a `uname -a` > with these posts, even better state the motherboard > you're running with. I am NOT seeing this with > a Tyan s2882, dual 244, with 4GB memory, on 5.3-R #0. I'm having the same problem, and it seems to be related to kern.ipc.mbstat. I don't see kern.ipc.mbstat in the output of sysctl -a. If I try and get the value with sysctlbyname() [copied from netstat/mbuf.c], it returns negative values for mbstat->m_mbufs. This negative value does fluctuate with network usage though... Test code: #include #include #include #include #include int main() { struct mbstat *mbstat; size_t mlen; mlen = sizeof *mbstat; if( (mbstat = calloc(1,mlen)) == NULL) perror("calloc"); if (sysctlbyname("kern.ipc.mbstat", mbstat, &mlen, NULL, 0) < 0) perror("sysctl: retrieving mbstat"); printf("mbufs: %d \nclusters: %d\n", mbstat->m_mbufs, mbstat->m_mclusts); return 0; } Output: mbufs: -2240 clusters: -2686 System: TYAN s2885 dual 242 512M ram 5.3-R codefactory# uname -a FreeBSD codefactory 5.3-RELEASE FreeBSD 5.3-RELEASE #7: Tue Nov 9 23:28:53 EST 2004 cmc@codefactory:/usr/src/sys/amd64/compile/CODEFACTORY amd64 codefactory# netstat -m 18446744073709549940 mbufs in use 18446744073709549630/17152 mbuf clusters in use (current/max) 0/0/0 sfbufs in use (current/peak/max) 18014398509477593 KBytes allocated to network 0 requests for sfbufs denied 0 requests for sfbufs delayed 0 requests for I/O initiated by sendfile 0 calls to protocol drain routines Chris