Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id D9FFF9FB30E for ; Mon, 21 May 2007 18:01:34 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 82622-05 for ; Mon, 21 May 2007 18:01:27 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from noel.decibel.org (noel.decibel.org [67.100.216.10]) by postgresql.org (Postfix) with ESMTP id 0ADBC9FB280 for ; Mon, 21 May 2007 18:01:29 -0300 (ADT) Received: by noel.decibel.org (Postfix, from userid 1001) id 6E4A356447; Mon, 21 May 2007 16:01:28 -0500 (CDT) Received: (hashcash-sendmail, from uid 1001); Mon, 21 May 2007 16:01:25 -0500 Date: Mon, 21 May 2007 16:01:25 -0500 From: "Jim C. Nasby" To: Zoltan Boszormenyi Cc: PFC , pgsql-performance@postgresql.org Subject: Re: Postgres Benchmark Results Message-ID: <20070521210125.GM62346@nasby.net> References: <46508CB9.1040404@cybertec.at> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <46508CB9.1040404@cybertec.at> X-Operating-System: FreeBSD 6.1-RELEASE-p10 amd64 X-Distributed: Join the Effort! http://www.distributed.net User-Agent: Mutt/1.5.13 (2006-08-11) X-Hashcash: 1:20:070521:zb@cybertec.at::NBJorR8e6ibPHha3:00065bC X-Hashcash: 1:20:070521:lists@peufeu.com::i4irFdYvrC47zpEf:00KhD X-Hashcash: 1:20:070521:pgsql-performance@postgresql.org::t76Z3v9nPYmOV5nh:00000 0000000000000000000000000kvw X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200705/402 X-Sequence-Number: 24792 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. -- Jim Nasby decibel@decibel.org EnterpriseDB http://enterprisedb.com 512.569.9461 (cell)