Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Feb 1999 14:01:47 +0200
From:      Ruslan Ermilov <ru@ucb.crimea.ua>
To:        "Kenneth D. Merry" <ken@plutotech.com>
Cc:        stable@FreeBSD.ORG, allenc@verinet.com, gallatin@cs.duke.edu
Subject:   Re: Tagged queueing
Message-ID:  <19990222140147.A2015@ucb.crimea.ua>
In-Reply-To: <199902201930.MAA13801@panzer.plutotech.com>; from Kenneth D. Merry on Sat, Feb 20, 1999 at 12:30:43PM -0700
References:  <19990219233927.A4953@ucb.crimea.ua> <199902201930.MAA13801@panzer.plutotech.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--BXVAT5kNtrzKuDFl
Content-Type: text/plain; charset=us-ascii

On Sat, Feb 20, 1999 at 12:30:43PM -0700, Kenneth D. Merry wrote:
>
> The AHC_TAGENABLE option is no longer necessary.  Tagged queueing is
> enabled by default.
> 
> The reason your drive does not have tagged queueing enabled is because it is
> a Western Digital Enterprise drive:
> da0 at ahc0 bus 0 target 0 lun 0
> da0: <WDIGTL ENTERPRISE 1.80> Fixed Direct Access SCSI-2 device 
> da0: 40.000MB/s transfers (20.000MHz, offset 8, 16bit)
> da0: 4157MB (8515173 512 byte sectors: 64H 32S/T 4157C)
> 
> Andrew Gallatin reported that his western digital enterprise drives only
> get 1.5MB/sec throughput with tagged queueing turned on, and 8MB/sec
> throughput with tagged queueing turned off.  Therefore, we have a quirk
> entry in the transport layer that disables tagged queueing for those
> drives.
Reported?  What's the number of his problem report?

I'm running 19990220-fresh 3.1-STABLE.  I have attached 5 files:
- notag.dmesg (dmesg output with TQ=off)
- notag.out   (test results)
- tag.dmesg   (dmesg output with TQ=on)
- tag.out     (test results)
- patch       (I used to restore TQ functionality of WD enterprise drive)


Ken, will you revert your change in cam_xpt.c,v 1.11 for WD enterprise drives
or should I open PR?


P.S. At the moment, I see no reason why I should have TQ=off on my system, so:
# dmesg | grep da0:
da0: <WDIGTL ENTERPRISE 1.80> Fixed Direct Access SCSI-2 device 
da0: 40.000MB/s transfers (20.000MHz, offset 8, 16bit), Tagged Queueing Enabled
da0: 4157MB (8515173 512 byte sectors: 64H 32S/T 4157C)
(da0:ahc0:0:0:0): tagged openings now 64


Cheers,
-- 
Ruslan Ermilov		Sysadmin and DBA of the
ru@ucb.crimea.ua	United Commercial Bank
+380.652.247.647	Simferopol, Ukraine

http://www.FreeBSD.org	The Power To Serve
http://www.oracle.com	Enabling The Information Age

--BXVAT5kNtrzKuDFl
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="notag.dmesg"

Copyright (c) 1992-1999 FreeBSD Inc.
Copyright (c) 1982, 1986, 1989, 1991, 1993
	The Regents of the University of California. All rights reserved.
FreeBSD 3.1-STABLE #0: Sat Feb 20 00:49:21 EET 1999
    root@:/usr/src/sys/compile/CHYRO
