From owner-freebsd-current@FreeBSD.ORG Fri Mar 20 07:48:45 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 566BB106566C for ; Fri, 20 Mar 2009 07:48:45 +0000 (UTC) (envelope-from bruce@cran.org.uk) Received: from muon.cran.org.uk (brucec-1-pt.tunnel.tserv4.nyc4.ipv6.he.net [IPv6:2001:470:1f06:c09::2]) by mx1.freebsd.org (Postfix) with ESMTP id 14DB38FC08 for ; Fri, 20 Mar 2009 07:48:45 +0000 (UTC) (envelope-from bruce@cran.org.uk) Received: from muon.cran.org.uk (localhost [127.0.0.1]) by muon.cran.org.uk (Postfix) with ESMTP id 5AF2A1902C; Fri, 20 Mar 2009 07:48:40 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on muon X-Spam-Level: X-Spam-Status: No, score=-2.5 required=8.0 tests=AWL,BAYES_00,NO_RELAYS autolearn=ham version=3.2.5 Received: from gluon (unknown [IPv6:2a01:348:10f:0:240:f4ff:fe57:9871]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by muon.cran.org.uk (Postfix) with ESMTPSA; Fri, 20 Mar 2009 07:48:40 +0000 (GMT) Date: Fri, 20 Mar 2009 07:48:33 +0000 From: Bruce Cran To: "Poul-Henning Kamp" Message-ID: <20090320074833.67d615e2@gluon> In-Reply-To: <10611.1237233778@critter.freebsd.dk> References: <49BE7C5A.2080103@icyb.net.ua> <10611.1237233778@critter.freebsd.dk> X-Mailer: Claws Mail 3.6.1 (GTK+ 2.15.5; i486-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org, Andriy Gapon Subject: Re: ata: printf on every spinup/spindown? 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: Fri, 20 Mar 2009 07:48:45 -0000 On Mon, 16 Mar 2009 20:02:58 +0000 "Poul-Henning Kamp" wrote: > In message <49BE7C5A.2080103@icyb.net.ua>, Andriy Gapon writes: > > >I am playing with ata spindown feature and I think that it is really > >unnecessary to print a message each time ata driver is going to > >spindown a disk or let it be spinned up: > >ad6: Idle, spin down > >ad6: request while spun down, starting. > >ad6: drive spun down. > >ad6: Idle, spin down > >ad6: request while spun down, starting. > > The reason I added the printf was to make it very annoying. > > Spinning a disk up and down too often wears it out much faster than > leaving it running. > > In general you do not want to spin a disk down unless it is going to > stay spun down for at least 15-30 minutes. > > If dmesg is going to spin your disk up, then it will wake up every 5 > minutes due to the atrun message and you are clearly doing it wrong. > Related to this, the ATA driver should probably have some means, either automatically or via atacontrol, of setting the APM value on disks; I bought a new laptop and immediately had to install sysutils/ataidle in order to stop the heads loading/unloading several times per minute by setting APM to 254. Apparently it's fairly common for laptop drives to have overly aggressive power settings that need intervention from the OS. -- Bruce Cran