mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Matthias Andree <matthias.andree@stud.uni-dortmund.de>
To: linux-kernel@vger.kernel.org
Subject: Re: Journaling pointless with today's hard disks?
Date: Sat, 24 Nov 2001 18:41:19 +0100	[thread overview]
Message-ID: <20011124184119.C12133@emma1.emma.line.org> (raw)
In-Reply-To: <tgpu68gw34.fsf@mercury.rus.uni-stuttgart.de> <Pine.LNX.4.33L.0111241138070.4079-100000@imladris.surriel.com> <20011124103642.A32278@vega.ipal.net>
In-Reply-To: <20011124103642.A32278@vega.ipal.net>

On Sat, 24 Nov 2001, Phil Howard wrote:

> Now I can see a problem if the drive can't flush a write-back cache
> during the "power fade".  With some pretty big caches many drives
> have these days (although I wonder just how useful that is with OS
> caches being as good as they are), the time it takes to flush could
> be long (a few seconds ... and lights are out by then).  I sure hope
> all my drives do write-through caching or don't cache writes at all.

Well, the DTLA drives ship with their writeback cache ENABLED and
transparent remapping DISABLED by default, so putting /sbin/hdparm -W0
/dev/hdX into your boot sequence before mounting the first filesystem
r/w and before calling upon fsck is certainly not a bad idea with
those. Alternatively, you can use IBM's feature tool to reconfigure the
drive.

