Re: power off disk drives while running



On 8/18/07, Jan Engelhardt <jengelh@xxxxxxxxxxxxxxx> wrote:

On Aug 18 2007 12:08, Marty Leisner wrote:

In embedded system design, it may be useful to poweroff the disks (as opposed
to merely spinning them down). We want to leave the system running while
the disk is powered down, and let the disk powerup when it needs to be
spun up.

That means you also have to power it on...

While the "power off mechanism" would be platform dependent, is there a
generic path to announce "prepare for power going away"?

I do not see why that would be needed from a software point of view. Just make
sure that the disk does not needlessy emergency-park when pulling power. When
someone wants to write to disk, the request goes to the device driver, which
hands it to the controller, which hands it to the disk. And your controller
should be able to handle it (e.g. wait until reconnect) when there is a request
for a disk that is powered off.


Jan
--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/


I see this a a very important feature in the embedded system relm, I
have worked on two projects that required extreme power management,
and massive data storage. The ability to fully turn off a drive while
the system is running is key. It seems like this should be able to be
done from a kernel point of view rather than extra hardware. Although
if is not in the IDE/SATA spec then extra hardware would be necessary.
--
Brennan Ashton
Bellingham, Washington

"The box said, 'Requires Windows 98 or better'. So I installed Linux"
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: Memory puzzle
    ... I have an embedded system ... write it back in, after some 2MB, it says disk full. ... the ls command and the df command do not show the correct ... Some filesystems compress the content, ...
    (comp.os.linux.development.apps)
  • Memory puzzle
    ... I have an embedded system ... write it back in, after some 2MB, it says disk full. ... close system calls for file ops. ... the ls command and the df command do not show the correct ...
    (comp.os.linux.development.apps)
  • Re: Memory puzzle
    ... I have an embedded system ... with 32 MB flash. ... Only 1 partition of 1 MB size is writeable. ... write it back in, after some 2MB, it says disk full. ...
    (comp.os.linux.development.apps)
  • Moving beyond "Tutorial: Building and Deploying a Run-Time Image"
    ... Following the tutorial I made an embedded system based on the hardware for my development PC and everything went fine. ... I could try and use the old DOS 6.22 disk again, but I wanted to be able to use NTFS. ...
    (microsoft.public.windowsxp.embedded)
  • Re: Ext4 and the "30 second window of death"
    ... A - Writing data to disk immediately and lose no work at all, ... application uses fsync, right?). ... The problem comes when you have lots of applications open on the ... in order to save power. ...
    (Linux-Kernel)