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 73EEC9FA30C for ; Fri, 2 Jun 2006 21:13:42 -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 37366-10 for ; Fri, 2 Jun 2006 21:13:32 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from linda-4.paradise.net.nz (bm-4a.paradise.net.nz [203.96.152.183]) by postgresql.org (Postfix) with ESMTP id 4B5A99FA2C7 for ; Fri, 2 Jun 2006 21:13:31 -0300 (ADT) Received: from smtp-3.paradise.net.nz (tclsnelb1-src-1.paradise.net.nz [203.96.152.172]) by linda-4.paradise.net.nz (Paradise.net.nz) with ESMTP id <0J0900CZCCMG77@linda-4.paradise.net.nz> for pgsql-performance@postgresql.org; Sat, 03 Jun 2006 12:13:28 +1200 (NZST) Received: from [192.168.1.11] (218-101-29-24.dsl.clear.net.nz [218.101.29.24]) by smtp-3.paradise.net.nz (Postfix) with ESMTP id 1D2CE12B3467; Sat, 03 Jun 2006 12:13:28 +1200 (NZST) Date: Sat, 03 Jun 2006 12:13:27 +1200 From: Mark Kirkwood Subject: Re: RES: Initial database loading and IDE x SCSI In-reply-to: <1149279209.20798.108.camel@archimedes> To: carlosreimer@terra.com.br Cc: Mark Lewis , Tom Lane , pgsql-performance@postgresql.org Message-id: <4480D427.50207@paradise.net.nz> MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=UTF-8 Content-transfer-encoding: 7bit User-Agent: Thunderbird 1.5 (X11/20060417) References: <1149279209.20798.108.camel@archimedes> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/17 X-Sequence-Number: 19374 Mark Lewis wrote: > > The naive approach works on IDE drives because they don't (usually) > honor the request to write the data immediately, so it can fill its > write cache up with several megabytes of data and write it out to the > disk at its leisure. > FWIW - If you are using MacOS X or Windows, then later SATA (in particular, not sure about older IDE) will honor the request to write immediately, even if the disk write cache is enabled. I believe that Linux 2.6+ and SATA II will also behave this way (I'm thinking that write barrier support *is* in 2.6 now - however you would be wise to follow up on the Linux kernel list if you want to be sure!) In these cases data integrity becomes similar to SCSI - however, unless you buy SATA specifically designed for a server type workload (e.g WD Raptor), then ATA/SATA tend to fail more quickly if used in this way (e.g. 24/7, hot/dusty environment etc). Cheers Mark