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 39D5F9FB34E for ; Mon, 31 Jul 2006 04:07:10 -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 57580-04-2 for ; Mon, 31 Jul 2006 04:07:01 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from brmea-mail-2.sun.com (brmea-mail-2.Sun.COM [192.18.98.43]) by postgresql.org (Postfix) with ESMTP id BF42B9FAA6E for ; Mon, 31 Jul 2006 04:07:00 -0300 (ADT) Received: from fe-amer-05.sun.com ([192.18.108.179]) by brmea-mail-2.sun.com (8.13.6+Sun/8.12.9) with ESMTP id k6V76x1K016257 for ; Mon, 31 Jul 2006 01:06:59 -0600 (MDT) Received: from conversion-daemon.mail-amer.sun.com by mail-amer.sun.com (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) id <0J3900K0195JBX00@mail-amer.sun.com> (original mail from J.K.Shah@Sun.COM) for pgsql-performance@postgresql.org; Mon, 31 Jul 2006 01:06:59 -0600 (MDT) Received: from [192.168.1.64] ([82.13.40.197]) by mail-amer.sun.com (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPSA id <0J390039HAFLFOY4@mail-amer.sun.com>; Mon, 31 Jul 2006 01:06:59 -0600 (MDT) Date: Mon, 31 Jul 2006 08:07:07 +0100 From: Jignesh Shah Subject: Re: PostgreSQL scalability on Sun UltraSparc T1 In-reply-to: <44CB9D52.8040409@tweakers.net> To: Arjen van der Meijden Cc: pgsql-performance@postgresql.org Message-id: <44CDAC1B.4050109@sun.com> MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=ISO-8859-1 Content-transfer-encoding: 7BIT References: <44CB7896.8030501@oli.tudelft.nl> <44CB8235.9070903@commandprompt.com> <44CB8DC1.4040105@tweakers.net> <44CB9472.9060206@commandprompt.com> <44CB9D52.8040409@tweakers.net> User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=0 required=5 tests=UNPARSEABLE_RELAY X-Spam-Level: X-Archive-Number: 200607/295 X-Sequence-Number: 20155 Hi Arjen, I am curious about your Sun Studio compiler options also. Can you send that too ? Any other tweakings that you did on Solaris? Thanks. Regards, Jignesh Arjen van der Meijden wrote: > On 29-7-2006 19:01, Joshua D. Drake wrote: >> Well I would be curious about the postgresql.conf and how much ram >> etc... it had. > > It was the 8core version with 16GB memory... but actually that's just > overkill, the active portions of the database easily fits in 8GB and a > test on another machine with just 2GB didn't even show that much > improvements when going to 7GB (6x1G, 2x 512M), it was mostly in the > range of 10% improvement or less. > > Anyway, the differences to the default postgresql.conf: > shared_buffers = 30000 > Tests with 40k, 50k en 60k didn't really show improvements. > > work_mem = 2048 > This probably could've been set higher with the sheer amount of > not-really-used memory. > > maintenance_work_mem = 65535 > Not really important of course > > max_fsm_pages = 50000 > Somehow it needed to be set quite high, probably because we only > cleaned up after doing over 200k requests. > > effective_cache_size = 350000 > As said, the database fitted in 8GB of memory, so I didn't see a need > to set this higher than for the 8GB machines (x4200 and another T2000 > we had). > > default_statistics_target = 200 > For a few columns on the largest tables I manually raised it to 1000 > > log_min_duration_statement = 1000 > I'm not sure if this has much overhead? Stats logging was turned/left > on as well. > Turning that off improved it a few percent. > >> I understand, I just have a feeling that we could do even better :) I >> do appreciate all your efforts. > > Well, I'll keep that in mind :) > What it makes even worse for MySQL is that it had (on another machine) > about 8M hits on the query cache for 4M inserts, i.e. half of the > queries weren't even executed on it. > > Best regards, > > Arjen > > ---------------------------(end of broadcast)--------------------------- > TIP 3: Have you checked our extensive FAQ? > > http://www.postgresql.org/docs/faq