massively truncated files with XFS with sudden power loss on 2.6.27 and 2.6.28
sandeen at sandeen.net
Mon Dec 29 15:56:45 CST 2008
Russell Cattelan wrote:
> Chris Wedgwood wrote:
>> this will bite xfs more than ext3 w/ ordered mode
> Delayed allocation is a factor (and this will be true of any fs
> supporting delayed allocation)
> holding of data flushes helps reduce fragmentation by allowing larger
> segments to be flushed out,
> but it increases the time data is held in cache and thus create a larger
> window for data loss.
That's not quite accurate AFAIK; yes, xfs has delayed allocation, but it
pushes data to disk on the same schedule (by default) as any other
filesystem; when pdflush goes off (30s) or under memory pressure.
The only difference is that xfs (or any delalloc fs) allocates at flush
time not at write time.
But this does not imply that xfs is holding off flushes for longer due
to delayed allocation; I don't want it to sound like xfs is putting data
integrity at risk due to delalloc, because it's not ...
More information about the xfs