|
|
Subscribe / Log in / New account

Hard drive protection

Hard drive protection

Posted Oct 13, 2005 5:04 UTC (Thu) by jwb (guest, #15467)
Parent article: Hard drive protection

Why is this level of software support needed? If the designers had any sense of decency, the
accelerometer would be an input to the hard disk's voice coil driver. The heads would park without
any help from some shell script.

I cannot even imagine the proposed implementation working. Imagine the accelerometer firing an
interrupt, which the kernel eventually gets around to servicing in a few hundred microseconds.
Afterwards the userspace daemon gets scheduled. Of course it has to be paged in, which takes a
bit. After a few seconds the daemon tries to park the heads, which are already smashed into the
platters.

I can even imagine a situation where this system, by paging in, causes a previously idled and parked
hard disk to spin up and run, just in time for the impact.


to post comments

Hard drive protection

Posted Oct 13, 2005 6:55 UTC (Thu) by lienha_r (guest, #29121) [Link] (3 responses)

The problem is that you need quite a few heuristics in order to determine if the laptop really is falling: the sensors generate a lot of noise and it is not trivial to determine what is exactly happening. Imagine you're in a train, which is a typical situation where the laptop often receives little bumps. Would you like the disk head to park every 2 seconds?

For the paging problem, a simple solution is to mlock() the user-space program (that problem was also raised on the LKML) and to nice() it to a negative value.

Hard drive protection

Posted Oct 13, 2005 12:12 UTC (Thu) by smitty_one_each (subscriber, #28989) [Link]

Your point is a good one, but, if I was, say, Fujitsu, I'd be looking to develop a minimialist, embedded piece of hardware in the drive itself. Call it "Project Codpiece".
It would be a great way to differentiate a hard drive product in the market.
Once the idea catches on, motherboard makers can put such a device on their products, and integrate it with the BIOS, so that you get an interrupt to park hard drive and secure the power supply, as well.

Hard drive protection

Posted Oct 15, 2005 5:40 UTC (Sat) by dvdeug (guest, #10998) [Link] (1 responses)

There may be quite a few heuristics, but probably not more than a few k of code. I doubt a userspace heuristic could do a lot better then something built into the hard drive.

As for the train situation, a disk head parking every 2 seconds wouldn't completely kill performance, and I don't see any reason why a userspace demon would be better at handling this situation than an embedded chip. In fact, a embedded chip could probably freeze and unfreeze the disk faster than a userspace demon could, making even pathological situations run better with an embedded chip instead of a userspace demon.

Hard drive protection

Posted Oct 31, 2005 4:48 UTC (Mon) by syzygylwn (guest, #33471) [Link]

1) Yes Train (in my case boat) movements are very hard to differentiate from falling.

2) Yes, even heads parking every few seconds does severely impact performance.

3) The IBM windows drivers have this problem.

I have a Thinkpad T43. It has this active protection system. I took a month long sailing trip which my laptop joined me on. As you might imagine a sail boat very rarely gets large shocks, usualy its more of slow rolls. The laptop (even on the lowest sensativity setting) would park its head durring all but the most calm settings. The real problem is that these sensors have to detect the notebook falling off of a table and speeding towards the floor, before it hits, with enough time to park the heads for impact. This is no small trick. It works well in most other situations I've put it in, but then again I was most likely to drop it on the boat which is when I had to shut it off to get any work done.

Hard drive protection

Posted Oct 13, 2005 16:52 UTC (Thu) by ballombe (subscriber, #9523) [Link] (2 responses)

Why is this level of software support needed?
This is needed by the windows driver, it has to displays a popup:
             Falling laptop wizard

      Exclusive "hard drive active protection system" technology
      is detecting that your laptop is falling.

    Do you want Windows stop the hard disks ?
       [YES]       [NO]          [HELP]

Hard drive protection

Posted Oct 21, 2005 11:44 UTC (Fri) by tushar@mwti.net (guest, #30914) [Link] (1 responses)

So u expect to press yes when it falls from table? If u can press yes that why not to hold it properly.

Hard drive protection

Posted Oct 28, 2005 6:10 UTC (Fri) by turpie (guest, #5219) [Link]

If you're confused as to how that popup dialog operates try reading this article for more information.


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds