Re: two ata write chaching request

From: Alexander Best <arundel_at_freebsd.org>
Date: Mon, 20 Dec 2010 23:39:40 +0000
On Mon Dec 20 10, Chuck Swiger wrote:
> On Dec 20, 2010, at 3:10 PM, Alexander Best wrote:
> > 1) write caching to be turned on and off for individual hdds
> >   (i.e. hw.ata.X.wc) and
> > 2) to be able to turn write chaching on and off on the fly.
> 
> NetBSD's dkctl allows one to enable and disable read or write caches on a per-device basis, on the fly.  Presumably atacontrol or whatever the new ada / ACHI driver uses for control would be the FreeBSD equivalent....

actually i was thinking of:

sysctl hw.ata.0.wc = 1
sysctl hw.ata.1.wc = 0

i'm running a ATA_CAM enabled kernel, so i'm using camcontrol. adding an option
to camcontrol for to enable/disable the write cache would be nice, but having
the sysctl var writable and per-device based would be nicer.

cheers.
alex

> 
> Regards,
> -- 
> -Chuck

-- 
a13x
Received on Mon Dec 20 2010 - 22:39:40 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:10 UTC