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 A3DB5DA207; Wed, 5 Oct 2005 12:33:57 -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 03022-05; Wed, 5 Oct 2005 15:33:54 +0000 (GMT) Received: from vms044pub.verizon.net (vms044pub.verizon.net [206.46.252.44]) by svr1.postgresql.org (Postfix) with ESMTP id 6293BDA214; Wed, 5 Oct 2005 12:33:51 -0300 (ADT) Received: from osgiliath.mathom.us ([70.108.61.78]) by vms044.mailsrvcs.net (Sun Java System Messaging Server 6.2 HotFix 0.04 (built Dec 24 2004)) with ESMTPA id <0INW002Q98KD7NSD@vms044.mailsrvcs.net>; Wed, 05 Oct 2005 10:33:50 -0500 (CDT) Received: from localhost (localhost [127.0.0.1]) by osgiliath.mathom.us (Postfix) with ESMTP id 927056002D3; Wed, 05 Oct 2005 11:33:49 -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 11298-01-5; Wed, 05 Oct 2005 11:33:49 -0400 (EDT) Received: by osgiliath.mathom.us (Postfix, from userid 1000) id 64F0F6002C9; Wed, 05 Oct 2005 11:33:49 -0400 (EDT) Date: Wed, 05 Oct 2005 11:33:49 -0400 From: Michael Stone Subject: Re: [HACKERS] A Better External Sort? In-reply-to: <3E37B936B592014B978C4415F90D662DE11B55@MI8NYCMAIL06.Mi8.com> To: Luke Lonergan Cc: pgsql-hackers@postgresql.org, pgsql-performance@postgresql.org Mail-Followup-To: Luke Lonergan , pgsql-hackers@postgresql.org, pgsql-performance@postgresql.org Message-id: <20051005153349.GZ2241@mathom.us> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii; format=flowed 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: <3E37B936B592014B978C4415F90D662DE11B55@MI8NYCMAIL06.Mi8.com> User-Agent: Mutt/1.5.10i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.003 required=5 tests=[AWL=0.003] X-Spam-Level: X-Archive-Number: 200510/104 X-Sequence-Number: 14872 On Wed, Oct 05, 2005 at 11:24:07AM -0400, Luke Lonergan wrote: >Nope - it would be disk wait. I said I/O overhead; i.e., it could be the overhead of calling the kernel for I/O's. E.g., the following process is having I/O problems: time dd if=/dev/sdc of=/dev/null bs=1 count=10000000 10000000+0 records in 10000000+0 records out 10000000 bytes transferred in 8.887845 seconds (1125132 bytes/sec) real 0m8.889s user 0m0.877s sys 0m8.010s it's not in disk wait state (in fact the whole read was cached) but it's only getting 1MB/s. Mike Stone