X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 82B1D5281B for ; Fri, 29 Jul 2005 01:03:33 -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 14318-06 for ; Fri, 29 Jul 2005 04:03:30 +0000 (GMT) Received: from mail.Mi8.com (unknown [63.240.6.46]) by svr1.postgresql.org (Postfix) with ESMTP id 31FD952B3E for ; Fri, 29 Jul 2005 01:03:26 -0300 (ADT) Received: from 172.16.1.118 by mail.Mi8.com with ESMTP (- GW05 Welcome to Mi8 Corporation www.Mi8.com); Fri, 29 Jul 2005 00:03:21 -0400 X-Server-Uuid: E0C866E6-C6CD-48B5-AE61-E57E73CF3CC7 Received: from MI8NYCMAIL06.Mi8.com ([172.16.1.175]) by d01smtp03.Mi8.com with Microsoft SMTPSVC(6.0.3790.1830); Fri, 29 Jul 2005 00:03:21 -0400 Received: from 24.5.173.15 ([24.5.173.15]) by MI8NYCMAIL06.Mi8.com ( [172.16.1.219]) via Exchange Front-End Server mi8owa.mi8.com ( [172.16.1.106]) with Microsoft Exchange Server HTTP-DAV ; Fri, 29 Jul 2005 00:03:20 -0500 User-Agent: Microsoft-Entourage/11.1.0.040913 Date: Thu, 28 Jul 2005 21:03:20 -0700 Subject: Re: [PATCHES] COPY FROM performance improvements From: "Luke Lonergan" To: "Joshua D. Drake" , "Mark Wong" Cc: "Patrick Welche" , pgsql-performance@postgresql.org, maryedie@osdl.org Message-ID: In-Reply-To: <42E970E4.4010902@commandprompt.com> MIME-Version: 1.0 X-OriginalArrivalTime: 29 Jul 2005 04:03:21.0606 (UTC) FILETIME=[75B48260:01C593F2] X-WSS-ID: 6EF775031M815823967-01-01 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=1.569 tagged_above=0 required=5 tests=AWL, RCVD_NUMERIC_HELO X-Spam-Level: * X-Archive-Number: 200507/454 X-Sequence-Number: 13695 >>> Can you post the "time dd if=/dev/zero of=bigfile bs=8k count=500000" >>> results? Also do the reverse (read the file) with "time dd if=bigfile >>> of=/dev/null bs=8k". > > I didn't see this come across before... here ya go: > > time dd if=/dev/zero of=bigfile bs=8k count=500000 > > 500000+0 records in > 500000+0 records out > > real 1m52.738s > user 0m0.310s > sys 0m36.590s So, that's 35MB/s, or 1/2 of a single disk drive. > time dd if=bigfile of=/dev/null bs=8k > > time dd if=bigfile of=/dev/null bs=8k > 500000+0 records in > 500000+0 records out > > real 4m38.742s > user 0m0.320s > sys 0m27.870s And that's 14MB/s, or < 1/4 of a single disk drive. > FYI on your hardware raid comment... I easily get 50 megs a second on my > 3ware controllers and faster on my LSI SATA controllers. Then you are almost getting one disk worth of bandwidth. By comparison, we get this using Linux software RAID on Xeon or Opteron: $ time dd if=/dev/zero of=bigfile bs=8k count=500000 500000+0 records in 500000+0 records out real 0m26.927s user 0m0.074s sys 0m8.769s $ time dd if=bigfile of=/dev/null bs=8k 500000+0 records in 500000+0 records out real 0m28.190s user 0m0.039s sys 0m8.349s with less CPU usage than HW SCSI RAID controllers. - Luke