X-Original-To: pgsql-performance-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 517899FA5BF for ; Sat, 29 Jul 2006 13:46:30 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 78964-02-2 for ; Sat, 29 Jul 2006 13:46:23 -0300 (ADT) X-Greylist: delayed 00:25:53.759752 by SQLgrey- Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id 2D56E9FB2C3 for ; Sat, 29 Jul 2006 13:46:22 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.3 Received: from olive.qinip.net (olive.qinip.net [62.100.30.40]) by svr4.postgresql.org (Postfix) with ESMTP id 1A8975AF045 for ; Sat, 29 Jul 2006 16:20:27 +0000 (GMT) Received: from [127.0.0.1] (h8441139206.dsl.speedlinq.nl [84.41.139.206]) by olive.qinip.net (Postfix) with ESMTP id DEDD118264; Sat, 29 Jul 2006 18:20:22 +0200 (MEST) Message-ID: <44CB8ACE.1020706@tweakers.net> Date: Sat, 29 Jul 2006 18:20:30 +0200 From: Arjen van der Meijden User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 To: Jochem van Dieten Cc: pgsql-performance@postgresql.org Subject: Re: PostgreSQL scalability on Sun UltraSparc T1 References: <44CB7896.8030501@oli.tudelft.nl> In-Reply-To: <44CB7896.8030501@oli.tudelft.nl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 0630-4, 29-07-2006), Outbound message X-Antivirus-Status: Clean X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200607/281 X-Sequence-Number: 20141 On 29-7-2006 17:02, Jochem van Dieten wrote: > Tweakers.net has done a database performance test between a Sun T2000 (8 > core T1) and a Sun X4200 (2 dual core Opteron 280). The database > benchmark is developed inhouse and represents the average query pattern > from their website. It is MySQL centric because Tweakers.net runs on > MySQL, but Arjen van der Meijden has ported it to PostgreSQL and has > done basic optimizations like adding indexes. There were a few minor datatype changes (like enum('Y', 'N') to boolean, but on the other hand also 'int unsigned' to 'bigint'), a few small query changes (i.e. rewriting join orders, most turned out to be necessary for mysql 5.0 and 5.1 as well anyway) and even fewer larger query changes (including a subquery, instead of the results of another query). The indexes also included adding partial indexes and several combined indexes. All in all I think it took about a week to do the conversion and test the specific queries. Luckily PostgreSQL allows for much clearer information on what a specific query is doing and much faster adding/removing of indexes (mysql rewrites the entire table). > Arjen wrote about some of the preliminary results previously in > http://archives.postgresql.org/pgsql-performance/2006-06/msg00358.php > but the article has now been published http://tweakers.net/reviews/633/7 > This is all the more impressive if you scroll down and look at the > behaviour of MySQL (after tweaking by both MySQL AB and Sun). Actually, we haven't had contact with MySQL AB. But as far as I know, the Sun engineers have contacted them about this. As it turns out there are some suboptimal machine codes generated from MySQL's source for the Niagara T1 and MySQL has some issues with InnoDB's scaling in the later 5.0-versions: http://www.mysqlperformanceblog.com/2006/07/28/returning-to-innodb-scalability/ Then again, we weren't able to compile the PG8.2 dev using all optimizations of Sun's Studio Compiler (the mlibopt-switch failed), so there is very likely more room for improvement on that field as well. Best regards, Arjen