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 8B5B8D9AA1; Mon, 3 Oct 2005 21:07:10 -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 92843-07; Tue, 4 Oct 2005 00:07:03 +0000 (GMT) Received: from pop-altamira.atl.sa.earthlink.net (pop-altamira.atl.sa.earthlink.net [207.69.195.62]) by svr1.postgresql.org (Postfix) with ESMTP id 865B4D9A95; Mon, 3 Oct 2005 21:07:04 -0300 (ADT) Received: from elwamui-polski.atl.sa.earthlink.net ([209.86.224.45]) by pop-altamira.atl.sa.earthlink.net with esmtp (Exim 3.36 #10) id 1EMaKk-0003eV-00; Mon, 03 Oct 2005 20:07:02 -0400 Message-ID: <21602981.1128384422354.JavaMail.root@elwamui-polski.atl.sa.earthlink.net> Date: Mon, 3 Oct 2005 20:07:02 -0400 (EDT) From: Ron Peacetree Reply-To: Ron Peacetree To: josh@agliodbs.com, pgsql-hackers@postgresql.org, pgsql-performance@postgresql.org Subject: Re: [HACKERS] 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: 200510/36 X-Sequence-Number: 14804 Let's pretend we get a 24HD HW RAID solution like that J Baker says he has access to and set it up as a RAID 10. Assuming it uses two 64b 133MHz PCI-X busses and has the fastest HDs available on it, Jeff says he can hit ~1GBps of XFS FS IO rate with that set up (12*83.3MBps= 1GBps). Josh says that pg can't do more than 25MBps of DB level IO regardless of how fast the physical IO subsystem is because at 25MBps, pg is CPU bound. Just how bad is this CPU bound condition? How powerful a CPU is needed to attain a DB IO rate of 25MBps? If we replace said CPU with one 2x, 10x, etc faster than that, do we see any performance increase? If a modest CPU can drive a DB IO rate of 25MBps, but that rate does not go up regardless of how much extra CPU we throw at it... Ron -----Original Message----- From: Josh Berkus Sent: Oct 3, 2005 6:03 PM To: "Jeffrey W. Baker" Cc: Subject: Re: [HACKERS] [PERFORM] A Better External Sort? Jeffrey, > I guess database reads are different, but I remain unconvinced that they > are *fundamentally* different. After all, a tab-delimited file (my sort > workload) is a kind of database. Unfortunately, they are ... because of CPU overheads. I'm basing what's "reasonable" for data writes on the rates which other high-end DBs can make. From that, 25mb/s or even 40mb/s for sorts should be achievable but doing 120mb/s would require some kind of breakthrough. > On a single disk you wouldn't notice, but XFS scales much better when > you throw disks at it. I get a 50MB/sec boost from the 24th disk, > whereas ext3 stops scaling after 16 disks. For writes both XFS and ext3 > top out around 8 disks, but in this case XFS tops out at 500MB/sec while > ext3 can't break 350MB/sec. That would explain it. I seldom get more than 6 disks (and 2 channels) to test with. -- --Josh Josh Berkus Aglio Database Solutions San Francisco ---------------------------(end of broadcast)--------------------------- TIP 4: Have you searched our list archives? http://archives.postgresql.org