On a related issue, I asked a person with access to DARA OEM (2.5" HDD)
data to look up caching specifications, and IBM does not guarantee data
integrity for cached blocks that have not yet made it to the disk,
although the drives start to flush their caches immediately. So up to
(cache size / block size) blocks may be lost. With the write cache
turned off, the data loss is at most 1 block.

> I would think that as fast as these drives spin these days, they
> could finish a sector between the time the power fade is detected
> and the time the voltage is too low to have the correct write
> current and servo speed.  Obviously one problem with lighter weight
> platters is the momentum advantage is reduced for keeping the speed
> right as the power is declining (if the speed is an issue, which I
> am not sure of at all).

Well, I never saw big capacitors on disks, so they just go park and
that's about it. If DTLA corrupt their blocks in a way that low-level
formatting becomes necessary, those disk drives must be phased out at
once unless IBM update their firmware so to be able "this is a hard
checksum error, but actually, we can safely overwrite this block".

> OOC, do you think there is any real advantage to the 1m to 4m cache
> that drives have these days, considering the effective caching in
> the OS that all OSes these days have ... over adding that much
> memory to your system RAM?  The only use for caching I can see in
> a drive is if it has physical sector sizes greater than the logical
> sector write granularity size which would require a read-mod-write
> kind of operation internally.  But that's not really "cache" anyway.

Yes, these caches allow for bigger write requests or less latency
(didn't figure), doubling throughput on linear writes at least with IBM
DTLA and DJNA drives.

However, if it's really true that DTLA drives and their successor
corrupt blocks (generate bad blocks) on power loss during block writes,
these drives are crap.

HTH,
Matthias

  parent reply	other threads:[~2001-11-24 17:41 UTC|newest]

Thread overview: 86+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1006644421.6553.linux-kernel2news@redhat.com>
2001-11-24 13:03 ` Florian Weimer
2001-11-24 13:40   ` Rik van Riel
2001-11-24 16:36     ` Phil Howard
2001-11-24 17:19       ` Charles Marslett
2001-11-24 17:31       ` Florian Weimer
2001-11-24 17:41       ` Matthias Andree [this message]
2001-11-24 19:20         ` Florian Weimer
2001-11-24 19:29           ` Rik van Riel
2001-11-24 22:51             ` John Alvord
2001-11-24 23:41               ` Phil Howard
2001-11-25  0:24                 ` Ian Stirling
2001-11-25  0:53                   ` Phil Howard
2001-11-25  1:25                     ` H. Peter Anvin
2001-11-25  1:44                     ` Sven.Riedel
2001-11-24 22:28           ` H. Peter Anvin
2001-11-25  4:49             ` Andre Hedrick
2001-11-24 23:04           ` Pedro M. Rodrigues
2001-11-24 23:23           ` Stephen Satchell
2001-11-24 23:29             ` H. Peter Anvin
2001-11-26 18:05               ` Steve Brueggeman
2001-11-26 23:49                 ` Martin Eriksson
2001-11-27  0:06                   ` Andreas Dilger
2001-11-27  0:16                     ` Andre Hedrick
2001-11-27  7:38                       ` Andreas Dilger
2001-11-27 11:48                         ` Ville Herva
2001-11-27  0:18                 ` Jonathan Lundell
2001-11-27  1:01                   ` Ian Stirling
2001-11-27  1:33                     ` H. Peter Anvin
2001-11-27  1:57                   ` Steve Underwood
2001-11-27  5:04                   ` Stephen Satchell
2001-11-25  4:20           ` Pete Zaitcev
2001-11-25 12:30           ` Matthias Andree
2001-11-25 15:04             ` Barry K. Nathan
2001-11-25 16:31               ` Matthias Andree
2001-11-27  2:39                 ` Pavel Machek
2001-12-03 10:23                   ` Matthias Andree
2001-11-25  9:14   ` Chris Wedgwood
2001-11-25 22:55     ` Daniel Phillips
2001-11-26 16:59     ` Rob Landley
2001-11-26 20:30       ` Andre Hedrick
2001-11-26 20:35         ` Rob Landley
2001-11-26 23:59           ` Andreas Dilger
2001-11-27  0:24             ` H. Peter Anvin
2001-11-27  0:52               ` H. Peter Anvin
2001-11-27  1:11                 ` Andrew Morton
2001-11-27  1:15                   ` H. Peter Anvin
2001-11-27 16:59                     ` Matthias Andree
2001-11-27 16:56                 ` Matthias Andree
2001-11-27  1:23           ` Ian Stirling
2001-11-26 23:00             ` Rob Landley
2001-11-27  2:41               ` H. Peter Anvin
2001-11-27  0:19                 ` Rob Landley
2001-11-27 23:35                   ` Andreas Bombe
2001-11-28 14:32                     ` Rob Landley
2001-11-27  3:39               ` Ian Stirling
2001-11-27  7:03           ` Ville Herva
2001-11-27 16:50           ` Matthias Andree
2001-11-27 20:31             ` Rob Landley
2001-11-28 18:43               ` Matthias Andree
2001-11-28 18:46                 ` Rob Landley
2001-11-28 22:19                   ` Matthias Andree
2001-11-29 22:21                     ` Pavel Machek
2001-12-01 10:55                       ` Jeff V. Merkey
2001-12-02  0:08                       ` Matthias Andree
2001-12-03 20:04                         ` Pavel Machek
2001-11-26 20:53       ` Richard B. Johnson
2001-11-26 21:18         ` Journaling pointless with today's hard disks? [wandering OT] Rob Landley
2001-11-27  0:32         ` Journaling pointless with today's hard disks? H. Peter Anvin
2001-11-27 16:39       ` Matthias Andree
2001-11-27 17:42         ` Martin Eriksson
2001-11-28 16:35           ` Ian Stirling
2001-11-26 17:14   ` Steve Brueggeman
2001-11-26 20:36     ` Andre Hedrick
2001-11-26 21:14       ` Steve Brueggeman
2001-11-26 21:36         ` Andre Hedrick
2001-11-27 16:36           ` Steve Brueggeman
2001-11-27 20:04             ` Bill Davidsen
2001-11-27 21:28         ` Wayne Whitney
2001-11-27 21:52           ` Andre Hedrick
2001-11-28 11:53             ` Pedro M. Rodrigues
2001-11-25 13:52 ` Pedro M. Rodrigues
2001-11-25  1:20 dnu478nt5w@mailexpire.com
2001-11-28 14:36 Galappatti, Kishantha
2001-11-28 17:22 David Balazic
2001-11-28 23:25 Frank de Lange
2001-11-29  1:52 ` Matthias Andree

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=20011124184119.C12133@emma1.emma.line.org \
    --to=matthias.andree@stud.uni-dortmund.de \
    --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®