Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id C04981337B80 for ; Tue, 12 Apr 2011 14:23:24 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 27779-08 for ; Tue, 12 Apr 2011 17:23:17 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mxout-07.mxes.net (mxout-07.mxes.net [216.86.168.182]) by mail.postgresql.org (Postfix) with ESMTP id 775241337B8B for ; Tue, 12 Apr 2011 14:23:16 -0300 (ADT) Received: from [192.168.1.105] (unknown [173.165.13.38]) by smtp.mxes.net (Postfix) with ESMTPA id 0A4CB22E253; Tue, 12 Apr 2011 13:23:15 -0400 (EDT) Subject: Re: Performance Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: text/plain; charset=us-ascii From: Ogden In-Reply-To: <20110412171855.GA14292@tux> Date: Tue, 12 Apr 2011 12:23:15 -0500 Cc: pgsql-performance@postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <20110412171855.GA14292@tux> To: Andreas Kretschmer X-Mailer: Apple Mail (2.1082) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201104/171 X-Sequence-Number: 43233 On Apr 12, 2011, at 12:18 PM, Andreas Kretschmer wrote: > Ogden wrote: >=20 >> I have been wrestling with the configuration of the dedicated Postges = 9.0.3 >> server at work and granted, there's more activity on the production = server, but >> the same queries take twice as long on the beefier server than my mac = at home. >> I have pasted what I have changed in postgresql.conf - I am wondering = if >> there's any way one can help me change things around to be more = efficient. >>=20 >> Dedicated PostgreSQL 9.0.3 Server with 16GB Ram >>=20 >> Heavy write and read (for reporting and calculations) server.=20 >>=20 >> max_connections =3D 350=20 >> shared_buffers =3D 4096MB =20 >> work_mem =3D 32MB >> maintenance_work_mem =3D 512MB >=20 > That's okay. >=20 >=20 >>=20 >>=20 >> seq_page_cost =3D 0.02 # measured on an arbitrary = scale >> random_page_cost =3D 0.03=20 >=20 > Do you have super, Super, SUPER fast disks? I think, this = (seq_page_cost > and random_page_cost) are completly wrong. >=20 No, I don't have super fast disks. Just the 15K SCSI over RAID. I find = by raising them to: seq_page_cost =3D 1.0 random_page_cost =3D 3.0 cpu_tuple_cost =3D 0.3 #cpu_index_tuple_cost =3D 0.005 # same scale as above - 0.005 #cpu_operator_cost =3D 0.0025 # same scale as above effective_cache_size =3D 8192MB=20 That this is better, some queries run much faster. Is this better? I will find the archive and post.=20 Thank you Ogden