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 5B4625283C for ; Sat, 23 Jul 2005 01:09:42 -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 95774-02 for ; Sat, 23 Jul 2005 04:09:30 +0000 (GMT) Received: from mail.Mi8.com (mail.mi8.com [63.240.6.41]) by svr1.postgresql.org (Postfix) with ESMTP id AA4F45288F for ; Sat, 23 Jul 2005 01:09:28 -0300 (ADT) Received: from 172.16.1.110 by mail.Mi8.com with ESMTP (- GW01 Welcome to Mi8 Corporation www.Mi8.com); Sat, 23 Jul 2005 00:09:12 -0400 X-Server-Uuid: F1A2E19A-84E4-48DD-8F48-B475613F58B2 Received: from MI8NYCMAIL06.Mi8.com ([172.16.1.175]) by D01SMTP01.Mi8.com with Microsoft SMTPSVC(6.0.3790.211); Sat, 23 Jul 2005 00:09:12 -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 ; Sat, 23 Jul 2005 00:09:11 -0500 User-Agent: Microsoft-Entourage/11.1.0.040913 Date: Fri, 22 Jul 2005 21:09:10 -0700 Subject: Re: [PATCHES] COPY FROM performance improvements From: "Luke Lonergan" To: "Mark Wong" Cc: "Andrew Dunstan" , "Alvaro Herrera" , "Bruce Momjian" , "Alon Goldshuv" , pgsql-performance@postgresql.org, maryedie@osdl.org Message-ID: In-Reply-To: <200507221946.j6MJkljA024095@smtp.osdl.org> MIME-Version: 1.0 X-OriginalArrivalTime: 23 Jul 2005 04:09:12.0025 (UTC) FILETIME=[4817B490:01C58F3C] X-WSS-ID: 6EFF1D621J410642345-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.599 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO, RCVD_NUMERIC_HELO X-Spam-Level: * X-Archive-Number: 200507/363 X-Sequence-Number: 13604 Mark, On 7/22/05 12:47 PM, "Mark Wong" wrote: > On a single spindle: > > $ time dd if=/dev/zero of=bigfile bs=8k count=2000000 > 2000000+0 records in > 2000000+0 records out > > real 2m8.569s > user 0m0.725s > sys 0m19.633s This is super fast! 124MB/s seems too fast for true write performance on a single spindle. > But here are some number for my 12-disk lvm2 striped volume. So, software striping on how many controllers? > $ time dd if=/dev/zero of=bigfile3 bs=8k count=4000000 > 4000000+0 records in > 4000000+0 records out > > real 1m17.059s > user 0m1.479s > sys 0m41.293s Again - super fast at 416MB/s. How many controllers? When we had our problems with the cciss driver and the smartarray 5i/6 controllers, we found the only way to get any performance out of them was to run them in JBOD mode and software stripe. However, when we did so the CPU usage skyrocketed and the performance of simple SCSI adapters was 50% faster with less CPU consumption. These numbers show 100*(42.8/67) = 64% CPU consumption, I'd expect less with 2 simple U320 SCSI controllers. - Luke