From owner-freebsd-hackers@FreeBSD.ORG Wed Feb 3 20:44:05 2010 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 DDD5D1065672; Wed, 3 Feb 2010 20:44:05 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id 9962C8FC17; Wed, 3 Feb 2010 20:44:05 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.3/8.14.3) with ESMTP id o13Ki4fB009850; Wed, 3 Feb 2010 13:44:04 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.3/8.14.3/Submit) with ESMTP id o13Ki4LN009847; Wed, 3 Feb 2010 13:44:04 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Wed, 3 Feb 2010 13:44:04 -0700 (MST) From: Warren Block To: Oliver Fromme , freebsd-hackers@FreeBSD.ORG, alexbestms@wwu.de, jkim@FreeBSD.ORG In-Reply-To: <201002031343.o13Dhj7i052507@lurza.secnetix.de> Message-ID: References: <201002031343.o13Dhj7i052507@lurza.secnetix.de> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.3 (wonkity.com [127.0.0.1]); Wed, 03 Feb 2010 13:44:04 -0700 (MST) Cc: 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 List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Feb 2010 20:44:06 -0000 On Wed, 3 Feb 2010, Oliver Fromme wrote: > Alexander Best wrote: > > imo this patch takes good care of the problem. would be nice to > > have it in HEAD. > > No -- *Please* make sure that the disks are only spun down > upon an actual power-off command (i.e. when reboot() is > called with the RB_POWEROFF flag). In all other cases the > disks should keep running. It's not good to have the disks > spin down and then immediately spin up again on every > reboot. Could you elaborate a little on why that's bad? It seems like it would be similar to a standby/resume action. Are there any other device drivers that differentiate the reboot and poweroff actions that could be used as inspiration or simply shamelessly copied in modifying ata-disk? -Warren Block * Rapid City, South Dakota USA