Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 99A219F9F2F for ; Tue, 22 May 2007 03:14:57 -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 91379-04 for ; Tue, 22 May 2007 03:14:50 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from mailrelay.edis.at (mailrelay.edis.at [81.223.48.5]) by postgresql.org (Postfix) with ESMTP id 1C1509F9351 for ; Tue, 22 May 2007 03:14:51 -0300 (ADT) Received: from [193.226.223.207] (223-207.adsl.pool.ew.hu [::ffff:193.226.223.207]) (AUTH: CRAM-MD5 zb@cybertec.at) by mailrelay.edis.at with esmtp; Tue, 22 May 2007 08:17:25 +0200 id 000DBE6A.46528AF5.00003651 Message-ID: <46528A37.6040309@cybertec.at> Date: Tue, 22 May 2007 08:14:15 +0200 From: Zoltan Boszormenyi User-Agent: Thunderbird 1.5.0.10 (X11/20070302) MIME-Version: 1.0 To: "Jim C. Nasby" CC: PFC , pgsql-performance@postgresql.org Subject: Re: Postgres Benchmark Results References: <46508CB9.1040404@cybertec.at> <20070521210125.GM62346@nasby.net> In-Reply-To: <20070521210125.GM62346@nasby.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200705/415 X-Sequence-Number: 24805 Jim C. Nasby írta: > 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. > It could well be the case. > Each transaction committed essentially requires one revolution of the > drive with pg_xlog on it, so a 15kRPM drive limits you to 250TPS. > By "revolution", you mean one 360 degrees turnaround of the platter, yes? On the other hand, if you have multiple clients, isn't the 250 COMMITs/sec limit is true only per client? Of course assuming that the disk subsystem has more TCQ/NCQ threads than the actual number of DB clients. > 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 haven't touched the FS options. I can even use ext2 if I want non-recoverability. :-) -- ---------------------------------- Zoltán Böszörményi Cybertec Geschwinde & Schönig GmbH http://www.postgresql.at/