Skip to contentSkip to conversation

Disk write cache (Was: Hyper-Threading Vulnerability)

DISCUSSION Robert Hancock 2 participants 2 messages May 17, 2005 – May 18, 2005 8 messages not in the archive

lore
Share & tools
lore
#8 lore raw
In reply to a message not in the archive
Quoted 5 lines · Richard B. Johnson

Then I suggest you never use such a drive. Anything that does this, will end up replacing a good track with garbage. Unless a disk drive has a built-in power source such as super-capacitors or batteries, what happens during a power-failure is that all electronics stops and the discs start coasting. Eventually the heads will crash onto

If the power to the drive is truly just cut, then this is basically what will happen. However, I have heard, for what it's worth, that in many cases if you pull the AC power from a typical PC, the Power Good signal from the PSU will be de-asserted, which triggers the Reset line on all the buses, which triggers the ATA reset line, which triggers the drive to finish writing out the sector it is doing. There is likely enough capacitance in the power supply to do that before the voltage drops off.

Quoted 2 lines

the platter. Older discs had a magnetically released latch which would send the heads to an inside landing zone. Nobody bothers anymore.

Sure they do. All current or remotely recent drives (to my knowledge, anyway) will park the heads properly at the landing zone on power-off. If the drive is told to power off cleanly, this works as expected, and if the power is simply cut, the remaining energy in the spinning platters is used like a generator to provide power to move the head actuator to the park positon.

Signature · 3 lines
Robert Hancock      Saskatoon, SK, Canada
To email, remove "nospam" from [email protected]
Home Page: http://www.roberthancock.com/
#9 lore raw
Quoted 7 lines · Robert Hancock

If the power to the drive is truly just cut, then this is basically what will happen. However, I have heard, for what it's worth, that in many cases if you pull the AC power from a typical PC, the Power Good signal from the PSU will be de-asserted, which triggers the Reset line on all the buses, which triggers the ATA reset line, which triggers the drive to finish writing out the sector it is doing. There is likely enough capacitance in the power supply to do that before the voltage drops off.

Yes, but as you said this isn't a power loss event. It is a hard reset with a full write cache, which all drives on the market today respond to by flushing the cache.

According to the spec the time to flush can exceed 30s, so your PSU better have some honkin caps on it to ensure data integrity when you yank the power cord out of the wall.

--eric