Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Mar 2009 20:02:58 +0000
From:      "Poul-Henning Kamp" <phk@phk.freebsd.dk>
To:        Andriy Gapon <avg@icyb.net.ua>
Cc:        freebsd-current@freebsd.org
Subject:   Re: ata: printf on every spinup/spindown? 
Message-ID:  <10611.1237233778@critter.freebsd.dk>
In-Reply-To: Your message of "Mon, 16 Mar 2009 18:20:42 %2B0200." <49BE7C5A.2080103@icyb.net.ua> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <49BE7C5A.2080103@icyb.net.ua>, Andriy Gapon writes:

>I am playing with ata spindown feature and I think that it is really unnecessary
>to print a message each time ata driver is going to spindown a disk or let it be
>spinned up:
>ad6: Idle, spin down
>ad6: request while spun down, starting.
>ad6: drive spun down.
>ad6: Idle, spin down
>ad6: request while spun down, starting.

The reason I added the printf was to make it very annoying.

Spinning a disk up and down too often wears it out much faster than leaving
it running.

In general you do not want to spin a disk down unless it is going to stay
spun down for at least 15-30 minutes.

If dmesg is going to spin your disk up, then it will wake up every 5 minutes
due to the atrun message and you are clearly doing it wrong.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.



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