Timecounter "i8254"  frequency 1193182 Hz
Timecounter "TSC"  frequency 198665652 Hz
CPU: Pentium Pro (198.67-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x619  Stepping=9
  Features=0xfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV>
real memory  = 33554432 (32768K bytes)
avail memory = 29945856 (29244K bytes)
Preloaded elf kernel "kernel.old" at 0xf02bb000.
Probing for devices on PCI bus 0:
Correcting Natoma config for non-SMP
chip0: <Intel 82440FX (Natoma) PCI and memory controller> rev 0x02 on pci0.0.0
fxp0: <Intel EtherExpress Pro 10/100B Ethernet> rev 0x02 int a irq 10 on pci0.10.0
fxp0: Ethernet address 00:a0:c9:55:13:22
fxp1: <Intel EtherExpress Pro 10/100B Ethernet> rev 0x01 int a irq 9 on pci0.12.0
fxp1: Ethernet address 00:a0:c9:10:68:a0, 10Mbps
ahc0: <Adaptec aic7880 Ultra SCSI adapter> rev 0x00 int a irq 11 on pci0.13.0
ahc0: Using left over BIOS settings
ahc0: aic7880 Wide Channel A, SCSI Id=7, 16/255 SCBs
fxp2: <Intel EtherExpress Pro 10/100B Ethernet> rev 0x01 int a irq 11 on pci0.15.0
fxp2: Ethernet address 00:a0:c9:5a:51:f9, 10Mbps
chip1: <Intel 82371SB PCI to ISA bridge> rev 0x01 on pci0.18.0
ide_pci0: <Intel PIIX3 Bus-master IDE controller> rev 0x00 on pci0.18.1
vga0: <Cirrus Logic GD5430 SVGA controller> rev 0x22 on pci0.20.0
Probing for PnP devices:
Probing for devices on the ISA bus:
sc0 on isa
sc0: VGA color <16 virtual consoles, flags=0x0>
atkbdc0 at 0x60-0x6f on motherboard
atkbd0 irq 1 on isa
psm0 not found
sio0 at 0x3f8-0x3ff irq 4 on isa
sio0: type 16550A
sio1 at 0x2f8-0x2ff irq 3 on isa
sio1: type 16550A
cy0 irq 5 maddr 0xd4000 msize 8192 on isa
wdc0 at 0x1f0-0x1f7 irq 14 flags 0xa0ffa0ff on isa
wdc0: unit 0 (atapi): <CD-ROM CDU311/3.0j>, removable, accel, dma, iordis
acd0: drive speed 1378KB/sec, 256KB cache
acd0: supported read types: CD-DA
acd0: Audio: play, 256 volume levels
acd0: Mechanism: ejectable tray
acd0: Medium: no/blank disc inside, unlocked
wdc1 not found at 0x170
fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa
fdc0: FIFO enabled, 8 bytes threshold
fd0: 1.44MB 3.5in
vga0 at 0x3b0-0x3df maddr 0xa0000 msize 131072 on isa
npx0 on motherboard
npx0: INT 16 interface
IP packet filtering initialized, divert enabled, rule-based forwarding disabled, unlimited logging
DUMMYNET initialized (980901) -- size dn_pkt 48
Waiting 2 seconds for SCSI devices to settle
changing root device to da0s1a
da0 at ahc0 bus 0 target 0 lun 0
da0: <WDIGTL ENTERPRISE 1.80> Fixed Direct Access SCSI-2 device 
da0: 40.000MB/s transfers (20.000MHz, offset 8, 16bit)
da0: 4157MB (8515173 512 byte sectors: 64H 32S/T 4157C)

--BXVAT5kNtrzKuDFl
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="notag.out"

# dd if=/dev/zero of=test bs=64k count=1000
1000+0 records in
1000+0 records out
65536000 bytes transferred in 15.975625 secs (4102250 bytes/sec)
# dd if=/dev/zero of=test bs=64k count=1000
1000+0 records in
1000+0 records out
65536000 bytes transferred in 15.952108 secs (4108297 bytes/sec)
# dd if=/dev/zero of=test bs=64k count=1000
1000+0 records in
1000+0 records out
65536000 bytes transferred in 15.947152 secs (4109574 bytes/sec)
# dd if=/dev/zero of=test bs=64k count=1000
1000+0 records in
1000+0 records out
65536000 bytes transferred in 15.990350 secs (4098472 bytes/sec)
# dd if=/dev/zero of=test bs=64k count=1000
1000+0 records in
1000+0 records out
65536000 bytes transferred in 15.929346 secs (4114168 bytes/sec)

--BXVAT5kNtrzKuDFl
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="tag.dmesg"

Copyright (c) 1992-1999 FreeBSD Inc.
Copyright (c) 1982, 1986, 1989, 1991, 1993
	The Regents of the University of California. All rights reserved.
FreeBSD 3.1-STABLE #1: Mon Feb 22 13:14:55 EET 1999
    root@relay.ucb.crimea.ua:/usr/src/sys/compile/CHYRO
Timecounter "i8254"  frequency 1193182 Hz
Timecounter "TSC"  frequency 198665784 Hz
CPU: Pentium Pro (198.67-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x619  Stepping=9
  Features=0xfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV>
real memory  = 33554432 (32768K bytes)
avail memory = 29945856 (29244K bytes)
Preloaded elf kernel "kernel" at 0xf02bb000.
Probing for devices on PCI bus 0:
Correcting Natoma config for non-SMP
chip0: <Intel 82440FX (Natoma) PCI and memory controller> rev 0x02 on pci0.0.0
fxp0: <Intel EtherExpress Pro 10/100B Ethernet> rev 0x02 int a irq 10 on pci0.10.0
fxp0: Ethernet address 00:a0:c9:55:13:22
fxp1: <Intel EtherExpress Pro 10/100B Ethernet> rev 0x01 int a irq 9 on pci0.12.0
fxp1: Ethernet address 00:a0:c9:10:68:a0, 10Mbps
ahc0: <Adaptec aic7880 Ultra SCSI adapter> rev 0x00 int a irq 11 on pci0.13.0
ahc0: Using left over BIOS settings
ahc0: aic7880 Wide Channel A, SCSI Id=7, 16/255 SCBs
fxp2: <Intel EtherExpress Pro 10/100B Ethernet> rev 0x01 int a irq 11 on pci0.15.0
fxp2: Ethernet address 00:a0:c9:5a:51:f9, 10Mbps
chip1: <Intel 82371SB PCI to ISA bridge> rev 0x01 on pci0.18.0
ide_pci0: <Intel PIIX3 Bus-master IDE controller> rev 0x00 on pci0.18.1
vga0: <Cirrus Logic GD5430 SVGA controller> rev 0x22 on pci0.20.0
Probing for PnP devices:
Probing for devices on the ISA bus:
sc0 on isa
sc0: VGA color <16 virtual consoles, flags=0x0>
atkbdc0 at 0x60-0x6f on motherboard
atkbd0 irq 1 on isa
psm0 not found
sio0 at 0x3f8-0x3ff irq 4 on isa
sio0: type 16550A
sio1 at 0x2f8-0x2ff irq 3 on isa
sio1: type 16550A
cy0 irq 5 maddr 0xd4000 msize 8192 on isa
wdc0 at 0x1f0-0x1f7 irq 14 flags 0xa0ffa0ff on isa
wdc0: unit 0 (atapi): <CD-ROM CDU311/3.0j>, removable, accel, dma, iordis
acd0: drive speed 1378KB/sec, 256KB cache
acd0: supported read types: CD-DA
acd0: Audio: play, 256 volume levels
acd0: Mechanism: ejectable tray
acd0: Medium: no/blank disc inside, unlocked
wdc1 not found at 0x170
fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa
fdc0: FIFO enabled, 8 bytes threshold
fd0: 1.44MB 3.5in
vga0 at 0x3b0-0x3df maddr 0xa0000 msize 131072 on isa
npx0 on motherboard
npx0: INT 16 interface
IP packet filtering initialized, divert enabled, rule-based forwarding disabled, unlimited logging
DUMMYNET initialized (980901) -- size dn_pkt 48
Waiting 2 seconds for SCSI devices to settle
changing root device to da0s1a
da0 at ahc0 bus 0 target 0 lun 0
da0: <WDIGTL ENTERPRISE 1.80> Fixed Direct Access SCSI-2 device 
da0: 40.000MB/s transfers (20.000MHz, offset 8, 16bit), Tagged Queueing Enabled
da0: 4157MB (8515173 512 byte sectors: 64H 32S/T 4157C)
(da0:ahc0:0:0:0): tagged openings now 64

--BXVAT5kNtrzKuDFl
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="tag.out"

# dd if=/dev/zero of=test bs=64k count=1000
1000+0 records in
1000+0 records out
65536000 bytes transferred in 15.142196 secs (4328038 bytes/sec)
# dd if=/dev/zero of=test bs=64k count=1000
1000+0 records in
1000+0 records out
65536000 bytes transferred in 14.706395 secs (4456293 bytes/sec)
# dd if=/dev/zero of=test bs=64k count=1000
1000+0 records in
1000+0 records out
65536000 bytes transferred in 14.414267 secs (4546607 bytes/sec)
# dd if=/dev/zero of=test bs=64k count=1000
1000+0 records in
1000+0 records out
65536000 bytes transferred in 15.091607 secs (4342546 bytes/sec)
# dd if=/dev/zero of=test bs=64k count=1000
1000+0 records in
1000+0 records out
65536000 bytes transferred in 14.792112 secs (4430469 bytes/sec)

--BXVAT5kNtrzKuDFl
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=patch

Index: cam_xpt.c
===================================================================
RCS file: /usr/FreeBSD-CVS/src/sys/cam/cam_xpt.c,v
retrieving revision 1.42.2.1
diff -u -r1.42.2.1 cam_xpt.c
--- cam_xpt.c	1999/02/18 18:12:31	1.42.2.1
+++ cam_xpt.c	1999/02/22 11:14:36
@@ -335,15 +335,6 @@
 		{ T_DIRECT, SIP_MEDIA_FIXED, west_digital, "WDE*", "*" },
 		/*quirks*/0, /*mintags*/0, /*maxtags*/0
         },
-        {
-		/*
-		 * Slow when tagged queueing is enabled. (1.5MB/sec versus
-		 * 8MB/sec.)
-		 * Submitted by: Andrew Gallatin <gallatin@cs.duke.edu>
-		 */
-		{ T_DIRECT, SIP_MEDIA_FIXED, west_digital, "ENTERPRISE", "*" },
-		/*quirks*/0, /*mintags*/0, /*maxtags*/0
-        },
 	{
 		/*
 		 * Doesn't handle queue full condition correctly,

--BXVAT5kNtrzKuDFl--


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990222140147.A2015>