From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 19 11:24:51 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BE7501065670; Fri, 19 Nov 2010 11:24:51 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id E973B8FC0A; Fri, 19 Nov 2010 11:24:50 +0000 (UTC) Received: by fxm19 with SMTP id 19so2675690fxm.13 for ; Fri, 19 Nov 2010 03:24:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :x-enigmail-version:content-type:content-transfer-encoding; bh=CUB27yrrN0uIpWenfeh3VWj8BfnCRhz3hV6nwzUofU0=; b=J42GDfuLLxneiTQx8IQosoePrY+Ex/qVvmQ6njI78CWqCTbj1WiTiaLm5YfMdBNuOO brgV3R9WtdKl7XnQphlO/CZ+0HK8PjFWLPUU/LxVWODnOei71C9E4ywYC/Vi553DuP2v ZB47p39uOumF7vRttP0OyahaJenPAFlN6rsNQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=tAulpa9jZDaPpTbNvZCbXBKCwmny2Bh8fspb+w11S4yTcxlMH5baOC5WR/dRtmwyO2 ZCV00fnqufDXwfbe5dTPtb0D1Om8AtqA0xt93jgT9sC518GerSnjPwgqAaDDqAJ7jG9b EuJFT5gcFEFXxp1paDhqv3XOSLvJslLj28DiI= Received: by 10.223.74.143 with SMTP id u15mr678184faj.27.1290165889897; Fri, 19 Nov 2010 03:24:49 -0800 (PST) Received: from mavbook2.mavhome.dp.ua (pc.mavhome.dp.ua [212.86.226.226]) by mx.google.com with ESMTPS id e17sm476573fak.10.2010.11.19.03.24.47 (version=SSLv3 cipher=RC4-MD5); Fri, 19 Nov 2010 03:24:48 -0800 (PST) Sender: Alexander Motin Message-ID: <4CE65E52.5040009@FreeBSD.org> Date: Fri, 19 Nov 2010 13:24:02 +0200 From: Alexander Motin User-Agent: Thunderbird 2.0.0.23 (X11/20091212) MIME-Version: 1.0 To: Bruce Cran References: <201009161742.24228.tijl@coosemans.org> <201009161619.o8GGJAmv035378@lurza.secnetix.de> <20101018155944.GA12425@freebsd.org> <868w1r92rf.fsf@ds4.des.no> <20101021122110.GA65490@freebsd.org> <4CC156F5.1050109@FreeBSD.org> <20101022100309.GA16446@freebsd.org> <20101116204000.00005aea@unknown> <20101119111557.00000a3a@unknown> In-Reply-To: <20101119111557.00000a3a@unknown> X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Alexander Best , Tijl Coosemans , Oliver Fromme , freebsd-hackers@freebsd.org, Dag-Erling@FreeBSD.ORG Subject: Re: Summary: Re: Spin down HDD after disk sync or before power off X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Nov 2010 11:24:51 -0000 Bruce Cran wrote: > On Tue, 16 Nov 2010 20:40:00 +0000 > Bruce Cran wrote: > >> One problem with the code that's been committed is that the shutdown >> event handler doesn't get run during a suspend operation so an >> emergency unload still gets done when running "acpiconf -s3". > > Something else I noticed today: I've just got a new disk that supports > NCQ and found the kern.cam.ada.ada_send_ordered sysctl that appears to > enable/disable its use (?). ada_send_ordered controls periodical non-queued commands insertion to avoid possible infinite commands starvation and timeouts as result. NCQ can't be disabled now. > But the shutdown handler that spins > the disk down only gets initialized if ada_send_ordered is enabled. I > was wondering what the reason for this is? Interesting question. That code came as-is from "da" driver and I can't explain it. I have feeling that it's wrong. -- Alexander Motin