From owner-cvs-all Fri Jan 3 5: 1:18 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 E536537B401; Fri, 3 Jan 2003 05:01:16 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0CD7843EC5; Fri, 3 Jan 2003 05:01:16 -0800 (PST) (envelope-from phk@freebsd.org) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.6/8.12.6) with ESMTP id h03D16F4025126; Fri, 3 Jan 2003 14:01:07 +0100 (CET) (envelope-from phk@freebsd.org) To: Bruce Evans Cc: cvs-committers@freebsd.org, cvs-all@freebsd.org Subject: Re: cvs commit: src/sys/sys _mutex.h From: phk@freebsd.org In-Reply-To: Your message of "Fri, 03 Jan 2003 23:38:29 +1100." <20030103230420.W3339-100000@gamplex.bde.org> Date: Fri, 03 Jan 2003 14:01:06 +0100 Message-ID: <25125.1041598866@critter.freebsd.dk> 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 In message <20030103230420.W3339-100000@gamplex.bde.org>, Bruce Evans writes: >On Fri, 3 Jan 2003 phk@freebsd.org wrote: > >> In message <20030103212617.K2888-100000@gamplex.bde.org>, Bruce Evans writes: >> >On Thu, 2 Jan 2003, Poul-Henning Kamp wrote: >> >> MFC: Conditionalize 16 bytes of struct mutex on MUTEX_PROFILING >> > >> >Please back this out. It is contentious even in -current. Even its >> >misleading comment hasn't been fixed. >> >> I'll await re@'s decision. It is necessary to prevent -current and >> 5.0-RELENG machines from running out of kmem_map space and as I >> read John, that takes precedence. > >Really? It should make more than a few percent difference. The problem is that UFS2 dinodes are 128 bytes larger than UFS1 dinodes, in order to compensate for this, I moved the FFS inodes to use the UMA allocator so that 144 bytes is allocated as 144 bytes and not as 256 bytes as malloc(9) did it. Save 16 bytes per mutex actually puts on on a safer side than with UFS1+malloc(9). Finally being more firm about desiredvnodes should put a solid lid on the issue. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message