From owner-cvs-all Wed Feb 19 20:27: 6 2003 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 657ED37B406; Wed, 19 Feb 2003 20:27:03 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id DAAB743FF3; Wed, 19 Feb 2003 20:26:59 -0800 (PST) (envelope-from bmilekic@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h1K4Qw0U051258; Wed, 19 Feb 2003 20:26:58 -0800 (PST) (envelope-from bmilekic@repoman.freebsd.org) Received: (from bmilekic@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h1K4Qw7c051257; Wed, 19 Feb 2003 20:26:58 -0800 (PST) Message-Id: <200302200426.h1K4Qw7c051257@repoman.freebsd.org> From: Bosko Milekic Date: Wed, 19 Feb 2003 20:26:58 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern kern_malloc.c subr_mbuf.c src/sys/sys mbuf.h src/usr.bin/netstat main.c mbuf.c netstat.h X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG bmilekic 2003/02/19 20:26:58 PST Modified files: sys/kern kern_malloc.c subr_mbuf.c sys/sys mbuf.h usr.bin/netstat main.c mbuf.c netstat.h Log: o Allow "buckets" in mb_alloc to be differently sized (according to compile-time constants). That is, a "bucket" now is not necessarily a page-worth of mbufs or clusters, but it is MBUF_BUCK_SZ, CLUS_BUCK_SZ worth of mbufs, clusters. o Rename {mbuf,clust}_limit to {mbuf,clust}_hiwm and introduce {mbuf,clust}_lowm, which currently has no effect but will be used to set the low watermarks. o Fix netstat so that it can deal with the differently-sized buckets and teach it about the low watermarks too. o Make sure the per-cpu stats for an absent CPU has mb_active set to 0, explicitly. o Get rid of the allocate refcounts from mbuf map mess. Instead, just malloc() the refcounts in one shot from mbuf_init() o Clean up / update comments in subr_mbuf.c Revision Changes Path 1.117 +1 -2 src/sys/kern/kern_malloc.c 1.40 +115 -76 src/sys/kern/subr_mbuf.c 1.113 +4 -2 src/sys/sys/mbuf.h 1.60 +13 -7 src/usr.bin/netstat/main.c 1.31 +50 -33 src/usr.bin/netstat/mbuf.c 1.34 +1 -1 src/usr.bin/netstat/netstat.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message