Re: Linux 2.6.6 also - Mailing list pgsql-hackers

From Manfred Spraul
Subject Re: Linux 2.6.6 also
Date
Msg-id 40A297DE.2070208@colorfullife.com
Whole thread Raw
In response to Linux 2.6.6 also  (Gregory Stark <gsstark@mit.edu>)
Responses Re: Linux 2.6.6 also
List pgsql-hackers
Gregory Stark wrote:

>This patch also looks relevant to Postgres for two reasons. 
>
>This part seems like it might expose some bugs that otherwise might have
>remained hidden:
>
>      This affects I/O scheduling potentially quite significantly.  It is no
>      longer the case that the kernel will submit pages for I/O in the order in
>      which the application dirtied them.  We instead submit them in file-offset
>      order all the time.
>
>The part about part-file fdatasync calls seems like could be really useful.
>It seems like that's just speculation about future directions though?
>  
>
Correct. The kernel could do that now, but it's not exposed to user space.

But the change highlights one point: the order in which file blocks are 
written to disk is undefined. Theoretically the wal checkpoint record 
could be on the platter, but the preceeding pages were not written.
Is that case handled by the wal replay code?

--   Manfred



pgsql-hackers by date:

Previous
From: Bruno Wolff III
Date:
Subject: Re: Probably security hole in postgresql-7.4.1
Next
From: Shachar Shemesh
Date:
Subject: Re: Probably security hole in postgresql-7.4.1