mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: John Bradford <john@grabjohn.com>
To: linux-kernel@vger.kernel.org
Subject: More intellegent bad block reallocation in software?
Date: Mon, 2 Dec 2002 23:20:28 +0000 (GMT)	[thread overview]
Message-ID: <200212022320.gB2NKS2J000315@darkstar.example.net> (raw)

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.

             reply	other threads:[~2002-12-02 23:01 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-02 23:20 John Bradford [this message]
2002-12-02 23:14 ` Andreas Dilger
2002-12-02 23:30 Manish Lachwani

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200212022320.gB2NKS2J000315@darkstar.example.net \
    --to=john@grabjohn.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®