* Re: More intellegent bad block reallocation in software?
2002-12-02 23:20 More intellegent bad block reallocation in software? John Bradford
@ 2002-12-02 23:14 ` Andreas Dilger
0 siblings, 0 replies; 3+ messages in thread
From: Andreas Dilger @ 2002-12-02 23:14 UTC (permalink / raw)
To: John Bradford; +Cc: linux-kernel
On Dec 02, 2002 23:20 +0000, John Bradford wrote:
> My idea is that we could allocate one block out of every ten to be a
> spare block, (which would reduce disk capacity by 10%), and then if a
> block needed to be re-allocated, we could allocate one from the same
> cylinder, therefore removing the need for the heads to seek across the
> disk.
>
> How easily could this be added to existing filesystems? Presumably
> we'd need extra functionality in both filesystem code and the IDE and
> SCSI code, and I realise that it might be completely impossible,
> without custom firmware on the disk. It's an interesting idea
> though.
Even better - just ignore bad blocks and don't relocate them at all.
That's what ext2/3 do - just skip those blocks and avoid the seek
entirely.
Cheers, Andreas
--
Andreas Dilger
http://sourceforge.net/projects/ext2resize/
http://www-mddsp.enel.ucalgary.ca/People/adilger/
^ permalink raw reply [flat|nested] 3+ messages in thread
* More intellegent bad block reallocation in software?
@ 2002-12-02 23:20 John Bradford
2002-12-02 23:14 ` Andreas Dilger
0 siblings, 1 reply; 3+ messages in thread
From: John Bradford @ 2002-12-02 23:20 UTC (permalink / raw)
To: linux-kernel
Is it possible, or at least feasible for certain disk devices, to
disable the firmware-level re-allocation of bad blocks, (note: I am
aware that disks typically have many bad blocks that are reliant on
ECC to function - I am refering to completely bad blocks, that are
replaced with a 'spare' block), and do this in software?
The reason I'm asking, is because presumably the 'spare' blocks are
kept at the end or the disk, or at least all in one place, (or
possibly throughout the disk in each ZBR zone). If this is the case,
then reading a single large file which is, according to the
filesystem, all in consecutive blocks, could involve several seeks to
the area where the spare blocks are.
My idea is that we could allocate one block out of every ten to be a
spare block, (which would reduce disk capacity by 10%), and then if a
block needed to be re-allocated, we could allocate one from the same
cylinder, therefore removing the need for the heads to seek across the
disk.
How easily could this be added to existing filesystems? Presumably
we'd need extra functionality in both filesystem code and the IDE and
SCSI code, and I realise that it might be completely impossible,
without custom firmware on the disk. It's an interesting idea
though.
John.
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: More intellegent bad block reallocation in software?
@ 2002-12-02 23:30 Manish Lachwani
0 siblings, 0 replies; 3+ messages in thread
From: Manish Lachwani @ 2002-12-02 23:30 UTC (permalink / raw)
To: 'John Bradford', linux-kernel
The remapping of bad sectors is a house-keeping function of the drive. By
default, every drive supports this. If a drive is unable to remap a sector
(due to physical defect/lack of spares/schedule later), it becomes a pending
sector. This can be taken care of in the software by writing to that sector
and leaving it upto the drive to remap this sector.
Different drives have different remapping strategy. Some drives allocate
zone based spares in which case the latency involved in fetching the spare
sector is anyway lesser.
By removing this check of a bad sector from the drive, you will need to
implement a similar algorithm in the software. IMHO, this itself might
introduce latencies. You can write a disk scrubber sort of application which
reads every sector and then checks some stats (like READ times) and decides
whether that needs to be remapped or not. In any case, this would certainly
require a custom firmware to turn off this check.
-----Original Message-----
From: John Bradford [mailto:john@grabjohn.com]
Sent: Monday, December 02, 2002 3:20 PM
To: linux-kernel@vger.kernel.org
Subject: More intellegent bad block reallocation in software?
Is it possible, or at least feasible for certain disk devices, to
disable the firmware-level re-allocation of bad blocks, (note: I am
aware that disks typically have many bad blocks that are reliant on
ECC to function - I am refering to completely bad blocks, that are
replaced with a 'spare' block), and do this in software?
The reason I'm asking, is because presumably the 'spare' blocks are
kept at the end or the disk, or at least all in one place, (or
possibly throughout the disk in each ZBR zone). If this is the case,
then reading a single large file which is, according to the
filesystem, all in consecutive blocks, could involve several seeks to
the area where the spare blocks are.
My idea is that we could allocate one block out of every ten to be a
spare block, (which would reduce disk capacity by 10%), and then if a
block needed to be re-allocated, we could allocate one from the same
cylinder, therefore removing the need for the heads to seek across the
disk.
How easily could this be added to existing filesystems? Presumably
we'd need extra functionality in both filesystem code and the IDE and
SCSI code, and I realise that it might be completely impossible,
without custom firmware on the disk. It's an interesting idea
though.
John.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-12-02 23:23 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-02 23:20 More intellegent bad block reallocation in software? John Bradford
2002-12-02 23:14 ` Andreas Dilger
2002-12-02 23:30 Manish Lachwani
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®