From owner-freebsd-current@FreeBSD.ORG Sat Jun 18 17:20:21 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5AC2816A41C for ; Sat, 18 Jun 2005 17:20:21 +0000 (GMT) (envelope-from michael@weiser.dinsnail.net) Received: from heinz.dinsnail.net (p15110767.pureserver.info [217.160.166.159]) by mx1.FreeBSD.org (Postfix) with ESMTP id C9A3E43D1D for ; Sat, 18 Jun 2005 17:20:20 +0000 (GMT) (envelope-from michael@weiser.dinsnail.net) Received: from heinz.dinsnail.net (heinz.dinsnail.net [127.0.0.1]) by heinz.dinsnail.net (8.13.4/8.13.4) with ESMTP id j5IHKBLV029033; Sat, 18 Jun 2005 19:20:11 +0200 Received: from khazad-dum.weiser.dinsnail.net (uucp@localhost) by heinz.dinsnail.net (8.13.4/8.13.4/Submit) with bsmtp id j5IHK8Qs029026; Sat, 18 Jun 2005 19:20:08 +0200 Received: from khazad-dum.weiser.dinsnail.net (localhost [127.0.0.1]) by khazad-dum.weiser.dinsnail.net (8.13.4/8.13.4) with ESMTP id j5IHC77w001725; Sat, 18 Jun 2005 19:12:07 +0200 (CEST) (envelope-from michael@khazad-dum.weiser.dinsnail.net) Received: (from michael@localhost) by khazad-dum.weiser.dinsnail.net (8.13.4/8.13.4/Submit) id j5IHC7pc001724; Sat, 18 Jun 2005 19:12:07 +0200 (CEST) (envelope-from michael) Date: Sat, 18 Jun 2005 19:12:07 +0200 From: Michael Weiser To: "Daniel O'Connor" Message-ID: <20050618171207.GB993@weiser.dinsnail.net> References: <20050618161744.GA993@weiser.dinsnail.net> <200506190222.42111.doconnor@gsoft.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200506190222.42111.doconnor@gsoft.com.au> User-Agent: Mutt/1.4.2.1i X-MailScanner: Found to be clean X-MailScanner-From: michael@weiser.dinsnail.net Cc: freebsd-current@freebsd.org Subject: Re: ata explicit idle/standby X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Jun 2005 17:20:21 -0000 On Sun, Jun 19, 2005 at 02:22:41AM +0930, Daniel O'Connor wrote: > > I've done a small patch to the -CURRENT atacontrol and ata driver to > > allow explicit switch of drives to idle or standby mode and query the > > current mode. I use it to spin down disks needed only very inregularly. > > If extended by a means to set the idle timeout this might be > > particularly useful to notebook users as well. > Yes.. > Combine with > http://lists.freebsd.org/pipermail/freebsd-mobile/2003-May/000681.html to > allow you to turn the drive off for a reasonable amount of time :) > (That diff doesn't apply directly but it's trivial to apply by hand) In my case I dismount the disks anyway, so I don't need to hold off cache flushes and the like. > > Or have I actually missed the some already present functionality to > > achieve the same? > There is a port (ataidle) which does this but I think having it in atacontrol > is a good idea. I went to patching because ataidle is broken on 6.0-CURRENT. -- bye, Micha