Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 149A2635A92 for ; Tue, 24 Mar 2009 23:11:21 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 90900-01 for ; Tue, 24 Mar 2009 23:11:10 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.29]) by mail.postgresql.org (Postfix) with ESMTP id 9E604632B4F for ; Tue, 24 Mar 2009 23:11:09 -0300 (ADT) Received: by yw-out-2324.google.com with SMTP id 3so1899564ywj.73 for ; Tue, 24 Mar 2009 19:11:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=/UNZgMZhMw44hnaEiDu6uWq/KeEGpmG8uBQmAgJNGr8=; b=n19aXnzBokf947wbmSVDy19DyBYlOIT2O/lTf9F2jaS7BBI/HWuUiZiMDpXfQrq4tM 8peKmKk3UKIt0LlQ6/1g7kLmjyLoBwJNydJNTUnDMDVdB+LQkRy0gD0ea2REepd4ezYs iXFbmApiRLmduY0u21bjQ+F42oLJ04klafPU4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=es0M8linzkaNAnfChoR5SutcRQgL8YPCnbwtwR3kNZL7Jn+ZlR+y9lGw/TKMuv4uXf BgrVgSvqGUVoe3wvSSX4HZ7lwcDyxwX7XBF9fPM79CiVGGcDGeMmlafOUJK62d7chscg jlt6USZ+yb1Z3R2iyjKos8EypsxNhgvE+g7Dg= MIME-Version: 1.0 Received: by 10.100.208.8 with SMTP id f8mr6885076ang.96.1237947068017; Tue, 24 Mar 2009 19:11:08 -0700 (PDT) In-Reply-To: <49C98433.5080709@paradise.net.nz> References: <49C98433.5080709@paradise.net.nz> Date: Tue, 24 Mar 2009 20:11:07 -0600 Message-ID: Subject: Re: Raid 10 chunksize From: Scott Marlowe To: Mark Kirkwood Cc: "pgsql-performance@postgresql.org" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200903/357 X-Sequence-Number: 33279 On Tue, Mar 24, 2009 at 7:09 PM, Mark Kirkwood wro= te: > I'm trying to pin down some performance issues with a machine where I wor= k, > we are seeing (read only) query response times blow out by an order of > magnitude or more at busy times. Initially we blamed autovacuum, but afte= r a > =A0tweak of the cost_delay it is *not* the problem. Then I looked at > checkpoints... and altho there was some correlation with them and the que= ry > response - I'm thinking that the raid chunksize may well be the issue. Sounds to me like you're mostly just running out of bandwidth on your RAID array. Whether or not you can tune it to run faster is the real issue. This problem becomes worse as you add clients and the RAID array starts to thrash. Thrashing is likely to be worse with a small chunk size, so that's definitely worth a look at fixing. > Fortunately there is an identical DR box, so I could do a little testing. Can you try changing the chunksize on the test box you're testing on to see if that helps?