Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 5EAB99F98F8 for ; Wed, 25 Oct 2006 12:38:58 -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 87353-02 for ; Wed, 25 Oct 2006 12:38:49 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.170]) by postgresql.org (Postfix) with ESMTP id 8545B9FB2C9 for ; Wed, 25 Oct 2006 12:38:48 -0300 (ADT) Received: by ug-out-1314.google.com with SMTP id 30so110604ugc for ; Wed, 25 Oct 2006 08:38:47 -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=cF39SNWaBeFL9lQiIKHSKKHp5uBQgNaCRosNFVejYznbdrV/OmA/AdAAVYGwxtLQtY/MtMpw/De0N8nUvLekI1xNOrzqiChTjCL+Q8uihs0j0uvICeNCCW9Pr+Bz57O9V++xamJt2LtyuLwUmzNj/ge0oROja59lrmaz94I1TGU= Received: by 10.78.201.8 with SMTP id y8mr1035095huf; Wed, 25 Oct 2006 08:38:46 -0700 (PDT) Received: by 10.78.45.3 with HTTP; Wed, 25 Oct 2006 08:38:46 -0700 (PDT) Message-ID: Date: Wed, 25 Oct 2006 11:38:46 -0400 From: "Merlin Moncure" To: "Worky Workerson" Subject: Re: Best COPY Performance Cc: "Markus Schaber" , 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: <453C8B0D.4070803@logix-tt.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.288 tagged_above=0 required=5 tests=AWL, DNS_FROM_RFC_ABUSE, SPF_PASS X-Spam-Level: X-Archive-Number: 200610/518 X-Sequence-Number: 21647 On 10/25/06, Worky Workerson wrote: > > I'm guessing the high bursts are checkpoints. Can you check your log > > files for pg and see if you are getting warnings about checkpoint > > frequency? You can get some mileage here by increasing wal files. > > Nope, nothing in the log. I have set: > wal_buffers=128 > checkpoint_segments=128 > checkpoint_timeout=3000 > which I thought was rather generous. Perhaps I should set it even > higher for the loads? > > > Have you determined that pg is not swapping? try upping maintenance_work_mem. > > maintenance_work_mem = 524288 ... should I increase it even more? > Doesn't look like pg is swapping ... nah, you already addressed it. either pg is swapping or it isnt, and i'm guessing it isn't. > I'm currently running bonnie++ with the defaults ... should I change > the execution to better mimic Postgres' behavior? just post what you have... > RHEL 4.3 x86_64 > HP DL585, 4 Dual Core Opteron 885s > 16 GB RAM > 2x300GB 10K SCSI320, RAID10 > HP MSA1000 SAN direct connected via single 2GB Fibre Channel Arbitrated Loop > 10x300GB 10K SCSI320, RAID10 in theory, with 10 10k disks in raid 10, you should be able to keep your 2fc link saturated all the time unless your i/o is extremely random. random i/o is the wild card here, ideally you should see at least 2000 seeks in bonnie...lets see what comes up. hopefully, bonnie will report close to 200 mb/sec. in extreme sequential cases, the 2fc link should be a bottleneck if the raid controller is doing its job. if you are having cpu issues, try breaking your process down to at least 4 processes (you have quad dual core box after all)...thats a no brainer. merlin