Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 0BDD61337B83 for ; Sat, 5 Feb 2011 04:38:50 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 97277-04 for ; Sat, 5 Feb 2011 08:38:42 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wy0-f174.google.com (mail-wy0-f174.google.com [74.125.82.174]) by mail.postgresql.org (Postfix) with ESMTP id 3C3A91337B4E for ; Sat, 5 Feb 2011 04:38:41 -0400 (AST) Received: by wyb28 with SMTP id 28so3018003wyb.19 for ; Sat, 05 Feb 2011 00:38:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=usQhWUyB4eSORiDlxi63pZLK5PKeJa7asLejJmdf3d4=; b=q5LFzgYnVqfpr9qdDBTk8ObFBDDTVc3zSHSH2gKuDHmsBlDTcUrOKDto58AL0X9+a2 +p2AeRHx+MnR2KsAK3o95ZE/pqqs4NH4fnCgjlAYhTWJCIZcmyV6mC4CCYXmUIKYMBWt rmhhf73fuPkbfGTMRP2NMIsxCJkyAyz3/ofN4= 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=Ckc/mYziB4O+Ymd4+bnOmvvXs6rtspdQznFZPdHEEou6yScvshWsxVzj0H/Q3VSNfb ZRgfC+ODJjXbilPu5Nxc6wsgbV1aAo15FpkA3kQK+mWCHmjtrkQtvm2ex0WQtpEVB219 WLn1j30zvTvD3HKGOoaQH8PMmzz7Tp9WdKqOA= MIME-Version: 1.0 Received: by 10.227.134.129 with SMTP id j1mr93336wbt.183.1296895120756; Sat, 05 Feb 2011 00:38:40 -0800 (PST) Received: by 10.227.11.83 with HTTP; Sat, 5 Feb 2011 00:38:40 -0800 (PST) In-Reply-To: References: <4D499E55.4020107@vmsinfo.com> <4D4A7B69.2020704@gmail.com> <20110204143315.GA1261@aart.is.rice.edu> <4D4C0F66.1080507@gmail.com> Date: Sat, 5 Feb 2011 01:38:40 -0700 Message-ID: Subject: Re: [HACKERS] Slow count(*) again... From: Scott Marlowe To: Robert Haas Cc: david@lang.hm, Vitalii Tymchyshyn , Kenneth Marshall , Jon Nelson , Andrew Dunstan , Bruce Momjian , Tom Lane , Craig Ringer , "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.599 tagged_above=-10 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7 X-Spam-Level: X-Archive-Number: 201102/241 X-Sequence-Number: 42379 On Fri, Feb 4, 2011 at 11:37 PM, Robert Haas wrote: > On Sat, Feb 5, 2011 at 12:46 AM, =A0 wrote: >>> Actually for me the main "con" with streaming analyze is that it adds >>> significant CPU burden to already not too fast load process. Especially= if >>> it's automatically done for any load operation performed (and I can't s= ee >>> how it can be enabled on some threshold). >> >> two thoughts >> >> 1. if it's a large enough load, itsn't it I/O bound? > > Sometimes. =A0Our COPY is not as cheap as we'd like it to be. With a 24 drive RAID-10 array that can read at ~1GB/s I am almost always CPU bound during copies. This isn't wholly bad as it leaves spare IO for the rest of the machine so regular work carries on just fine.