Re: Write cache - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: Write cache
Date
Msg-id 200401312119.i0VLJ7W01821@candle.pha.pa.us
Whole thread Raw
In response to Re: Write cache  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-hackers
Andrew Dunstan wrote:
> 
> 
> Tom Lane wrote:
> 
> >Andreas Pflug <pgadmin@pse-consulting.de> writes:
> >  
> >
> >>This would be the first time a SCSI disk lies about its write caching. 
> >>There are plenty of low-cost (i.e. IDE) disks out there having a hidden 
> >>write cache, but AFAIK a generic SCSI tool is usable to enable/disable 
> >>the write cache.
> >>    
> >>
> >
> >A SCSI disk shouldn't lie about write completion in any case; there's no
> >need to because the interface spec is inherently multi-threaded (unlike
> >IDE).  See past discussions.
> >
> >  
> >
> Unless I am reading it wrong,
> 
> http://www.fcpa.com/download/download/hard-drives/map10krpm-manual.pdf 
> appears to suggest (page 5-21) that the write cache can be disabled. How 
> I am not sure - maybe using one of the tools Andreas mentioned.

My guess is to look for scsicmd or something like that.  The man page
usually talks about how to dump the device parametes.  Do that and you
should see something clear.

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073
 


pgsql-hackers by date:

Previous
From: "Ezra Epstein"
Date:
Subject: Re: Extending SET SESSION AUTHORIZATION
Next
From: Bruce Momjian
Date:
Subject: Re: Transaction aborts on syntax error.