From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 9 22:17:17 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5A631106567C for ; Mon, 9 Mar 2009 22:17:17 +0000 (UTC) (envelope-from rick@kiwi-computer.com) Received: from kiwi-computer.com (keira.kiwi-computer.com [63.224.10.3]) by mx1.freebsd.org (Postfix) with SMTP id 00D3F8FC1E for ; Mon, 9 Mar 2009 22:17:16 +0000 (UTC) (envelope-from rick@kiwi-computer.com) Received: (qmail 77341 invoked by uid 2001); 9 Mar 2009 22:17:15 -0000 Date: Mon, 9 Mar 2009 16:17:15 -0600 From: "Rick C. Petty" To: ticso@cicely.de Message-ID: <20090309221715.GA77196@keira.kiwi-computer.com> References: <200903041938.n24Jcqdr060153@lurza.secnetix.de> <20090304195614.GA179@britannica.bec.de> <20090306203057.GA49994@keira.kiwi-computer.com> <20090306214738.GA50654@keira.kiwi-computer.com> <20090308123608.GC82478@cicely7.cicely.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090308123608.GC82478@cicely7.cicely.de> User-Agent: Mutt/1.4.2.3i Cc: Octavian Covalschi , freebsd-hackers@freebsd.org Subject: Re: Spin down HDD after disk sync or before power off X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: rick-freebsd2008@kiwi-computer.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Mar 2009 22:17:17 -0000 On Sun, Mar 08, 2009 at 01:36:09PM +0100, Bernd Walter wrote: > On Fri, Mar 06, 2009 at 03:47:38PM -0600, Rick C. Petty wrote: > > On Fri, Mar 06, 2009 at 03:30:14PM -0600, Octavian Covalschi wrote: > > > Why is spinning down is bad for HDD ? I believe it's better to spindown a > > > drive, > > > instead of cutting power too sudden. > > > > Comparing those two, I'd say it shouldn't matter (although probably a > > forced spindown may be better). But pulling power from a drive does not > > mean the drive immediately stops doing stuff. > > My understanding is that without power the heads just slamm into > landing zone, while it can be done in a controlled smooth way with > power. Nope, according to a coworker (whose wife works for an HDD manufacturer), the spindle motor is shunted and the generated electricity is used to properly land the head. My coworker also tells me that some new drives are actually parking the heads off the disk, which as I understand is a much more difficult task since you have to worry about vertical separation when you bring the heads back between the platters. > > I was just saying spindown on disks is bad in the first place. Sure, you > > might save some wear and tear on the bearings, but you risk problems with > > the heads on both spindown and spinup. In other words, if you can avoid > > power-cycling your drives, they should last longer (in that you're less > > likely to destroy the heads). > > This depends on the disks. > Desktop and especially mobile drives are designed to sustain more > spin downs, but are not designed for rotating a long time. > But of course if you intend to spin up directly after spin down it > might be bad for them as well, since it isn't really saving spinning > time. That may be; I know nothing about differences with mobile drives. If this is true, I'd like to find some replacement 2.5" drives which are intended for continuous spinning. > This is nothing, which should be done on reboot, but for halts it > might be reasonable to do. Not sure what you're trying to say here, but I am for the idea of issuing a spindown request if we know the power is to be cycled. If spindown are issued for all halts, I hope someone makes that a kernel tunable. What I was hoping is that someone could point me to the "spinup" command as I have a drive which does not spin up until it receives this command. Any takers? -- Rick C. Petty