Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

FreeBSD 8.0-BETA2 camcontrol device openings - have tagged queuing?

6 views
Skip to first unread message

Phillip Musumeci

unread,
Aug 16, 2009, 5:53:02 PM8/16/09
to

Hi,

There was a "HEADS UP: Major CAM performance regression" (see
http://lists.freebsd.org/pipermail/freebsd-stable/2009-February/048366.html)
in Feb09 about a possible reduced performance on some disk subsystems,
in particular systems where camcontrol reports "device openings: 1".
Further posts indicated that the problem did not exist in FreeBSD 6.4.
My setup:

1) FreeBSD 8.0-BETA2 (boot dmesg is attached below)

2) two Samsung 400GB AL-HD400LJ disks in a USB/firewire2 enclosure using
an Oxford 924DSB chipset (see
http://zytech.com.au/Merchant2/merchant.mvc?Screen=PROD&Product_Code=ENXP800S
where I understand that the HD400LJ disks with their SATA-3Gbps
interface also have Native Command Queuing as found in newer SATA2)

3) the USB connected disk enclosure is attached to ehci0 which is a <VIA
VT6202 USB 2.0 controller> as reported in dmesg below.

My question: my disks report "device openings: 1". Can I do anything to
get these disks to use tagged queuing? Here is some status info.

$ camcontrol tags da0
(pass0:umass-sim0:0:0:0): device openings: 1
$ camcontrol tags da1
(pass1:umass-sim0:0:0:1): device openings: 1

Note that the more detailed tags information shows mintags==2 and
maxtags==255, as in

$ camcontrol tags da0 -v
(pass0:umass-sim0:0:0:0): dev_openings 1
(pass0:umass-sim0:0:0:0): dev_active 0
(pass0:umass-sim0:0:0:0): devq_openings 1
(pass0:umass-sim0:0:0:0): devq_queued 0
(pass0:umass-sim0:0:0:0): held 0
(pass0:umass-sim0:0:0:0): mintags 2
(pass0:umass-sim0:0:0:0): maxtags 255
$ camcontrol tags da1 -v
(pass1:umass-sim0:0:0:1): dev_openings 1
(pass1:umass-sim0:0:0:1): dev_active 0
(pass1:umass-sim0:0:0:1): devq_openings 1
(pass1:umass-sim0:0:0:1): devq_queued 0
(pass1:umass-sim0:0:0:1): held 0
(pass1:umass-sim0:0:0:1): mintags 2
(pass1:umass-sim0:0:0:1): maxtags 255

Thanks,
phillip

---------------------------------------------------------------------------

$ cat /var/run/dmesg.boot

