X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 7CD919FA5B5 for ; Fri, 2 Jun 2006 15:41:44 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 05333-10 for ; Fri, 2 Jun 2006 15:41:35 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mir3-fs.mir3.com (mail.mir3.com [65.208.188.100]) by postgresql.org (Postfix) with ESMTP id 7F8589FA43C for ; Fri, 2 Jun 2006 15:41:33 -0300 (ADT) Received: mir3-fs.mir3.com 172.16.1.11 from 172.16.2.68 172.16.2.68 via HTTP with MS-WebStorage 6.0.6249 Received: from archimedes.mirlogic.com by mir3-fs.mir3.com; 02 Jun 2006 11:41:27 -0700 Subject: Re: Initial database loading and IDE x SCSI From: Mark Lewis To: carlosreimer@terra.com.br Cc: pgsql-performance@postgresql.org In-Reply-To: References: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Organization: MIR3, Inc. Date: Fri, 02 Jun 2006 11:41:27 -0700 Message-Id: <1149273687.20798.91.camel@archimedes> Mime-Version: 1.0 X-Mailer: Evolution 2.0.2 (2.0.2-27) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/10 X-Sequence-Number: 19367 On Fri, 2006-06-02 at 15:25 -0300, carlosreimer@terra.com.br wrote: > Hi, >=20 > I would like to know if my supposition is right. >=20 > Considering an environment with only one hard disk attached to a server, = an > initial loading of the database probably is much faster using an IDE/ATA > interface with write-back on than using an SCSI interface. That=C2=B4s be= cause of > the SCSI command interface overhead. No, it's because the SCSI drive is honoring the database's request to make sure the data is safe. > Then main advantage of SCSI interfaces, the multiuser environment is lost= in > this scenery. >=20 > Am I right? Am I missing something here? >=20 > Even if I=C2=B4m right, is something that could be done too improove SCSI= loading > performance in this scenery? You can perform the initial load in large transactions. The extra overhead for ensuring that data is safely written to disk will only be incurred once per transaction, so try to minimize the number of transactions. You could optionally set fsync=3Doff in postgresql.conf, which means that the SCSI drive will operate with no more safety than an IDE drive. But you should only do that if you're willing to deal with catastrophic data corruption. But if this is for a desktop application where you need to support IDE drives, you'll need to deal with that anyway. > Thanks in advance! >=20 > Reimer >=20 >=20 > ---------------------------(end of broadcast)--------------------------- > TIP 6: explain analyze is your friend