Re: Blockbusting news, results end

From: jw schultz
Date: Mon Oct 27 2003 - 16:00:03 EST


On Sun, Oct 26, 2003 at 08:25:26PM +0900, Norman Diamond wrote:
> Pavel Machek replied to me:
>
> > > The drive finally reallocated the block and there are no longer any
> > > visible bad blocks.
> >
> > And what was the operation that made it realocate?
>
> At first I wasn't sure. I noticed that the drive was behaving differently
> when I told dd to use bs=4096 instead of 512. Until seeing Oleg Drokin's
> message about ReiserFS, I thought that the drive itself was doing something
> differently. That didn't make much sense to me because the physical sectors
> are much longer than 4096 and the pseudo-sectors are the conventional 512,
> so why did 4096 cause different behaviour? From Oleg Drokin's message, I
> guess that the use of 4096 might make a difference in the sequence of
> read-modify-write cycles involved in the logical write operation.

You bring up an interesting point. If the physical sector
is larger than the data being written how can the drive
reallocate the sector without silently losing data?

To put it in the concrete, if the physical sector were 16K
and we only do a 4K write and there is a unrecoverable read
error on the physical sector as part of the
read-modify-write sequence what is the drive to do? The
other 12K for which the drive has no data could be other
files not related to the 4K being written or even filesystem
meta-data. Reallocation in that case would cause silent
corruption.

Perhaps what finally allowed the reallocation was that the
entire physical sector finally accumulated writes to all the
logical sectors needed to be a complete physical sector
write.

--
________________________________________________________________
J.W. Schultz Pegasystems Technologies
email address: jw@xxxxxxxxxx

Remember Cernan and Schmitt
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/