Re: (reiserfs) Re: sync: why disk cannot spin down

From: Matthias Andree (matthias.andree@gmx.de)
Date: Mon Jul 31 2000 - 09:15:55 EST


On Mon, 31 Jul 2000, Xuan Baldauf wrote:

> Xuan Baldauf wrote:
> sync; hdparm -C -Y /dev/hda; sync; hdparm -C /dev/hda

Note that "sleep" mode is quite different from "standby" mode. Drives
spin up from standby mode by themselves, they are NOT supposed to wake
up from sleep mode, unless you issue a reset.

Sleep mode is meant to put the drive to sleep, possibly switching the
laptop off or something.

We happen to be so lucky that the Linux kernel issues a reset if it is
fed up with IDE timeouts, which will bring the drive back online, at the
expense of voiding all settings in that IDE channel, particularly, DMA
modes, PIO modes and the like, unless you use the "keep options over
reset flag". (which means soft reset, effectively).

Admittedly, drives should use less power in sleep mode, the price is
higher latency and, as said before, possibly loss of drive
configuration.

-- 
Matthias Andree

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



This archive was generated by hypermail 2b29 : Mon Jul 31 2000 - 21:00:33 EST