Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id D5F809FB2B2 for ; Mon, 21 May 2007 21:49:03 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 65231-05 for ; Mon, 21 May 2007 21:48:47 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from lists.commandprompt.com (host-254.commandprompt.net [207.173.203.254]) by postgresql.org (Postfix) with ESMTP id E60E39FB59C for ; Mon, 21 May 2007 21:48:58 -0300 (ADT) Received: from perhan.alvh.no-ip.org (201-221-217-243.bk12-dsl.surnet.cl [201.221.217.243]) (authenticated bits=0) by lists.commandprompt.com (8.13.7/8.13.6) with ESMTP id l4M0lhsc013368; Mon, 21 May 2007 17:47:44 -0700 Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id DD75632A14; Mon, 21 May 2007 20:47:37 -0400 (CLT) Date: Mon, 21 May 2007 20:47:37 -0400 From: Alvaro Herrera To: Scott Marlowe Cc: "Jim C. Nasby" , Zoltan Boszormenyi , PFC , pgsql-performance@postgresql.org Subject: Re: Postgres Benchmark Results Message-ID: <20070522004737.GK6111@alvh.no-ip.org> References: <46508CB9.1040404@cybertec.at> <20070521210125.GM62346@nasby.net> <46523925.9080901@g2switchworks.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <46523925.9080901@g2switchworks.com> User-Agent: Mutt/1.5.13 (2006-08-11) X-Virus-Scanned: ClamAV version 0.88.5, clamav-milter version 0.88.5 on projects.commandprompt.com X-Virus-Status: Clean X-Greylist: Sender succeded SMTP AUTH authentication, not delayed by milter-greylist-1.6 (lists.commandprompt.com [192.168.2.159]); Mon, 21 May 2007 17:47:50 -0700 (PDT) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200705/411 X-Sequence-Number: 24801 Scott Marlowe wrote: > Jim C. Nasby wrote: > >On Sun, May 20, 2007 at 08:00:25PM +0200, Zoltan Boszormenyi wrote: > > > >>I also went into benchmarking mode last night for my own > >>amusement when I read on the linux-kernel ML that > >>NCQ support for nForce5 chips was released. > >>I tried current PostgreSQL 8.3devel CVS. > >>pgbench over local TCP connection with > >>25 clients and 3000 transacts/client gave me > >>around 445 tps before applying NCQ support. > >>680 tps after. > >> > >>It went over 840 tps after adding HOT v7 patch, > >>still with 25 clients. It topped at 1062 tps with 3-4 clients. > >>I used a single Seagate 320GB SATA2 drive > >>for the test, which only has less than 40GB free. > >>So it's already at the end of the disk giving smaller > >>transfer rates then at the beginning. Filesystem is ext3. > >>Dual core Athlon64 X2 4200 in 64-bit mode. > >>I have never seen such a performance before > >>on a desktop machine. > >> > > > >I'd be willing to bet money that the drive is lying about commits/fsync. > >Each transaction committed essentially requires one revolution of the > >drive with pg_xlog on it, so a 15kRPM drive limits you to 250TPS. > > > >BTW, PostgreSQL sees a big speed boost if you mount ext3 with the option > >data=writeback. Note that doing that probably has a negative impact on > >data recovery after a crash for non-database files. > > > > I thought you were limited to 250 or so COMMITS to disk per second, and > since >1 client can be committed at once, you could do greater than 250 > tps, as long as you had >1 client providing input. Or was I wrong? My impression is that you are correct in theory -- this is the "commit delay" feature. But it seems that the feature does not work as well as one would like; and furthermore, it is disabled by default. -- Alvaro Herrera http://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support