Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id E1B419FB358 for ; Thu, 28 Sep 2006 14:18:09 -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 63814-01 for ; Thu, 28 Sep 2006 14:17:55 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.191]) by postgresql.org (Postfix) with ESMTP id CC7329FB356 for ; Thu, 28 Sep 2006 14:17:54 -0300 (ADT) Received: by nf-out-0910.google.com with SMTP id p77so865860nfc for ; Thu, 28 Sep 2006 10:17:53 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=EI60RSfy8cpRXyIl8RLpBAZC9VSYVZ3RpnK9qghE8djXrMou4yt8I4PmnKoVlXHvshbce0sNnb03d3fq5OW8hkoNskGLimldzN7lrluWL81NApevVk5NPsHTQ3ziY0/XOpohisVPbijyOitEtxhrbgMpMkV6tA9rTV8dDGnIc50= Received: by 10.78.164.13 with SMTP id m13mr1666103hue; Thu, 28 Sep 2006 10:17:53 -0700 (PDT) Received: by 10.78.45.3 with HTTP; Thu, 28 Sep 2006 10:17:53 -0700 (PDT) Message-ID: Date: Thu, 28 Sep 2006 13:17:53 -0400 From: "Merlin Moncure" To: "Carlo Stonebanks" Subject: Re: Performace Optimization for Dummies Cc: pgsql-performance@postgresql.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.165 tagged_above=0 required=5 tests=AWL, SPF_PASS X-Spam-Level: X-Archive-Number: 200609/388 X-Sequence-Number: 21074 On 9/28/06, Carlo Stonebanks wrote: > We urgently need a major performance improvement. We are running the > PostgreSQL 8.1.4 on a Windows 2003 x64 Server on a dual processor, dual core > 3.2Ghz Xeon box with 4gb RAM and a RAID (sorry, I don't know what type) disc > subsystem. Sorry about the long intro, but here are my questions: are you using the 'copy' interface? > 1) Are we paying any big penalties by running Windows vs LINUX (or any other > OS)? thats a tough question. my gut says that windows will not scale as well as recent linux kernels in high load environments. > 2) Has the debate over PostgreSQL and Xeon processors been settled? Is this > a factor? hearing good things about the woodcrest. pre-woodcrest xeon (dempsey down) is outclassed by the opteron. > Below, please find what I believe are the configuration settings of interest > in our system 1. can probably run fsync=off during the import 2. if import is single proecess, consider temporary bump to memory for index creation. or, since you have four cores consider having four processes import the data somehow. 3. turn off stats collector, stats_command_string, stats_row_level, and autovacuum during import. merlin > Any help and advice will be much appreciated. TIA, > > Carlo > > max_connections = 100 > shared_buffers = 50000 > work_mem = 32768 > maintenance_work_mem = 32768 > checkpoint_segments = 128 > effective_cache_size = 10000 > random_page_cost = 3 > stats_start_collector = on > stats_command_string = on > stats_row_level = on > autovacuum = on > > > > > > > > > ---------------------------(end of broadcast)--------------------------- > TIP 1: if posting/reading through Usenet, please send an appropriate > subscribe-nomail command to majordomo@postgresql.org so that your > message can get through to the mailing list cleanly >