Skip site navigation (1) Skip section navigation (2)

Re: Lying drives [Was: Re: Which OS provides the _fastest_

From: Greg Smith <gsmith(at)gregsmith(dot)com>
To: pgsql-performance(at)postgresql(dot)org
Subject: Re: Lying drives [Was: Re: Which OS provides the _fastest_
Date: 2006-11-23 07:31:22
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-performance
On Mon, 13 Nov 2006, Guy Thornley wrote:

> I've yet to find a drive that lies about write completion. The problem 
> is that the drives boot-up default is write-caching enabled (or perhaps 
> the system BIOS sets it that way). If you turn an IDE disks write cache 
> off explicity, using hdparm or similar, they behave.

I found a rather ominous warning from SGI on this subject at

"[Disabling the write cache] is kept persistent for a SCSI disk. However, 
for a SATA/PATA disk this needs to be done after every reset as it will 
reset back to the default of the write cache enabled. And a reset can 
happen after reboot or on error recovery of the drive. This makes it 
rather difficult to guarantee that the write cache is maintained as 

As I've been learning more about this subject recently, I've become 
increasingly queasy about using IDE drives for databases unless they're 
hooked up to a high-end (S|P)ATA controller.  As far as I know the BIOS 
doesn't mess with the write caches, it's strictly that the drives default 
to having them on.  Some manufacturers lets you adjust the default, which 
should prevent the behavior SGI warns about from happening; Hitachi's 
"Feature Tool" at is 
one example I've used successfully before.

* Greg Smith gsmith(at)gregsmith(dot)com Baltimore, MD

In response to


pgsql-performance by date

Next:From: Arjen van der MeijdenDate: 2006-11-23 08:40:43
Subject: Re: availability of SATA vendors
Previous:From: Greg SmithDate: 2006-11-23 06:30:24
Subject: Direct I/O issues

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group