Copyright (c) 1992-2009 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 8.0-BETA2 #3: Sat Aug 15 17:20:26 EST 2009
phi...@placid.homeunix.net:/usr/obj/usr/src/sys/hawke
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: VIA Esther processor 1500MHz (1499.89-MHz 686-class CPU)
Origin = "CentaurHauls" Id = 0x6a9 Stepping = 9
Features=0x87c9baff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,APIC,SEP,MTRR,PGE,CMOV,PAT,CLFLUSH,ACPI,MMX,FXSR,SSE,SSE2,PBE>
Features2=0x81<SSE3,EST>
VIA Padlock Features=0x3fcc<RNG,AES,AES-CTR,SHA1,SHA256,RSA>
real memory = 1073741824 (1024 MB)
avail memory = 969523200 (924 MB)
ACPI APIC Table: <CX700 AWRDACPI>
ioapic0 <Version 0.3> irqs 0-23 on motherboard
kbd1 at kbdmux0
cryptosoft0: <software crypto> on motherboard
padlock0: <AES-CBC,SHA1,SHA256> on motherboard
acpi0: <CX700 AWRDACPI> on motherboard
acpi0: [ITHREAD]
ACPI Error: Package List length (8) larger than NumElements count (2), truncated
20090521 dsobject-590
ACPI Error: Package List length (8) larger than NumElements count (2), truncated
20090521 dsobject-590
acpi0: Power Button (fixed)
acpi0: reservation of 0, a0000 (3) failed
acpi0: reservation of 100000, 3bdf0000 (3) failed
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0
acpi_button0: <Power Button> on acpi0
acpi_button1: <Sleep Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
agp0: <VIA VT3324 (CX700) host to PCI bridge> on hostb0
agp0: aperture size is 128M
pcib1: <PCI-PCI bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
vgapci0: <VGA-compatible display> mem 0xa0000000-0xbfffffff,0xdd000000-0xddffffff irq 16 at device 0.0 on pci1
atapci0: <VIA ATA controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xfc00-0xfc0f at device 15.0 on pci0
ata0: <ATA channel 0> on atapci0
ata0: [ITHREAD]
ata1: <ATA channel 1> on atapci0
ata1: [ITHREAD]
uhci0: <VIA 83C572 USB controller> port 0xf800-0xf81f irq 20 at device 16.0 on pci0
uhci0: [ITHREAD]
uhci0: LegSup = 0x0000
usbus0: <VIA 83C572 USB controller> on uhci0
uhci1: <VIA 83C572 USB controller> port 0xf400-0xf41f irq 22 at device 16.1 on pci0
uhci1: [ITHREAD]
uhci1: LegSup = 0x0000
usbus1: <VIA 83C572 USB controller> on uhci1
uhci2: <VIA 83C572 USB controller> port 0xf000-0xf01f irq 21 at device 16.2 on pci0
uhci2: [ITHREAD]
uhci2: LegSup = 0x0000
usbus2: <VIA 83C572 USB controller> on uhci2
ehci0: <VIA VT6202 USB 2.0 controller> mem 0xdffff000-0xdffff0ff irq 23 at device 16.4 on pci0
ehci0: [ITHREAD]
usbus3: EHCI version 1.0
usbus3: <VIA VT6202 USB 2.0 controller> on ehci0
isab0: <PCI-ISA bridge> at device 17.0 on pci0
isa0: <ISA bus> on isab0
pcib2: <ACPI PCI-PCI bridge> at device 19.0 on pci0
pci2: <ACPI PCI bus> on pcib2
pcib3: <ACPI PCI-PCI bridge> at device 19.1 on pci0
pci3: <ACPI PCI bus> on pcib3
vr0: <VIA VT6102 Rhine II 10/100BaseTX> port 0xcc00-0xccff mem 0xdfcff000-0xdfcff0ff irq 18 at device 8.0 on pci3
vr0: Quirks: 0x0
vr0: Revision: 0x8d
miibus0: <MII bus> on vr0
ukphy0: <Generic IEEE 802.3u media interface> PHY 1 on miibus0
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
vr0: Ethernet address: 00:40:63:ec:28:45
vr0: [ITHREAD]
fwohci0: <VIA Fire II (VT6306)> port 0xc800-0xc87f mem 0xdfcfe000-0xdfcfe7ff irq 19 at device 9.0 on pci3
fwohci0: [ITHREAD]
fwohci0: OHCI version 1.10 (ROM=1)
fwohci0: No. of Isochronous channels is 4.
fwohci0: EUI64 00:40:63:50:00:09:24:ef
fwohci0: Phy 1394a available S400, 2 ports.
fwohci0: Link S400, max_rec 2048 bytes.
firewire0: <IEEE1394(FireWire) bus> on fwohci0
fwe0: <Ethernet over FireWire> on firewire0
if_fwe0: Fake Ethernet address: 02:40:63:09:24:ef
fwe0: Ethernet address: 02:40:63:09:24:ef
fwip0: <IP over FireWire> on firewire0
fwip0: Firewire address: 00:40:63:50:00:09:24:ef @ 0xfffe00000000, S400, maxrec 2048
sbp0: <SBP-2/SCSI over FireWire> on firewire0
dcons_crom0: <dcons configuration ROM> on firewire0
dcons_crom0: bus_addr 0x3ada4000
fwohci0: Initiate bus reset
fwohci0: fwohci_intr_core: BUS reset
fwohci0: fwohci_intr_core: node_id=0x00000000, SelfID Count=1, CYCLEMASTER mode
ohci0: <NEC uPD 9210 USB controller> mem 0xdfcfd000-0xdfcfdfff irq 17 at device 15.0 on pci3
ohci0: [ITHREAD]
usbus4: <NEC uPD 9210 USB controller> on ohci0
ohci1: <NEC uPD 9210 USB controller> mem 0xdfcfc000-0xdfcfcfff irq 18 at device 15.1 on pci3
ohci1: [ITHREAD]
usbus5: <NEC uPD 9210 USB controller> on ohci1
ehci1: <NEC uPD 720100 USB 2.0 controller> mem 0xdfcfb000-0xdfcfb0ff irq 19 at device 15.2 on pci3
ehci1: [ITHREAD]
usbus6: EHCI version 1.0
usbus6: <NEC uPD 720100 USB 2.0 controller> on ehci1
atrtc0: <AT realtime clock> port 0x70-0x73 irq 8 on acpi0
cpu0: <ACPI CPU> on acpi0
acpi_perf0: <ACPI CPU Frequency Control> on cpu0
pmtimer0 on isa0
orm0: <ISA Option ROM> at iomem 0xc0000-0xcffff pnpid ORM0000 on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
atkbd0: [ITHREAD]
ppc0: parallel port not found.
Timecounter "TSC" frequency 1499894399 Hz quality 800
Timecounters tick every 1.000 msec
firewire0: 1 nodes, maxhop <= 0 cable IRM irm(0) (me)
firewire0: bus manager 0
usbus0: 12Mbps Full Speed USB v1.0
usbus1: 12Mbps Full Speed USB v1.0
usbus2: 12Mbps Full Speed USB v1.0
usbus3: 480Mbps High Speed USB v2.0
usbus4: 12Mbps Full Speed USB v1.0
usbus5: 12Mbps Full Speed USB v1.0
usbus6: 480Mbps High Speed USB v2.0
ad0: 76319MB <Seagate ST380023AS 3.01> at ata0-master UDMA33
ugen0.1: <VIA> at usbus0
uhub0: <VIA UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0
uhub0: 2 ports with 2 removable, self powered
ugen1.1: <VIA> at usbus1
uhub1: <VIA UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus1
uhub1: 2 ports with 2 removable, self powered
ugen2.1: <VIA> at usbus2
uhub2: <VIA UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus2
uhub2: 2 ports with 2 removable, self powered
ugen3.1: <VIA> at usbus3
uhub3: <VIA EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus3
uhub3: 6 ports with 6 removable, self powered
ugen4.1: <NEC> at usbus4
uhub4: <NEC OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus4
uhub4: 3 ports with 3 removable, self powered
ugen5.1: <NEC> at usbus5
uhub5: <NEC OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus5
uhub5: 2 ports with 2 removable, self powered
ugen6.1: <NEC> at usbus6
uhub6: <NEC EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus6
Root mount waiting for: usbus6 usbus3
Root mount waiting for: usbus6 usbus3
Root mount waiting for: usbus6 usbus3
uhub6: 5 ports with 5 removable, self powered
ugen3.2: <vendor 0x0928> at usbus3
umass0: <Interface0> on usbus3
umass0: SCSI over Bulk-Only; quirks = 0x0000
umass0:2:0:-1: Attached to scbus2
da0 at umass-sim0 bus 0 target 0 lun 0
da0: <Ext Hard Disk > Fixed Direct Access SCSI-4 device
da0: 40.000MB/s transfers
da0: 381554MB (781422768 512 byte sectors: 255H 63S/T 48641C)
ugen5.2: <Prolific Technology Inc.> at usbus5
uplcom0: <Prolific Technology Inc. USB-Serial Controller D, class 0/0, rev 1.10/3.00, addr 2> on usbus5
ugen1.2: <BTC> at usbus1
uhub7: <Multimedia USB Keyboard> on usbus1
uhub7: 2 ports with 1 removable, bus powered
ugen1.3: <BTC> at usbus1
ukbd0: <Multimedia USB Keyboard> on usbus1
kbd2 at ukbd0
da1 at umass-sim0 bus 0 target 0 lun 1
da1: <Ext Hard Disk > Fixed Direct Access SCSI-4 device
da1: 40.000MB/s transfers
da1: 381554MB (781422768 512 byte sectors: 255H 63S/T 48641C)
GEOM_MIRROR: Force device gm0 start due to timeout.
GEOM_MIRROR: Device mirror/gm0 launched (1/2).
Trying to mount root from ufs:/dev/mirror/gm0s1a

