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 5381CD84DF for ; Tue, 30 Aug 2005 13:29:06 -0300 (ADT) 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 01229-06 for ; Tue, 30 Aug 2005 16:29:04 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 76F68D8507 for ; Tue, 30 Aug 2005 13:29:03 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j7UGT3X2022551; Tue, 30 Aug 2005 12:29:03 -0400 (EDT) To: =?ISO-8859-1?Q?R=E9my_Beaumont?= Cc: pgsql-performance@postgresql.org Subject: Re: High load and iowait but no disk access In-reply-to: <2fa5224f3e5af53598e33d115a2af980@medrium.com> References: <22417.1125418551@sss.pgh.pa.us> <2fa5224f3e5af53598e33d115a2af980@medrium.com> Comments: In-reply-to =?ISO-8859-1?Q?R=E9my_Beaumont?= message dated "Tue, 30 Aug 2005 12:19:30 -0400" Date: Tue, 30 Aug 2005 12:29:02 -0400 Message-ID: <22550.1125419342@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 required=5 tests=[AWL=0.006] X-Spam-Level: X-Archive-Number: 200508/527 X-Sequence-Number: 14274 =?ISO-8859-1?Q?R=E9my_Beaumont?= writes: > On 30-Aug-05, at 12:15, Tom Lane wrote: >> I know zip about NetApps, but doesn't the 8th column indicate pretty >> steady disk reads? > Yes, but they are very low. Sure, but that's more or less what you'd expect if the thing is randomly seeking all over the disk :-(. Just because it's a NetApp doesn't mean it's got zero seek time. You did not say what sort of query this is, but I gather that it's doing an indexscan on a table that is not at all in index order. Possible solutions involve reverting to a seqscan (have you forced the planner to choose an indexscan here, either directly or by lowering random_page_cost?) or CLUSTERing the table by the index (which would need to be repeated periodically, so it's not a great answer). regards, tom lane