Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Jan 2010 09:51:40 +0100 (CET)
From:      Alexander Best <alexbestms@wwu.de>
To:        Warren Block <wblock@wonkity.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Spin down HDD after disk sync or before power off
Message-ID:  <permail-2010012708514080e26a0b0000374a-a_best01@message-id.uni-muenster.de>
In-Reply-To: <alpine.BSF.2.00.1001262116490.32131@wonkity.com>

next in thread | previous in thread | raw e-mail | index | archive | help
i believe the sound you hear is due to the emergency unload sequence. i'm not
100% sure, but i think after applying the patch the sound is gone. i recently
replaced my old IDE hdd (which made a very loud "click!" during shutdown) with
a new SATA hdd. the new one is very quiet and so it's not that easy to
recognise any changes in the spin down procedure.

would be very nice if you could try the patch on one of the notebooks you're
referring to in order to see if the patch makes a difference.

cheers.
alex

Warren Block schrieb am 2010-01-27:
> On Tue, 26 Jan 2010, Alexander Best wrote:

> >because of kern/140752 i looked through a discussion back in 2009
> >(http://lists.freebsd.org/pipermail/freebsd-hackers/2009-March/02787
> >9.html)
> >concerning freebsd's hdd spin down procedure. right now
> >ATA_FLUSHCACHE is
> >being used although the hitachi hdd specs referenced in the pr say
> >that this
> >will not cause proper load/unload and thus an emergency unload will
> >occur
> >which reduces the life expectancy of hdds dramatically (20.000
> >shutdowns vs.
> >600.000 shutdowns). unfortunately the discussion back then didn't
> >come up with
> >any sort of decision/patch.

> >attached you'll find a very simple patch which issues
> >ATA_STANDBY_IMMEDIATE
> >instead of ATA_FLUSHCACHE during hdd spin down.

> >could somebody with hdd knowledge comment on this? this matter
> >seems quite
> >important since there may be a chance that the current spin down
> >mechanism in
> >freebsd damages hdds!

> Does the shutdown sound different with that patch?  On a couple of
> different notebooks here, unpatched FreeBSD makes a "GLINK!" sound
> when the drive parks, much louder than other operating systems on
> the same notebooks.

> -Warren Block * Rapid City, South Dakota USA



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?permail-2010012708514080e26a0b0000374a-a_best01>