[the second disk da1 in the gmirror is probed last and starts a little
later, but is in time for the mirror to operate normally just after the
system commences with a (1/2) forced launch]
---------------------------------------------------------------------------

Phillip Musumeci

unread,
Sep 24, 2009, 11:15:47 PM9/24/09
to

Hi,

SYSTEM is: FreeBSD 9.0-CURRENT system csup-ed and rebuilt Friday Sep 25
2009 (problem also noticed in 8-BETA2); ports csup-ed same day.

PROBLEM: a rebuild of libX11-1.2.1_1,1 is broken by macro definitions
provided in files belonging to smpeg-0.4.4_8 (one such file is
/usr/local/share/aclocal/smpeg.m4). Below is a fragment of the messages
before failing with an update via portmaster.

FIXED elsewhere??? The google search
http://www.google.com/search?hl=en&q=fixed+underquoted+definition+of+AM_PATH_SMPEG
suggests that this was fixed in smpeg-0.4.5 but our ports system seems
to only have a version 0.4.4. As I can download a prebuilt
libX11-1.2.1, how are people working around this (or is there an
alternative macro set)?

Thanks,
phillip

===> libX11-1.2.1_1,1 depends on file: /usr/local/bin/automake-1.10 - found
===> libX11-1.2.1_1,1 depends on file: /usr/local/bin/autoconf-2.62 - found
===> libX11-1.2.1_1,1 depends on package: libtool>=2.2 - found
===> libX11-1.2.1_1,1 depends on executable: pkg-config - found
===> Configuring for libX11-1.2.1_1,1
/usr/local/share/aclocal/smpeg.m4:13: warning: underquoted definition of AM_PATH_SMPEG
/usr/local/share/aclocal/smpeg.m4:13: run info '(automake)Extending aclocal'
/usr/local/share/aclocal/smpeg.m4:13: or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
configure.ac:22: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works, ...):
suspicious cache-id, must contain _cv_ to be cached
../../lib/autoconf/general.m4:1973: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:1993: AC_CACHE_CHECK is expanded from...
/usr/local/share/aclocal/libtool15.m4:615: AC_LIBTOOL_COMPILER_OPTION is
expanded from...
/usr/local/share/aclocal/libtool15.m4:4815: AC_LIBTOOL_PROG_COMPILER_PIC
is expanded from...
/usr/local/share/aclocal/libtool15.m4:2651: _LT_AC_LANG_C_CONFIG is
expanded from...

--
Phillip Musumeci

0 new messages