From: | Gregory Maxwell <gmaxwell(at)gmail(dot)com> |
---|---|
To: | Gavin Sherry <swm(at)linuxworld(dot)com(dot)au> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Curt Sampson <cjs(at)cynic(dot)net>, Greg Stark <gsstark(at)mit(dot)edu>, ITAGAKI Takahiro <itagaki(dot)takahiro(at)lab(dot)ntt(dot)co(dot)jp>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: [PATCHES] O_DIRECT for WAL writes |
Date: | 2005-06-23 04:25:34 |
Message-ID: | e692861c05062221257727ae60@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-patches |
On 6/23/05, Gavin Sherry <swm(at)linuxworld(dot)com(dot)au> wrote:
> > inertia) but seeking to a lot of new tracks to write randomly-positioned
> > dirty sectors would require significant energy that just ain't there
> > once the power drops. I seem to recall reading that the seek actuators
> > eat the largest share of power in a running drive...
>
> I've seen discussion about disks behaving this way. There's no magic:
> they're battery backed.
Nah this isn't always the case, for example some of the IBM deskstars
had a few tracks at the start of the disk reserved.. if the power
failed the head retracted all the way and used the rotational energy
to power it long enough to write out the cache.. At start the drive
would read it back in and finish flushing it.
.... unfortunately firmware bugs made it not always wait until the
head returned to the start to begin writing...
I'm not sure what other drives do this (er, well do it correctly :) ).
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2005-06-23 04:33:35 | Re: [PATCHES] O_DIRECT for WAL writes |
Previous Message | Tom Lane | 2005-06-23 04:21:54 | Re: HaveNFreeProcs ? |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2005-06-23 04:33:35 | Re: [PATCHES] O_DIRECT for WAL writes |
Previous Message | Gavin Sherry | 2005-06-23 04:11:58 | Re: [PATCHES] O_DIRECT for WAL writes |