X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 63F68DBC43 for ; Sat, 19 Nov 2005 12:13:31 -0400 (AST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 40790-05 for ; Sat, 19 Nov 2005 16:13:29 +0000 (GMT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail.mi8.com (d01gw02.mi8.com [63.240.6.46]) by svr1.postgresql.org (Postfix) with ESMTP id 5748ADBC19 for ; Sat, 19 Nov 2005 12:13:27 -0400 (AST) Received: from 172.16.1.112 by mail.mi8.com with ESMTP (- Welcome to Mi8 Corporation www.Mi8.com (D2)); Sat, 19 Nov 2005 11:13:10 -0500 X-Server-Uuid: 7829E76E-BB9E-4995-8473-3C0929DF7DD1 Received: from MI8NYCMAIL06.Mi8.com ([172.16.1.175]) by D01SMTP02.Mi8.com with Microsoft SMTPSVC(6.0.3790.211); Sat, 19 Nov 2005 11:13:10 -0500 Received: from 69.181.100.71 ([69.181.100.71]) by MI8NYCMAIL06.Mi8.com ( [172.16.1.219]) via Exchange Front-End Server mi8owa.mi8.com ( [172.16.1.104]) with Microsoft Exchange Server HTTP-DAV ; Sat, 19 Nov 2005 11:13:10 -0500 User-Agent: Microsoft-Entourage/11.2.1.051004 Date: Sat, 19 Nov 2005 08:13:09 -0800 Subject: Re: Hardware/OS recommendations for large databases ( From: "Luke Lonergan" To: stange@rentec.com, "Greg Stark" cc: "Dave Cramer" , "Joshua Marsh" , pgsql-performance@postgresql.org Message-ID: Thread-Topic: [PERFORM] Hardware/OS recommendations for large databases ( Thread-Index: AcXseIujtrf4zfrUS8uGzWRjlVpIrQAq5YQU In-Reply-To: <437E2DF2.50906@rentec.com> MIME-Version: 1.0 X-OriginalArrivalTime: 19 Nov 2005 16:13:10.0720 (UTC) FILETIME=[22BACC00:01C5ED24] X-WSS-ID: 6F61909C2RS10459626-01-01 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=1.253 required=5 tests=[AWL=0.000, RCVD_NUMERIC_HELO=1.253] X-Spam-Score: 1.253 X-Spam-Level: * X-Archive-Number: 200511/399 X-Sequence-Number: 15656 Alan, On 11/18/05 11:39 AM, "Alan Stange" wrote: > Yes and no. The one cpu is clearly idle. The second cpu is 40% busy > and 60% idle (aka iowait in the above numbers). The "aka iowait" is the problem here - iowait is not idle (otherwise it would be in the "idle" column). Iowait is time spent waiting on blocking io calls. As another poster pointed out, you have a two CPU system, and during your scan, as predicted, one CPU went 100% busy on the seq scan. During iowait periods, the CPU can be context switched to other users, but as I pointed out earlier, that's not useful for getting response on decision support queries. Thanks for your data, it exemplifies many of the points brought up: - Lots of disks and expensive I/O hardware does not help improve performance on large table queries because I/O bandwidth does not scale beyond 110-120MB/s on the fastest CPUs - OLTP performance optimizations are different than decision support Regards, - Luke