Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id A3B216335A4 for ; Mon, 11 Jan 2010 09:51:06 -0400 (AST) 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 02359-08 for ; Mon, 11 Jan 2010 13:50:43 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ew0-f216.google.com (mail-ew0-f216.google.com [209.85.219.216]) by mail.postgresql.org (Postfix) with ESMTP id 6F2EA632483 for ; Mon, 11 Jan 2010 09:50:51 -0400 (AST) Received: by ewy8 with SMTP id 8so22253311ewy.35 for ; Mon, 11 Jan 2010 05:50:49 -0800 (PST) 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=ohC59SEUFhz+6RVFhOvahhJ7JBL4BHklDFl28F7VrbA=; b=FypJvaxBJp1UDHcA11aaqdDhSSl1uu5/7Qg/h+YdK6AzJuBRG3qrip4v9R9ErtTvbo 83ouUSW3WEbgY910A0Uq3Nx+wMstAaQAZUwULst6O8oAW3js0EmX2B6VHEXRH8mOCZcs lomTdSS0SyhnV7ZWNIJsypHNZevpN3Fo+CEsU= 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=Lr6CZHH9Xccrs0FGhsoMgLl7qgv+/Sq3Mj5ewJBZrkCjZ13dPZsh+t4XoJZxuB/Xqo OeBtdOYZCgWehaZU5kcRR4fCk0QAzmpQYiZnZd60QltWuF5MtmvSc1VTQ0WL/3/sf0Ut FdafGtFqH7FkMndyvJAsm1sr2ncsNRS4s4Ezg= MIME-Version: 1.0 Received: by 10.216.86.9 with SMTP id v9mr2093403wee.148.1263217849117; Mon, 11 Jan 2010 05:50:49 -0800 (PST) In-Reply-To: <61039b861001110544o2c352763q13dcf9d78a156714@mail.gmail.com> References: <61039b861001110544o2c352763q13dcf9d78a156714@mail.gmail.com> Date: Mon, 11 Jan 2010 06:50:48 -0700 Message-ID: Subject: Re: performance config help From: Scott Marlowe To: Bob Dusek 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=-2.482 tagged_above=-10 required=5 tests=AWL=0.117, BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 201001/188 X-Sequence-Number: 37068 On Mon, Jan 11, 2010 at 6:44 AM, Bob Dusek wrote: > Hello, > > We're running Postgres 8.4.2 on Red Hat 5, on pretty hefty hardware... > > 4X E7420 Xeon, Four cores (for a total of 16 cores) > 2.13 GHz, 8M Cache, 1066 Mhz FSB > 32 Gigs of RAM > 15 K RPM drives in striped raid What method of striped RAID? RAID-5? RAID-10? RAID-4? RAID-0? > Things run fine, but when we get a lot of concurrent queries running, we = see > a pretty good slow down. Definte "a lot". > We don't have much experience with this sort of hardware.=A0=A0 Does anyo= ne have > an example config file we could use as a good starting point for this sor= t > of hardware? > > We have a fair amount of row-level inserts and deletes going on (probably= as > much data is inserted and deleted in a day than permanently resides in th= e > db). What do the following commands tell you? iostat -x 10 (first iteration doesn't count) vmstat 10 (again, first iteration doesn't count) top What you're looking for is iowait / utilization.