Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 342B36321D8 for ; Tue, 6 Jan 2009 13:16:59 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 02441-08 for ; Tue, 6 Jan 2009 13:16:49 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ew0-f21.google.com (mail-ew0-f21.google.com [209.85.219.21]) by mail.postgresql.org (Postfix) with ESMTP id 8F6556321D5 for ; Tue, 6 Jan 2009 13:16:48 -0400 (AST) Received: by ewy14 with SMTP id 14so9552378ewy.19 for ; Tue, 06 Jan 2009 09:16:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=PrQv67okaL7T+X5PHJfewjBkJdij96O4k0FAMB7NmzA=; b=TY0JhI474vFRmwhHlT9Jglcu7LuGFGjaDnHRSOnmgO4cn9gvVeUI9E1U6b0s3MPVbh Lh/pZE5bJYKIx3wxhLMku241CGQWhgnfx1nIi/n15XdOmhSTcjnuZGCfjBcS6Gp7DUnA rtam+Ks4ZPYsyjo7rbdiGwL733pDqvKlyY7Fo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=iOg+6wN6B8Wpani3LOHz7ioBQoC46VL2KcDJ+AWSfCX4umK0a/iZfOae8NyY0FkDC2 1VwlVYDxLxBEu5Ipm8YJm1IXgwUHLrchW8p39/PK7zE1hsOsZaoYcT1mLdVY3zCg4mkh Q94sA9kwPoNVrND75RRJygPW5atu0VpjR0vgY= Received: by 10.210.45.17 with SMTP id s17mr811549ebs.199.1231262206387; Tue, 06 Jan 2009 09:16:46 -0800 (PST) Received: by 10.210.77.7 with HTTP; Tue, 6 Jan 2009 09:16:46 -0800 (PST) Message-ID: Date: Tue, 6 Jan 2009 12:16:46 -0500 From: "Merlin Moncure" To: "Stefano Nichele" Subject: Re: understanding postgres issues/bottlenecks Cc: pgsql-performance@postgresql.org In-Reply-To: <49638BE9.2030701@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <49638BE9.2030701@gmail.com> 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: 200901/13 X-Sequence-Number: 32292 On Tue, Jan 6, 2009 at 11:50 AM, Stefano Nichele wrote: > Hi list, > I would like to ask your help in order to understand if my postgresql server > (ver. 8.2.9) is well configured. > It's a quad-proc system (32 bit) with a 6 disk 1+0 RAID array and 2 separate > disks for the OS and write-ahead logs with 4GB of RAM. > > I don't know what is the best info to help me and so I start with some > vmstat information: > >> vmstat -n 30 > procs -----------memory---------- ---swap-- -----io---- --system-- > -----cpu------ > r b swpd free buff cache si so bi bo in cs us sy id wa > st > 0 23 84 129968 25060 3247860 0 0 78 50 0 2 17 5 33 > 45 0 clearly i/o bound. can you throw an iostat to give some more detailed info? also, need o/s version, etc disk info (speed, raid controller, etc) my guess is your disk system is underpowered for transaction load you are giving. how many tps is the database doing? merlin