From owner-freebsd-current@FreeBSD.ORG Mon Mar 16 20:03:01 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 1ADDE106566C for ; Mon, 16 Mar 2009 20:03:01 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) by mx1.freebsd.org (Postfix) with ESMTP id D4AE68FC12 for ; Mon, 16 Mar 2009 20:03:00 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (critter.freebsd.dk [192.168.61.3]) by phk.freebsd.dk (Postfix) with ESMTP id 45E2A3F129; Mon, 16 Mar 2009 20:02:59 +0000 (UTC) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.14.3/8.14.3) with ESMTP id n2GK2wES010612; Mon, 16 Mar 2009 20:02:58 GMT (envelope-from phk@critter.freebsd.dk) To: Andriy Gapon From: "Poul-Henning Kamp" In-Reply-To: Your message of "Mon, 16 Mar 2009 18:20:42 +0200." <49BE7C5A.2080103@icyb.net.ua> Date: Mon, 16 Mar 2009 20:02:58 +0000 Message-ID: <10611.1237233778@critter.freebsd.dk> Sender: phk@critter.freebsd.dk Cc: freebsd-current@freebsd.org 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: Mon, 16 Mar 2009 20:03:01 -0000 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. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.