From owner-freebsd-scsi@FreeBSD.ORG Tue Sep 16 09:37:14 2014 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 94C1EC6A for ; Tue, 16 Sep 2014 09:37:14 +0000 (UTC) Received: from mail-pd0-x22e.google.com (mail-pd0-x22e.google.com [IPv6:2607:f8b0:400e:c02::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6C98CE6E for ; Tue, 16 Sep 2014 09:37:14 +0000 (UTC) Received: by mail-pd0-f174.google.com with SMTP id v10so8187277pde.19 for ; Tue, 16 Sep 2014 02:37:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=LQjOWmPDc/fpD2a1L6HIKkh6AtA5NCsSyAm1wZ7bO0M=; b=MWBFf63j4CQlv58iox2iMa7MygP9t9j413bCIQ43gWbrVoEp2uA6l4NPZsBoIjhC3w I/xDtNkYo1ry9OqmLak4YVAUYmSki1FMFPaIp3pzEE8q1dGeQkYo19y0cs2Gmk/SojOV fAZzZM7yFywC47f1J/AGFjw6aIn22XQ4GrNAApJewIshMW34+4LEAT8CrqnhBmxQmT9x cYkdMlDZ3txNCrX3GXSiEftkevtFgFRbzBGc34A9fizR4P55lORP7mrPgkgtKR1EF765 0yAB+VxUPeHt8NnuwXWxD9AGqMc1FgwkJFa5px4DCJHHH388TZkzQc6QhzBZ9BQPMnSw VR1Q== X-Received: by 10.67.1.9 with SMTP id bc9mr12531712pad.42.1410860234009; Tue, 16 Sep 2014 02:37:14 -0700 (PDT) Received: from Peters-MacAir.local ([106.39.255.231]) by mx.google.com with ESMTPSA id e11sm13633323pdm.47.2014.09.16.02.37.11 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 16 Sep 2014 02:37:12 -0700 (PDT) Message-ID: <541804B0.7070407@gmail.com> Date: Tue, 16 Sep 2014 17:36:48 +0800 From: Xu Zhe User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: freebsd-scsi@freebsd.org Subject: How to disable hard disk write cache? Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Sep 2014 09:37:14 -0000 Hi, all, Does anyone knows how to disable write cache of hard disk? I have found some hints here at Freebsd website: https://www.freebsd.org/doc/handbook/configtuning-disk.html However, this seems only work for ATA devices, what about SAS/NLSAS devices (Meanwhile, it seems that there is no such sysctl in latest Freebsd release, which is 10.0)? Any hints are welcomed! Thanks in advance. Peter