From owner-freebsd-stable@FreeBSD.ORG Mon May 12 07:23:16 2008 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F15F1106566B; Mon, 12 May 2008 07:23:16 +0000 (UTC) (envelope-from jdc@parodius.com) Received: from mx01.sc1.parodius.com (mx01.sc1.parodius.com [72.20.106.3]) by mx1.freebsd.org (Postfix) with ESMTP id DBD298FC28; Mon, 12 May 2008 07:23:16 +0000 (UTC) (envelope-from jdc@parodius.com) Received: by mx01.sc1.parodius.com (Postfix, from userid 1000) id 755701CC033; Mon, 12 May 2008 00:23:16 -0700 (PDT) Date: Mon, 12 May 2008 00:23:16 -0700 From: Jeremy Chadwick To: jonathan@kc8onw.net Message-ID: <20080512072316.GA3845@eos.sc1.parodius.com> References: <29626.214.13.212.30.1210554531.squirrel@www.kc8onw.net> <53004.80.91.220.50.1210576570.squirrel@www.kc8onw.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <53004.80.91.220.50.1210576570.squirrel@www.kc8onw.net> User-Agent: Mutt/1.5.17 (2007-11-01) Cc: stable@freebsd.org, Ian Smith , sos@freebsd.org Subject: Re: ATA APM and NCQ support in FreeBSD atacontrol X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 May 2008 07:23:17 -0000 On Mon, May 12, 2008 at 03:16:10AM -0400, jonathan@kc8onw.net wrote: > On Mon, May 12, 2008 00:52, Ian Smith wrote: > > On Sun, 11 May 2008 jonathan@kc8onw.net wrote: > > > >> I found this PR (with patch) to add APM and acoustic management control > >> to atacontrol. The PR was opened in May 2005 has not been changed since > >> December 2006 and is still open. > >> http://www.freebsd.org/cgi/query-pr.cgi?pr=81692&cat= > >> > >> I have not been able to find much of anything on SATA NCQ in FreeBSD > >> newer than 2005 or 2006 does anyone know anything newer? > > > > As for APM and AAM, that functionality is handled by sysutils/ataidle, > > which that PR appears - on a quick glance - to pretty well duplicate. > > > > I see phk@ recently added an 'atacontrol spindown' command to HEAD and > > RELENG_7 that appears to offer similar functionality to 'ataidle -S > > standby_mins' or 'ataidle -I idle_mins', though specified in seconds > > instead. However this doesn't address acoustic management. > > > > Or is ataidle broken for SATA disks? > > I think the idea was to put the ability to control it where people see it > first. I expected to be able to control NCQ, APM, and acoustic management > from atacontrol considering it listed whether they were enabled or not. Well, atacontrol(8) does let you control many things, but most pertain to ataraid(4). Otherwise, it acts purely as an ATA/SATA information utility; maybe it should be renamed atainfo(8)? The expectation that the tool should be able to control those things is legitimate, but if this is something you absolutely *need*, then I would recommend going with Linux instead. Their libata has support for all of the above, and has userland applications to control said features. > ataidle is easy enough to find, I won't deny, but why make users do the > google search and install a port when there is (what looks to me) a fairly > simple patch that can be added to the base system. Either way it would be > good to get the PR closed one way or the other considering the backlog... There are a "decent" number of PRs pertaining to ATA/SATA stuff in FreeBSD, some going back over 2 years which fix very severe bugs in RAID (see my Common Issues list for examples). Your cries are heard by some, but I'm left believing Soren is just super busy with real life. I consider this even more justification that the ATA layer in FreeBSD needs additional eyes familiar with it, and not just a single person. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |