Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 4E36AB5DBD9 for ; Wed, 17 Aug 2011 10:41:54 -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 90569-03 for ; Wed, 17 Aug 2011 13:41:42 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from marajade.localdomain (97-64-237-59.client.mchsi.com [97.64.237.59]) by mail.postgresql.org (Postfix) with ESMTP id E7DA7B5D80A for ; Wed, 17 Aug 2011 10:41:41 -0300 (ADT) Received: from [192.168.10.84] (unknown [192.168.10.84]) (Authenticated sender: andy) by marajade.localdomain (Postfix) with ESMTPA id C928C40832; Wed, 17 Aug 2011 08:41:40 -0500 (CDT) Message-ID: <4E4BC51A.2080503@squeakycode.net> Date: Wed, 17 Aug 2011 08:41:46 -0500 From: Andy Colson User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20110624 Thunderbird/5.0 MIME-Version: 1.0 To: Ogden CC: pgsql-performance@postgresql.org Subject: Re: Tuning Tips for a new Server References: <959BD2FA-0312-458B-BD5F-ED358D2C47ED@darkstatic.com> In-Reply-To: <959BD2FA-0312-458B-BD5F-ED358D2C47ED@darkstatic.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.918 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RDNS_DYNAMIC=0.982 X-Spam-Level: X-Archive-Number: 201108/173 X-Sequence-Number: 44620 On 8/16/2011 8:35 PM, Ogden wrote: > Hope all is well. I have received tremendous help from this list prior and therefore wanted some more advice. > > I bought some new servers and instead of RAID 5 (which I think greatly hindered our writing performance), I configured 6 SCSI 15K drives with RAID 10. This is dedicated to /var/lib/pgsql. The main OS has 2 SCSI 15K drives on a different virtual disk and also Raid 10, a total of 146Gb. I was thinking of putting Postgres' xlog directory on the OS virtual drive. Does this even make sense to do? > > The system memory is 64GB and the CPUs are dual Intel E5645 chips (they are 6-core each). > > It is a dedicated PostgreSQL box and needs to support heavy read and moderately heavy writes. > > Currently, I have this for the current system which as 16Gb Ram: > > max_connections = 350 > > work_mem = 32MB > maintenance_work_mem = 512MB > wal_buffers = 640kB > > # This is what I was helped with before and made reporting queries blaze by > seq_page_cost = 1.0 > random_page_cost = 3.0 > cpu_tuple_cost = 0.5 > effective_cache_size = 8192MB > > Any help and input is greatly appreciated. > > Thank you > > Ogden What seems to be the problem? I mean, if nothing is broke, then don't fix it :-) You say reporting query's are fast, and the disk's should take care of your slow write problem from before. (Did you test the write performance?) So, whats wrong? -Andy