From owner-freebsd-current@FreeBSD.ORG Tue Feb 5 15:52:56 2008 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F0C7A16A417; Tue, 5 Feb 2008 15:52:56 +0000 (UTC) (envelope-from jhary@unsane.co.uk) Received: from unsane.co.uk (www.unsane.co.uk [85.233.185.162]) by mx1.freebsd.org (Postfix) with ESMTP id 6DF5113C442; Tue, 5 Feb 2008 15:52:56 +0000 (UTC) (envelope-from jhary@unsane.co.uk) Received: from prawn.unsane.co.uk (150.117-84-212.staticip.namesco.net [212.84.117.150]) (authenticated bits=0) by unsane.co.uk (8.14.0/8.14.0) with ESMTP id m15FoxAX029791 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 5 Feb 2008 15:51:00 GMT (envelope-from jhary@unsane.co.uk) Message-ID: <47A88655.3080702@unsane.co.uk> Date: Tue, 05 Feb 2008 15:52:53 +0000 From: Vince Hoffman User-Agent: Thunderbird 2.0.0.9 (X11/20080124) MIME-Version: 1.0 To: Kostik Belousov References: <20080205130210.GQ57756@deviant.kiev.zoral.com.ua> <47A85FA5.9050704@unsane.co.uk> <20080205134510.GR57756@deviant.kiev.zoral.com.ua> In-Reply-To: <20080205134510.GR57756@deviant.kiev.zoral.com.ua> X-Enigmail-Version: 0.95.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: current@freebsd.org, sos@freebsd.org Subject: Re: Load_Cycle_Count and ATA APM 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: Tue, 05 Feb 2008 15:52:57 -0000 Kostik Belousov wrote: > On Tue, Feb 05, 2008 at 01:07:49PM +0000, Vince Hoffman wrote: >> Kostik Belousov wrote: >>> I noted that when idle, my laptop HDD increases the Load_Cycle_Count >>> (193) approx. each ten seconds, as reported by smartctl. Have recently >>> read about the Ubuntu and APM mode for hard drives, I searched for the >>> tool to tune APM (that has functionality similar to linux' hdparm -B). >>> >>> It seems that FreeBSD does not have a tool ? Am I wrong ? In case I did >>> not make a mistake, below is the patch that allows to manage APM state >>> of the hard drive using atacontrol. >>> >> /usr/ports/sysutils/ataidle exists and is usable, (I use it on my >> laptop.) However it seems it could be a sensible thing to have in >> atacontrol. > I never looked into it, and I have heard that it has an architectural > problems. BTW intent of my patch is to have the ability to turn APM off. > Can ataidle do this ? > The manpage says it can with -P 0 it seems to work for me but the author does say about apm and aam support that: "These features are experimental, and should only be used after verify- ing that the drive works when sent those commands." ymmv I guess. Vince >> Vince >> >>> Any comments or objections against committing this ? >>> http://people.freebsd.org/~kib/misc/ata_setcap.1.patch