Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Oct 2010 15:04:39 +0200 (CEST)
From:      Oliver Fromme <olli@lurza.secnetix.de>
To:        arundel@FreeBSD.ORG (Alexander Best)
Cc:        Bruce Cran <bruce@cran.org.uk>, Dag-Erling =?iso-8859-15?Q?Sm=F8rgrav?= <des@des.no>, mav@FreeBSD.ORG, Tijl Coosemans <tijl@coosemans.org>, freebsd-hackers@FreeBSD.ORG
Subject:   Re: Summary: Re: Spin down HDD after disk sync or before power off
Message-ID:  <201010271304.o9RD4e9Q043179@lurza.secnetix.de>
In-Reply-To: <20101027124113.GA6206@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

Alexander Best wrote:
 > i just stumbled upon PR 144770, where a somebody seems to have mistaken the
 > spindown value for minutes instead of seconds. so i really think we should have
 > this warning in atacontrol!
 > 
 > +1 from brucec, if i understood him correctly.
 > 
 > another possibility would be of course changing the spindown value from seconds
 > to minutes. imo this seems very reasonable, because measuring spindown time in
 > seconds is too fine grained and not intuitive. just like specifying the
 > 'shutdown -p XX' delay in microseconds would not be useful. ;)

No, please don't.  Changing the meaning of the value from
seconds to minutes will break people's existing setups.

I'm also against printing a warning for values less than 600.
If I want to set the value to 300, I don't want to be slapped
with a useless warning.

Also note that 300 (and even much less) might be perfectly
reasonable, depending on the kind of device!  As a rule of
thumb, the smaller a drive, the better it is optimized for
many spin up/down cycles.  For example, I've got a portable
HDD mp3 player that contains a 1.8" disk.  When playing an
mp3 file, it spins up every 20 seconds or so, reads 500 KB,
then spins down again.

In my opinion, this is purely a documentation issue.
If it is well-documented that the spindown value is given
in seconds, then that should be sufficient.

Supporting values like "5m" or "1h" would be fine, as long
as a value without a letter still means seconds.

Best regards
   Oliver

-- 
Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M.
Handelsregister: Registergericht Muenchen, HRA 74606,  Geschäftsfuehrung:
secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün-
chen, HRB 125758,  Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart

FreeBSD-Dienstleistungen, -Produkte und mehr:  http://www.secnetix.de/bsd

"Python is an experiment in how much freedom programmers need.
Too much freedom and nobody can read another's code; too little
and expressiveness is endangered."
        -- Guido van Rossum



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201010271304.o9RD4e9Q043179>