Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 3CE1464FE1D for ; Tue, 9 Dec 2008 13:21:50 -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 29020-09 for ; Tue, 9 Dec 2008 13:21:43 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from yx-out-2324.google.com (yx-out-2324.google.com [74.125.44.29]) by mail.postgresql.org (Postfix) with ESMTP id 94BAB64FD31 for ; Tue, 9 Dec 2008 13:21:42 -0400 (AST) Received: by yx-out-2324.google.com with SMTP id 8so28135yxb.73 for ; Tue, 09 Dec 2008 09:21:40 -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=2MALeHsRr9m1QjxQkEqH/DvD5OpMVEazDUsIra8fLHQ=; b=ZdhXBYQxW0K2uAwehNgFUjuUxivow4TvP28/PwFHSD3+UsPd0dKWF0OnUIAOHQwtAj E8aOa+DyOXJ4ld1+rTOnvHSLZbnkO9no5ER37Ao8T5Vs2nK5LXWm1DWxZxEPjVhN+f0R DJ+e3Mcbb0pixlWg1Njhi1sXQtx/xeuB63jQ8= 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=MFcENDISEsG5UTqKzxz7Ljb/X4xB2H1q/7LOXbnJD5cMpHQALLWTwbO4qwJJQigsan d1WkAVi4L/+i8Fgp1hQ7bSx8wYD+vV9Rwzk3RI51uYkKExeD6RB535+L7ryTfvGXV+A3 9TWeLLKtOdQTz8j0i6I9O5gDsnQN0BtzbCIuo= Received: by 10.114.182.1 with SMTP id e1mr260954waf.22.1228843299908; Tue, 09 Dec 2008 09:21:39 -0800 (PST) Received: by 10.114.133.4 with HTTP; Tue, 9 Dec 2008 09:21:39 -0800 (PST) Message-ID: Date: Tue, 9 Dec 2008 10:21:39 -0700 From: "Scott Marlowe" To: "Scott Carey" Subject: Re: Need help with 8.4 Performance Testing Cc: "Jean-David Beyer" , "pgsql-performance@postgresql.org" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200812071138.01215.josh@agliodbs.com> <493E6DBE.2040605@verizon.net> 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: 200812/81 X-Sequence-Number: 32117 On Tue, Dec 9, 2008 at 9:37 AM, Scott Carey wrote: > As for tipping points and pg_bench -- It doesn't seem to reflect the kind of workload we use postgres for at all, though my workload does a lot of big hashes and seqscans, and I'm curious how much improved those may be due to the hash improvements. 32GB RAM and 3TB data (about 250GB scanned regularly) here. And yes, we are almost completely CPU bound now except for a few tasks. Iostat only reports above 65% disk utilization for about 5% of the workload duty-cycle, and is regularly < 20%. COPY doesn't get anywhere near platter speeds, on indexless bulk transfer. The highest disk usage spikes occur when some of our radom-access data/indexes get shoved out of cache. These aren't too large, but high enough seqscan load will cause postgres and the OS to dump them from cache. If we put these on some SSD's the disk utilization % would drop a lot further. It definitely reflects our usage pattern, which is very random and involves tiny bits of data scattered throughout the database. Our current database is about 20-25 Gig, which means it's quickly reaching the point where it will not fit in our 32G of ram, and it's likely to grow too big for 64Gig before a year or two is out. > I feel confident in saying that in about a year, I could spec out a medium sized budget for hardware ($25k) for almost any postgres setup and make it almost pure CPU bound. > SSDs and hybrid tech such as ZFS L2ARC make this possible with easy access to 10k+ iops, and it it will take no more than 12 SATA drives in raid 10 next year (and a good controller or software raid) to get 1GB/sec sequential reads. Lucky you, having needs that are fulfilled by sequential reads. :) I wonder how many hard drives it would take to be CPU bound on random access patterns? About 40 to 60? And probably 15k / SAS drives to boot. Cause that's what we're looking at in the next few years where I work.