From owner-freebsd-current Fri Dec 27 3:11:48 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A2D9337B401 for ; Fri, 27 Dec 2002 03:11:46 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id C225643EE5 for ; Fri, 27 Dec 2002 03:11:45 -0800 (PST) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.6/8.12.6) with ESMTP id gBRBBhIn036428 for ; Fri, 27 Dec 2002 12:11:43 +0100 (CET) (envelope-from phk@critter.freebsd.dk) To: current@freebsd.org Subject: Re: cvs commit: src/sys/ufs/ffs ffs_vfsops.c From: phk@freebsd.org In-Reply-To: Your message of "Fri, 27 Dec 2002 03:05:05 PST." <200212271105.gBRB55EV095534@repoman.freebsd.org> Date: Fri, 27 Dec 2002 12:11:43 +0100 Message-ID: <36427.1040987503@critter.freebsd.dk> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message <200212271105.gBRB55EV095534@repoman.freebsd.org>, Poul-Henning Kamp writes: >phk 2002/12/27 03:05:05 PST > > Modified files: > sys/ufs/ffs ffs_vfsops.c > Log: > Use three UMA zones for FFS/UFS inodes instead of malloc space. > Since inodes are currently 144 bytes, this will save 112 bytes per > inode. This can amount to up to 10MByte on large systems. All things considered, I have a hard time telling if this will result in a performance improvement (apart from the memory savings) or not. There are a lot of indications which point in opposite directions so I think it will be a wash. I considered making the zones per mountpoint, but decided against it for now, so for now all FFS/UFS filesystms share these three zones. You can monitor these zones with: syv# sysctl vm.zone | sed -n -e 2p -e /FFS/p ITEM SIZE LIMIT USED FREE REQUESTS FFS2 dinode: 256, 0, 17200, 95, 97431 FFS1 dinode: 128, 0, 0, 0, 0 FFS inode: 144, 0, 17200, 104, 97431 But be aware that the USED count is number of items in the zone, not number of items allocated from the zone. -- 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 freebsd-current" in the body of the message