From owner-freebsd-scsi@FreeBSD.ORG Mon May 12 13:58:52 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 A03B61065676 for ; Mon, 12 May 2008 13:58:52 +0000 (UTC) (envelope-from scottl@samsco.org) Received: from pooker.samsco.org (pooker.samsco.org [168.103.85.57]) by mx1.freebsd.org (Postfix) with ESMTP id 59E938FC20 for ; Mon, 12 May 2008 13:58:52 +0000 (UTC) (envelope-from scottl@samsco.org) Received: from phobos.samsco.home (phobos.samsco.home [192.168.254.11]) (authenticated bits=0) by pooker.samsco.org (8.13.8/8.13.8) with ESMTP id m4CDwmS1037595; Mon, 12 May 2008 07:58:49 -0600 (MDT) (envelope-from scottl@samsco.org) Message-ID: <48284D18.5010801@samsco.org> Date: Mon, 12 May 2008 07:58:48 -0600 From: Scott Long User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.13) Gecko/20080313 SeaMonkey/1.1.9 MIME-Version: 1.0 To: Rong-en Fan References: <6eb82e0805110511l2e814258p4ec1a22145da9477@mail.gmail.com> In-Reply-To: <6eb82e0805110511l2e814258p4ec1a22145da9477@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=3.8 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.1.8 X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on pooker.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 13:58:52 -0000 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. Scott