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 76BE3D85B0 for ; Tue, 30 Aug 2005 13:25:34 -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 99012-07 for ; Tue, 30 Aug 2005 16:25:31 +0000 (GMT) Received: from vms048pub.verizon.net (vms048pub.verizon.net [206.46.252.48]) by svr1.postgresql.org (Postfix) with ESMTP id 59926D85BA for ; Tue, 30 Aug 2005 13:25:27 -0300 (ADT) Received: from osgiliath.mathom.us ([151.200.14.55]) by vms048.mailsrvcs.net (Sun Java System Messaging Server 6.2-2.05 (built Apr 28 2005)) with ESMTPA id <0IM100E7PMYE2E40@vms048.mailsrvcs.net> for pgsql-performance@postgresql.org; Tue, 30 Aug 2005 11:25:27 -0500 (CDT) Received: from localhost (localhost [127.0.0.1]) by osgiliath.mathom.us (Postfix) with ESMTP id A973F60040E for ; Tue, 30 Aug 2005 12:25:25 -0400 (EDT) Received: from osgiliath.mathom.us ([127.0.0.1]) by localhost (osgiliath [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 03023-04 for ; Tue, 30 Aug 2005 12:25:25 -0400 (EDT) Received: by osgiliath.mathom.us (Postfix, from userid 1000) id 377DD60041D; Tue, 30 Aug 2005 12:25:25 -0400 (EDT) Date: Tue, 30 Aug 2005 12:25:25 -0400 From: Michael Stone Subject: Re: High load and iowait but no disk access In-reply-to: To: pgsql-performance@postgresql.org Mail-Followup-To: pgsql-performance@postgresql.org Message-id: <20050830162525.GU14921@mathom.us> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1; format=flowed Content-transfer-encoding: 8BIT Content-disposition: inline X-Pgp-Fingerprint: 53 FF 38 00 E7 DD 0A 9C 84 52 84 C5 EE DF 7C 88 X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at mathom.us References: User-Agent: Mutt/1.5.10i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.04 required=5 tests=[AWL=-0.010, FORGED_RCVD_HELO=0.05] X-Spam-Level: X-Archive-Number: 200508/525 X-Sequence-Number: 14272 On Mon, Aug 29, 2005 at 09:42:46AM -0400, Rémy Beaumont wrote: >We have been trying to pinpoint what originally seem to be a I/O >bottleneck but which now seems to be an issue with either Postgresql or >RHES 3. Nope, it's an IO bottleneck. >The behavior we see is that when running queries that do random reads >on disk, IOWAIT goes over 80% and actual disk IO falls to a crawl at a >throughput bellow 3000kB/s That's the sign of an IO bottleneck. >The stats of the NetApp do confirm that it is sitting idle. Doing an >strace on the Postgresql process shows that is it doing seeks and >reads. > >So my question is where is this iowait time spent ? Waiting for the seeks. postgres doesn't do async io, so it requests a block, waits for it to come in, then requests another block, etc. The utilization on the netapp isn't going to be high because it doesn't have a queue of requests and can't do readahead because the IO is random. The only way to improve the situation would be to reduce the latency of the seeks. If I read the numbers right you're only getting about 130 seeks/s, which ain't great. I don't know how much latency the netapp adds in the this configuration; have you tried benchmarking direct-attach disks? Mike Stone