X-Original-To: pgsql-hackers-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 50261D95E4; Fri, 30 Sep 2005 17:21:02 -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 78362-10; Fri, 30 Sep 2005 20:20:59 +0000 (GMT) Received: from pop-tawny.atl.sa.earthlink.net (pop-tawny.atl.sa.earthlink.net [207.69.195.67]) by svr1.postgresql.org (Postfix) with ESMTP id 74D20D8BED; Fri, 30 Sep 2005 17:20:59 -0300 (ADT) Received: from elwamui-polski.atl.sa.earthlink.net ([209.86.224.45]) by pop-tawny.atl.sa.earthlink.net with esmtp (Exim 3.36 #10) id 1ELRNC-0000CV-00; Fri, 30 Sep 2005 16:20:50 -0400 Message-ID: <31833713.1128111650174.JavaMail.root@elwamui-polski.atl.sa.earthlink.net> Date: Fri, 30 Sep 2005 16:20:50 -0400 (EDT) From: Ron Peacetree Reply-To: Ron Peacetree To: Josh Berkus , pgsql-hackers@postgresql.org, pgsql-performance@postgresql.org Subject: Re: [PERFORM] A Better External Sort? Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Earthlink Zoo Mail 1.0 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.257 required=5 tests=[AWL=-0.117, DNS_FROM_RFC_ABUSE=0.374] X-Spam-Level: X-Archive-Number: 200509/1443 X-Sequence-Number: 73840 That 11MBps was your =bulk load= speed. If just loading a table is this slow, then there are issues with basic physical IO, not just IO during sort operations. As I said, the obvious candidates are inefficient physical layout and/or flawed IO code. Until the basic IO issues are addressed, we could replace the present sorting code with infinitely fast sorting code and we'd still be scrod performance wise. So why does basic IO suck so badly? Ron -----Original Message----- From: Josh Berkus Sent: Sep 30, 2005 1:23 PM To: Ron Peacetree Cc: pgsql-hackers@postgresql.org, pgsql-performance@postgresql.org Subject: Re: [HACKERS] [PERFORM] A Better External Sort? Ron, > Hmmm. > 60GB/5400secs= 11MBps. That's ssllooww. So the first > problem is evidently our physical layout and/or HD IO layer > sucks. Actually, it's much worse than that, because the sort is only dealing with one column. As I said, monitoring the iostat our top speed was 2.2mb/s. --Josh