Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UMuec-0007dA-JE for pgsql-performance@arkaria.postgresql.org; Tue, 02 Apr 2013 06:25:10 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UMuec-00048v-3T for pgsql-performance@arkaria.postgresql.org; Tue, 02 Apr 2013 06:25:10 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UMueb-00048n-71 for pgsql-performance@postgresql.org; Tue, 02 Apr 2013 06:25:09 +0000 Received: from [2404:130:0:10::40:2] (helo=mail.catalyst.net.nz) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UMueY-0002Za-4F for pgsql-performance@postgresql.org; Tue, 02 Apr 2013 06:25:08 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.catalyst.net.nz (Postfix) with ESMTP id B3BB032C8A; Tue, 2 Apr 2013 19:25:01 +1300 (NZDT) X-Virus-Scanned: Debian amavisd-new at catalyst.net.nz Received: from mail.catalyst.net.nz ([127.0.0.1]) by localhost (bertrand.catalyst.net.nz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 99lUKtHOo-Dt; Tue, 2 Apr 2013 19:25:00 +1300 (NZDT) Received: from [192.168.1.64] (122-60-64-230.jetstream.xtra.co.nz [122.60.64.230]) (Authenticated sender: mark.kirkwood) by mail.catalyst.net.nz (Postfix) with ESMTPSA id B4C86328AF; Tue, 2 Apr 2013 19:25:00 +1300 (NZDT) Message-ID: <515A79BC.9020006@catalyst.net.nz> Date: Tue, 02 Apr 2013 19:25:00 +1300 From: Mark Kirkwood User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130311 Thunderbird/17.0.4 MIME-Version: 1.0 To: Jeff Janes CC: Armand du Plessis , pgsql-performance Subject: Re: Problems with pg_locks explosion References: <515A2223.5080204@catalyst.net.nz> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 2404:130:0:10::40:2 (failed) X-Pg-Spam-Score: -1.1 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org On 02/04/13 19:08, Jeff Janes wrote: > On Monday, April 1, 2013, Mark Kirkwood wrote: > > > Your provisioned volumes are much better than the default AWS ones, > but are still not hugely fast (i.e 1000 IOPS is about 8 MB/s worth > of Postgres 8k buffers). So you may need to look at adding more > volumes into the array, or adding some separate ones and putting > pg_xlog directory on 'em. > > However before making changes I would recommend using iostat or sar > to monitor how volumes are handling the load (I usually choose a 1 > sec granularity and look for 100% util and high - server hundred ms > - awaits). Also iotop could be enlightening. > > > Hi Mark, > > Do you have experience using these tools with AWS? When using non-DAS > in other contexts, I've noticed that these tools often give deranged > results, because the kernel doesn't correctly know what time to > attribute to "network" and what to attribute to "disk". But I haven't > looked into it on AWS EBS, maybe they do a better job there. > Thanks for any insight, > Hi Jeff, That is a very good point. I did notice a reasonable amount of network traffic on the graphs posted previously, along with a suspiciously low amount of IO for md127 (which I assume is the raid0 array)...and wondered if iostat was not seeing IO fully, however it slipped my mind (I am on leave with kittens - so claim that for the purrrfect excuse)! However I don't recall there being a problem with the io tools for standard EBS volumes - but I haven't benchmarked AWS for a over a year, so things could be different now - and I have no experience with these new provisioned volumes. Armand - it might be instructive to do some benchmarking (with another host and volume set) where you do something like: $ dd if=/dev/zero of=file bs=8k count=1000000 and see if iostat and friends actually show you doing IO as expected! -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance