From owner-freebsd-scsi@FreeBSD.ORG Mon May 12 15:58:03 2008 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D1AD1106567A for ; Mon, 12 May 2008 15:58:03 +0000 (UTC) (envelope-from grafan@gmail.com) Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.30]) by mx1.freebsd.org (Postfix) with ESMTP id 915628FC12 for ; Mon, 12 May 2008 15:58:02 +0000 (UTC) (envelope-from grafan@gmail.com) Received: by yw-out-2324.google.com with SMTP id 9so1307120ywe.13 for ; Mon, 12 May 2008 08:57:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=iZ14qOBlEaJG4YERMme5aBoKkDy2f36eTIpRwTlvi0E=; b=TIip4lLedjV+T9WxKc7uLibL5sKKO0FwMeLgZqJmf4IN6G2FQ/zs5HyoQ7Se91U0WTQUQuOTlwVJOWVxDIlpjdhfWIr5Ni4I6oCCJSKEmvenq/PVjY/7rAbDVha6ArRTfnfLGR4UEsRtEzE26DFJzj6fxv8OBiilz+yPb5eZoeA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=IFw3KFMg7fIrzNBBRqoAvmGZ9QLMfWB3B7bMMaWPHgWttPuyY49Cc48fmE6mMugf4ckGL0MAB/odLoqXSSRC5SMXWLRS2j6E3D5ZEfti2erpV96rjtdgXuWX/nOmAsMjnGKDklH994Mo41Xgcqng5P/2AiKj3I5/DONzrH+CmPI= Received: by 10.150.68.41 with SMTP id q41mr8393685yba.106.1210607871126; Mon, 12 May 2008 08:57:51 -0700 (PDT) Received: by 10.150.206.2 with HTTP; Mon, 12 May 2008 08:57:51 -0700 (PDT) Message-ID: <6eb82e0805120857r2e7ff540ub44b3f8661aeba91@mail.gmail.com> Date: Mon, 12 May 2008 23:57:51 +0800 From: "Rong-en Fan" To: "Scott Long" In-Reply-To: <48284D18.5010801@samsco.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <6eb82e0805110511l2e814258p4ec1a22145da9477@mail.gmail.com> <48284D18.5010801@samsco.org> Cc: freebsd-scsi@freebsd.org Subject: Re: default setting of WCE X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 May 2008 15:58:03 -0000 On Mon, May 12, 2008 at 9:58 PM, Scott Long wrote: > Rong-en Fan wrote: >> >> Hi, >> >> I'm wondering what's the default of our da(4) regarding >> the WCE (write cache) bit. I see some of my disks has this >> bit on by default and some are off. I guess it depends on >> the capabilities returned by the underlying device when >> probing? In addition, on the same hardware, I found that >> Linux has write cache enabled by default... (yes, I have read >> da(4) and knows the pros/cons of enabling this). >> > > The 'da' driver leaves the WCE setting alone by default. The > MPT driver does enable the write cache on SATA drives that it > finds on SAS controllers, but this is specific to this driver > and it happens unknown to the da driver. Ok, so it depends on the driver that the disk attached to. Thanks for clarifying. Regards, Rong-En Fan > > Scott >