From owner-freebsd-stable@FreeBSD.ORG Sun Apr 3 14:07:40 2011 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 CED981065672 for ; Sun, 3 Apr 2011 14:07:40 +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 5CEAB8FC17 for ; Sun, 3 Apr 2011 14:07:40 +0000 (UTC) Received: by fxm11 with SMTP id 11so4538229fxm.13 for ; Sun, 03 Apr 2011 07:07:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:sender:message-id:date:from:user-agent :mime-version:to:cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=15KfRgOBvnRYMG6y2cSbi7pgtDzbaZMAkxKpI6Yi/Ys=; b=HO9x8FOfUz4nsf/95wVHeidLxnDGIMsDyryseib1vmRx+07mJCZy4P8r2+SNKzLC6G o9sQpz90fFq1AlVlhdrhbRuyYajjKCgPnqC0UaMQ8qur4Hd5B557thKu8tPVKb5irkCi gI/nKZbWoFuKZz254Je4jsOcL0GxIqPmJlGbs= 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:content-type:content-transfer-encoding; b=VgUtBG17FDWLgXT0opakld51rJAiEwAm5M+YXjGFgi+f0iYrXWIxivP/YqlDj8q5SY FYWSBU9b7j66HxYwsZRw7jHZt99FaGl2YLv+J0WvvaZ3XY9fvuDX3zbKCSkfanLMoD85 /UiaMdqLm/CYPo6Tqor7zO+sd46Na7156y1gk= Received: by 10.223.1.198 with SMTP id 6mr122675fag.120.1301837803649; Sun, 03 Apr 2011 06:36:43 -0700 (PDT) Received: from mavbook.mavhome.dp.ua ([91.198.175.1]) by mx.google.com with ESMTPS id e17sm1365293fak.24.2011.04.03.06.36.41 (version=SSLv3 cipher=OTHER); Sun, 03 Apr 2011 06:36:42 -0700 (PDT) Sender: Alexander Motin Message-ID: <4D9877E7.6050807@FreeBSD.org> Date: Sun, 03 Apr 2011 16:36:39 +0300 From: Alexander Motin User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.15) Gecko/20110310 Thunderbird/3.1.9 MIME-Version: 1.0 To: Jeremy Chadwick References: <20110402094038.GA3521@icarus.home.lan> <3B6BFB01-3AC4-432B-8713-6CED09FFF9A2@punkt.de> <20110403110351.GA30312@icarus.home.lan> In-Reply-To: <20110403110351.GA30312@icarus.home.lan> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: FreeBSD Stable Subject: Re: ahci.ko in RELENG_8_2, what about atacontrol cap? 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: Sun, 03 Apr 2011 14:07:41 -0000 On 03.04.2011 14:03, Jeremy Chadwick wrote: > On Sun, Apr 03, 2011 at 12:21:55PM +0200, Patrick M. Hausen wrote: >> Hello, >> >> Am 02.04.2011 um 11:40 schrieb Jeremy Chadwick: >>> You want "camcontrol identify adaX". DO NOT confuse this with >>> "camcontrol inquiry adaX" (this won't work). >>> >>> identify = for ATA >>> inquiry = for SCSI >> >> Works perfectly, but I just noticed one really odd thing: >> >> 1. boot without ahci.ko: >> >> nas-pmh# atacontrol cap ad4 >> ... >> write cache yes yes >> >> >> 2. boot with ahci.ko: >> >> nas-pmh# camcontrol identify ada0 >> ... >> write cache yes no >> >> >> Well? ;-) The system is a HP NL36 - I just found a couple >> of articles mentioning that the default setting in the BIOS >> setup was write cache disabled. I can check that in the >> next couple of days when I take the machine back to the >> lab (no monitor/keyboard at my home office). >> >> I'd prefer a way to make sure write cache is enabled via >> some tuning from FreeBSD. The disks are dedicated to >> a raidz2, so from what I found around the net, write cache >> should not pose a major problem. Of course, one will lose >> _some_ data at a power outage - what I want to avoid >> for home office use is a completely lost file system. >> Losing the last time machine backup of my Mac is tolerable. > > I don't have an explanation for what you're seeing. I can't reproduce > it on any of our Supermicro systems (ICH9R-based, backed by a multitude > of disk types; Intel X25-M and X25-V SSDs, WD Caviar Black 750GB, 1TB, > and 2TB, etc.). > > CC'ing mav@ who might have some ideas. I don't see anything in RELENG_8 > that looks relevant (just went through src/sys/dev/ahci's commit log). > > Alexander, disk type is here (Seagate ST32000542AS): > http://lists.freebsd.org/pipermail/freebsd-stable/2011-April/062142.html I've noticed that some RAID BIOS'es disable write cache on their disks. ata(4) enabled cache in such cases, but CAM doesn't now. I'll take care of it for ATA. For now you can manage it via `camcontrol cmd`. -- Alexander Motin