From owner-freebsd-stable@FreeBSD.ORG Fri Feb 8 15:08:58 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 37F2016A41B for ; Fri, 8 Feb 2008 15:08:58 +0000 (UTC) (envelope-from kamikaze@bsdforen.de) Received: from mail.bsdforen.de (bsdforen.de [212.204.60.79]) by mx1.freebsd.org (Postfix) with ESMTP id DB4A613C465 for ; Fri, 8 Feb 2008 15:08:57 +0000 (UTC) (envelope-from kamikaze@bsdforen.de) Received: from mobileKamikaze.norad (vpn-cl-162-193.rz.uni-karlsruhe.de [141.3.162.193]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.bsdforen.de (Postfix) with ESMTP id 51470405478; Fri, 8 Feb 2008 16:10:38 +0100 (CET) Message-ID: <47AC7087.20109@bsdforen.de> Date: Fri, 08 Feb 2008 16:08:55 +0100 From: Dominic Fandrey User-Agent: Thunderbird 2.0.0.9 (X11/20080205) MIME-Version: 1.0 To: David Wolfskill , Dominic Fandrey , "Carlos A. M. dos Santos" , freebsd-stable@freebsd.org References: <47A9F835.1060200@bsdforen.de> <47AA0696.5020109@bsdforen.de> <7872AB6E-21DA-4E2D-93C0-D07CFA3A7E47@mac.com> <47AA0E3E.4020304@bsdforen.de> <47ABF66E.4040807@bsdforen.de> <47AC65E5.8080604@bsdforen.de> <20080208143627.GL53191@bunrab.catwhisker.org> In-Reply-To: <20080208143627.GL53191@bunrab.catwhisker.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Re: RELENG_7: interrupt eating whole cpu core 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: Fri, 08 Feb 2008 15:08:58 -0000 David Wolfskill wrote: > On Fri, Feb 08, 2008 at 03:23:33PM +0100, Dominic Fandrey wrote: >> Carlos A. M. dos Santos wrote: >>> On Feb 8, 2008 4:27 AM, Dominic Fandrey wrote: >>>> ... >>>> I put the following into my rc.conf: >>>> # Set mode for CD/DVD drive. >>>> /sbin/atacontrol mode acd0 2>&1 | /usr/bin/grep PIO > /dev/null 2>&1 \ >>>> && /sbin/atacontrol mode acd0 UDMA33 >>> Do not put this in rc.conf. It will be executed again each time a >>> script in /etc/rc.d source rc.conf to obtain the configuration >>> variables. >> Hence the check, weather the drive is in PIO mode or not. The way I >> understand the rc(8) manual page, the same is true for rc.local. >> ... > > As I learned some years ago, rc.conf is for configuration > variable-setting, not executable code. Ref. (from rc.conf(5)): Why care about correctly implementing a sloppy solution? I'd rather have a good solution correctly implemented. For me that means offering the possibility to tweak the ata mode for each device in the /boot/device.hints file.