From nobody@FreeBSD.org Mon Dec 4 18:27:55 2006 Return-Path: Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0FDBC16A40F for ; Mon, 4 Dec 2006 18:27:55 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [69.147.83.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id D524043CB1 for ; Mon, 4 Dec 2006 18:27:19 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id kB4IRp01056459 for ; Mon, 4 Dec 2006 18:27:51 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id kB4IRpQb056456; Mon, 4 Dec 2006 18:27:51 GMT (envelope-from nobody) Message-Id: <200612041827.kB4IRpQb056456@www.freebsd.org> Date: Mon, 4 Dec 2006 18:27:51 GMT From: Dieter To: freebsd-gnats-submit@FreeBSD.org Subject: Need to control disk write cache on per-disk basis X-Send-Pr-Version: www-3.0 >Number: 106340 >Category: kern >Synopsis: [ata] [request] Need to control disk write cache on per-disk basis >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: closed >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Dec 04 18:30:14 GMT 2006 >Closed-Date: Tue Nov 02 01:01:52 UTC 2010 >Last-Modified: Tue Nov 02 01:01:52 UTC 2010 >Originator: Dieter >Release: 6.0 >Organization: >Environment: >Description: FreeBSD only allows setting disk write cache mode on a system wide basis, and only at boot time. NetBSD allows setting the disk write cache mode of each disk individually, and does not require a reboot. See the NetBSD dkctl(8) man page. There are many times it would be very useful to be able to put one disk into write-back mode and get the 10x speedup. But we cannot do this in FreeBSD because putting all the filesystems at risk of getting scrambled is unacceptable. >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: From: mjacob@freebsd.org To: Dieter Cc: freebsd-gnats-submit@freebsd.org, freebsd-bugs@freebsd.org Subject: Re: kern/106340: Need to control disk write cache on per-disk basis Date: Mon, 4 Dec 2006 10:51:18 -0800 (PST) > FreeBSD only allows setting disk write cache mode on a system wide basis, > and only at boot time. NetBSD allows setting the disk write cache mode > of each disk individually, and does not require a reboot. See the NetBSD > dkctl(8) man page. Which disks are you talking about? ATA disks? For scsi disks you can do modepage edits via camcontrol that change it on a per-disk basis, so I assume you must be talking about ATA disks here, in which case it sounds like a simple addition to atacontrol(8). -matt From: Dieter To: mjacob@freebsd.org Cc: freebsd-gnats-submit@freebsd.org, freebsd-bugs@freebsd.org Subject: Re: kern/106340: Need to control disk write cache on per-disk basis Date: Mon, 04 Dec 2006 12:27:46 +0000 In message <20061204104730.H15778@ns1.feral.com>, mjacob@freebsd.org writes: > > FreeBSD only allows setting disk write cache mode on a system wide basis, > > and only at boot time. NetBSD allows setting the disk write cache mode > > of each disk individually, and does not require a reboot. See the NetBSD > > dkctl(8) man page. > > Which disks are you talking about? ATA disks? Yes, SATA disks. > For scsi disks you can do modepage edits via camcontrol that change it > on a per-disk basis, so I assume you must be talking about ATA disks > here, in which case it sounds like a simple addition to atacontrol(8). I did find camcontrol, but the only drive that shows up in camcontrol devlist is the PATA CD/DVD drive. This system doesn't have any real SCSI drives. State-Changed-From-To: open->suspended State-Changed-By: linimon State-Changed-When: Mon Jan 28 09:18:09 UTC 2008 State-Changed-Why: Mark suspended awaiting patches. http://www.freebsd.org/cgi/query-pr.cgi?pr=106340 From: Dieter To: linimon@freebsd.org Cc: freebsd-bugs@freebsd.org, bug-followup@freebsd.org Subject: Re: kern/106340: [sata] [request] Need to control disk write cache on per-disk basis Date: Sun, 06 Sep 2009 13:12:47 PDT In message <200801280918.m0S9IIeB005075@freefall.freebsd.org>, linimon@freebsd.org writes: > Synopsis: [sata] [request] Need to control disk write cache on per-disk basis > > State-Changed-From-To: open->suspended > State-Changed-By: linimon > State-Changed-When: Mon Jan 28 09:18:09 UTC 2008 > State-Changed-Why: > Mark suspended awaiting patches. > > http://www.freebsd.org/cgi/query-pr.cgi?pr=106340 The patch in PR kern/127717: [ata] [patch] - support write cache toggling per device works for me. Thanks, Jeremy! If someone would check the patch in, they could close both PRs. State-Changed-From-To: suspended->closed State-Changed-By: arundel State-Changed-When: Tue Nov 2 00:58:49 UTC 2010 State-Changed-Why: I'm closing this PR, since 127717 deals with the same issue and (unlike this PR) contains a patch. http://www.freebsd.org/cgi/query-pr.cgi?pr=106340 >Unformatted: