lkml.org 
[lkml]   [2001]   [Nov]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Journaling pointless with today's hard disks?
At 09:57 AM 11/27/01 +0800, Steve Underwood wrote:
>Quite true. The drives really need to get an "oh heck, the power's about
>to die. Quick, tidy up" signal from the outside world (like down the
>ribbon). Cheap, at the limit, PSUs probably couldn't give enough notice to
>be very helpful. Server grade ones should - they can usually ride over
>brief hiccups in the power, so they should be able to give a few 10s of ms
>notice before the regulated power lines start to droop. Perhaps the ATA
>command set should include such a feature, so the OS could take
>instruction from the hardware on the power situation, and tell the drives
>what to do.

Looking at the various interface specifications, both SCSI and ATA have the
ability to signal to the drive that the power is going, and do it in such a
way that the drive would have at least 10 milliseconds from the time the
hardware signal is received by the drive before +5 and +12 go out of
specification.

This time is based on the specifications for ATX power supplies, as I
assume most modern boxes that are used for production applications would be
using an ATX power supply or similar. Lest you think this lets older
systems off the hook, the 1981 IBM PC Technical Reference describes (in
looser language) a similar requirement.

The question remains whether (1) modern motherboards and SCSI controllers
pass through the POWER-OK signal to the RESET- line (IDE/ATA) and RSET
(SCSI), and (2) the hard drives respond intelligently to power-failure
indications.

Telling the difference between a bus-reset event and a panic reset would be
easy: if the reset signal is asserted for more than a millisecond or two
(such as when the POWER-OK signal from the power supply goes away) then the
box is in a power panic situation. Preventing spurious power panics is the
responsibility of the power supply designer, particularly if the supply
uses a large energy-storage capacitor designed to let the system ride out
power-switching events without hiccup.

Suggestion to the people contributing to ATA-7: write some language that
talks specifically about power-failure scenarios, and define a power-crisis
state based on the signals available to the drives from ATA interfaces to
determine that a power-crisis event has occurred. If the committee would
sit still for it, make it a separate section that appears in the table of
contents.

Suggestion to the people contributing to SCSI standards: ditto.

Satch

-
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/

\
 
 \ /
  Last update: 2005-03-22 13:13    [W:0.112 / U:2.568 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site