From owner-freebsd-hackers@freebsd.org Sun Sep 11 17:10:27 2016 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1B8D8BD635C for ; Sun, 11 Sep 2016 17:10:27 +0000 (UTC) (envelope-from fullermd@over-yonder.net) Received: from mail.infocus-llc.com (mail.infocus-llc.com [199.15.120.13]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id F256FDC; Sun, 11 Sep 2016 17:10:26 +0000 (UTC) (envelope-from fullermd@over-yonder.net) Received: from draco.over-yonder.net (c-75-65-60-66.hsd1.ms.comcast.net [75.65.60.66]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.tarragon.infocus-llc.com (Postfix) with ESMTPSA id 3sXHKr4n6Tz19k; Sun, 11 Sep 2016 12:02:08 -0500 (CDT) Received: by draco.over-yonder.net (Postfix, from userid 100) id 3sXHKq5XBDz2pc; Sun, 11 Sep 2016 12:02:07 -0500 (CDT) Date: Sun, 11 Sep 2016 12:02:07 -0500 From: "Matthew D. Fuller" To: Allan Jude Cc: freebsd-hackers@freebsd.org Subject: Re: Laptop disk spindown Message-ID: <20160911170207.GG79735@over-yonder.net> References: <50125b8f-f24d-6b78-f474-7e97017302e3@m5p.com> <384fd7ca-b779-3e66-eaa9-c2c27dca4dc0@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <384fd7ca-b779-3e66-eaa9-c2c27dca4dc0@freebsd.org> X-Editor: vi X-OS: FreeBSD User-Agent: Mutt/1.6.1-fullermd.4 (2016-04-27) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2016 17:10:27 -0000 On Sun, Sep 11, 2016 at 12:55:27PM -0400 I heard the voice of Allan Jude, and lo! it spake thus: > On 2016-09-11 12:50, George Mitchell wrote: > > Smartctl reports that my laptop disk has started and stopped > > 101,798 times in 2,027 hours of operation, or roughly once a > > minute. I imagine that saves wear and tear on the disk, Actually, it dramatically _increases_ the wear and tear on the disk... > This is controlled by the drive firmware, not the OS, however, you > can often use camcontrol(8) to adjust it. > > I don't have the exact command handy, sorry. In /etc/rc.local on a system whose drives I once had to do this on, I've got: # Shut off APM on the drives to stop the load cycle count from blowing # up. # x-ref: http://forums.freebsd.org/showthread.php?t=9885 #for i in 0 2; do #. /sbin/camcontrol cmd ada${i} -a "EF 85 00 00 00 00 00 00 00 00 00 00" #done (now, this is not a laptop, so "shut off APM" was a totally reasonable hammer to swing here; whether there's something more nuanced that would be preferable in the laptop case, I don't know) -- Matthew Fuller (MF4839) | fullermd@over-yonder.net Systems/Network Administrator | http://www.over-yonder.net/~fullermd/ On the Internet, nobody can hear you scream.