Date: Tue, 8 Apr 2003 10:09:20 -0700 (PDT) From: Nate Lawson <nate@root.org> To: Alexander Leidinger <Alexander@Leidinger.net> Cc: sos@freebsd.org Subject: Re: cvs commit: src/sys/dev/ata ata-all.c ata-all.hata-chipset.cata-dma.c ata-pci.c ata-pci.h Message-ID: <Pine.BSF.4.21.0304081001400.27414-100000@root.org> In-Reply-To: <20030408161547.1963e23a.Alexander@Leidinger.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 8 Apr 2003, Alexander Leidinger wrote: > On Tue, 08 Apr 2003 15:54:43 +0200 > Dag-Erling Smorgrav <des@ofug.org> wrote: > > > Alexander Leidinger <Alexander@Leidinger.net> writes: > > > Does this mean we can't use ATA-TQ in situations where we would use TQ > > > without WC on a SCSI system (read: does it affect softupdates)? > > > > Tagged queueing doesn't make sense without a write cache. Think about > > it for a minute. > > It doesn't make sense without some kind of a buffer, I know. With SCSI > disks you can observe a small difference between TQ with WC enabled and > TQ with WC disabled. Based upon this I concluded, that SCSI disks seems > to have a buffer for the WC (with all it's ill side effects in the > softupdates case) and another buffer for TQ. > > SCSI != ATA, but why design another WC/TQ combination, if I can borrow > it from the SCSI disks... > > Feel free to correct misunderstandings on my side. There are several levels of cache: cache in each drive, cache in the controller, and the vm/buffer cache in the kernel. Most modern SCSI drives have at least 8 MB of cache in the drive. Some controllers (mostly RAID) have cache. Tagged queuing is orthogonal to caching. TQ allows multiple transactions to be passed to the drive, allowing it to order and aggregate the requests as it thinks best. TQ can be done with no cache because all the drive is tracking is handles to transactions (typically 16 bit ids). Think of it as more like a pipeline than a cache. This is just a generalization based on SCSI SAM2 (www.t10.org). BTW, it's good to avoid "WC" as an abbreviation because it also means "write combining". -Nate
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0304081001400.27414-100000>