From owner-freebsd-performance@FreeBSD.ORG Wed Aug 27 10:29:20 2003 Return-Path: Delivered-To: freebsd-performance@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2F8FF16A4BF; Wed, 27 Aug 2003 10:29:20 -0700 (PDT) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0F11B43FDD; Wed, 27 Aug 2003 10:29:19 -0700 (PDT) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (localhost [127.0.0.1]) by fledge.watson.org (8.12.9/8.12.9) with ESMTP id h7RHStrO026607; Wed, 27 Aug 2003 13:28:55 -0400 (EDT) (envelope-from robert@fledge.watson.org) Received: from localhost (robert@localhost)h7RHStTV026604; Wed, 27 Aug 2003 13:28:55 -0400 (EDT) Date: Wed, 27 Aug 2003 13:28:55 -0400 (EDT) From: Robert Watson X-Sender: robert@fledge.watson.org To: David Schultz In-Reply-To: <20030827060644.GA9321@HAL9000.homeunix.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-fs@FreeBSD.ORG cc: freebsd-performance@FreeBSD.ORG cc: Bill Moran Subject: Re: Performance tests I did with FreeBSD, Linux and PostgreSQL X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Aug 2003 17:29:20 -0000 On Tue, 26 Aug 2003, David Schultz wrote: > On Tue, Aug 26, 2003, Bill Moran wrote: > > Like all benchmarks, I doubt these are perfect (or even close) examples > > of real-world use. > > > > However, in the hopes that they will be useful for improving FreeBSD, I > > present them to the community. > > > > http://www.potentialtech.com/wmoran/postgresql.php > > > > Intelligent comments are welcome. > > Well, a little trussing revealed that pgsql uses a block size of 8K, > which can be a significant pessimization when the filesystem block size > is 16K, which is the default in FreeBSD! ext2fs uses 4K blocks and > reiserfs uses extents, so those filesystems would not suffer from that > problem. You might consider trying your test on a UFS filesystem with > 8K blocks, or you could tune pgsql to use a different block size. (For > pgsql, I think the appropriate tunable is BLCKSZ in include/pg_config.h. > You'll have to recompile it and create a new database.) I wonder if it would benefit us to do some tweaks to Postgres to tune the pgsql block size to the file system it's running on, and get it integrated back into the distribution.... As disks get bigger, a 16k block size is going to become more common, so this won't just hit FreeBSD, I expect. Robert N M Watson FreeBSD Core Team, TrustedBSD Projects robert@fledge.watson.org Network Associates Laboratories