From owner-freebsd-current@FreeBSD.ORG Thu Oct 4 19:06:38 2007 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8A82916A419 for ; Thu, 4 Oct 2007 19:06:38 +0000 (UTC) (envelope-from johan@stromnet.se) Received: from av9-2-sn2.hy.skanova.net (av9-2-sn2.hy.skanova.net [81.228.8.180]) by mx1.freebsd.org (Postfix) with ESMTP id A7E3F13C480 for ; Thu, 4 Oct 2007 19:06:37 +0000 (UTC) (envelope-from johan@stromnet.se) Received: by av9-2-sn2.hy.skanova.net (Postfix, from userid 502) id BF75238285; Thu, 4 Oct 2007 20:37:54 +0200 (CEST) Received: from smtp4-1-sn2.hy.skanova.net (smtp4-1-sn2.hy.skanova.net [81.228.8.92]) by av9-2-sn2.hy.skanova.net (Postfix) with ESMTP id A500938179 for ; Thu, 4 Oct 2007 20:37:54 +0200 (CEST) Received: from phomca.stromnet.se (90-224-172-102-no129.tbcn.telia.com [90.224.172.102]) by smtp4-1-sn2.hy.skanova.net (Postfix) with ESMTP id 8340137E49 for ; Thu, 4 Oct 2007 20:37:54 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by phomca.stromnet.se (Postfix) with ESMTP id 36F60BB04 for ; Thu, 4 Oct 2007 20:37:54 +0200 (CEST) X-Virus-Scanned: amavisd-new at stromnet.se Received: from phomca.stromnet.se ([127.0.0.1]) by localhost (phomca.stromnet.se [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NLVORCGX7UJ5 for ; Thu, 4 Oct 2007 20:37:47 +0200 (CEST) Received: from [IPv6:2001:16d8:ff20:1:217:f2ff:fef0:d6b7] (unknown [IPv6:2001:16d8:ff20:1:217:f2ff:fef0:d6b7]) by phomca.stromnet.se (Postfix) with ESMTP id 57325BAFE for ; Thu, 4 Oct 2007 20:37:47 +0200 (CEST) Mime-Version: 1.0 (Apple Message framework v752.3) Content-Transfer-Encoding: quoted-printable Message-Id: <276FC939-A072-443F-B65E-28D5F8A21C9F@stromnet.se> Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed To: freebsd-current@freebsd.org From: =?ISO-8859-1?Q?Johan_Str=F6m?= Date: Thu, 4 Oct 2007 20:37:17 +0200 X-Mailer: Apple Mail (2.752.3) Subject: Disks slow X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Oct 2007 19:06:38 -0000 Hi! Im experimenting with a new box, a Supermicro based dual quadcore =20 xeon with 4 gigs of mem and 4 SATA 500GB disks on a 3Ware 9550SXU in =20 one big RAID10. Running -CURRENT from a few days back, I was copying files between =20 two partitions (same logical disc), and it was realy slow.. I did some tests with sysbench: sysbench --test=3Dfileio --file-num=3D100000 --file-total-size=3D2000M = --=20 file-test-mode=3Dseqrewr prepare (creating 100000 files, 20Kb each, 1999Mb total) During the prepare i saw values much like this all the time when =20 doing top -mio: last pid: 7394; load averages: 0.02, 0.05, =20 0.01 =20= up 0+02:28:29 20:25:24 9 processes: 1 running, 8 sleeping CPU states: 0.0% user, 0.0% nice, 0.1% system, 0.1% interrupt, =20 99.7% idle Mem: 13M Active, 1299M Inact, 509M Wired, 212K Cache, 214M Buf, 2120M =20= Free Swap: 8192M Total, 8192M Free PID USERNAME VCSW IVCSW READ WRITE FAULT TOTAL PERCENT =20 COMMAND 6787 root 148 0 0 185 0 185 100.00% sysbench I did the exact same thing on a singel amd64 running freebsd-6.2-=20 i386, with two sata disks in raid1 on a Megaraid card, doing a lot of =20= other things at the same time.. with this results: last pid: 30497; load averages: 0.16, 0.18, =20 0.18 =20= up 25+03:42:12 20:28:42 136 processes: 1 running, 134 sleeping, 1 zombie CPU states: 1.1% user, 0.0% nice, 3.8% system, 2.3% interrupt, =20 92.9% idle Mem: 401M Active, 342M Inact, 200M Wired, 51M Cache, 111M Buf, 1672K =20 Free Swap: 2048M Total, 9608K Used, 2038M Free PID USERNAME VCSW IVCSW READ WRITE FAULT TOTAL PERCENT =20 COMMAND 28995 root 2261 15 0 2720 0 2720 100.00% =20 sysbench Is it just me or is -CURRENT very slow on my box? :) its GENERIC but =20 without any INVARIANTS or WITNESS. Dmesg from the first box: Copyright (c) 1992-2007 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights =20 reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 7.0-CURRENT #1: Tue Oct 2 23:37:18 UTC 2007 root@sm.stromnet.se:/usr/obj/usr/src/sys/SUPERMICRO Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel(R) Xeon(R) CPU E5335 @ 2.00GHz (2000.08-MHz K8-=20 class CPU) Origin =3D "GenuineIntel" Id =3D 0x6f7 Stepping =3D 7 =20 Features=3D0xbfebfbff =20 Features2=3D0x4e33d AMD Features=3D0x20100800 AMD Features2=3D0x1 Cores per package: 4 usable memory =3D 4281593856 (4083 MB) avail memory =3D 4120215552 (3929 MB) ACPI APIC Table: FreeBSD/SMP: Multiprocessor System Detected: 8 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 cpu2 (AP): APIC ID: 2 cpu3 (AP): APIC ID: 3 cpu4 (AP): APIC ID: 4 cpu5 (AP): APIC ID: 5 cpu6 (AP): APIC ID: 6 cpu7 (AP): APIC ID: 7 ioapic0 irqs 0-23 on motherboard ioapic1 irqs 24-47 on motherboard kbd1 at kbdmux0 ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, =20 RF5413) acpi0: on motherboard acpi0: [ITHREAD] acpi0: Power Button (fixed) Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0 cpu0: on acpi0 p4tcc0: on cpu0 cpu1: on acpi0 p4tcc1: on cpu1 cpu2: on acpi0 p4tcc2: on cpu2 cpu3: on acpi0 p4tcc3: on cpu3 cpu4: on acpi0 p4tcc4: on cpu4 cpu5: on acpi0 p4tcc5: on cpu5 cpu6: on acpi0 p4tcc6: on cpu6 cpu7: on acpi0 p4tcc7: on cpu7 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pcib1: at device 2.0 on pci0 pci1: on pcib1 pcib2: irq 16 at device 0.0 on pci1 pci2: on pcib2 pcib3: irq 16 at device 0.0 on pci2 pci3: on pcib3 pcib4: irq 18 at device 2.0 on pci2 pci4: on pcib4 em0: port =20 0x2000-0x201f mem 0xdf200000-0xdf21ffff irq 18 at device 0.0 on pci4 em0: Ethernet address: 00:30:48:91:7f:38 em0: [FILTER] em1: port =20 0x2020-0x203f mem 0xdf220000-0xdf23ffff irq 19 at device 0.1 on pci4 em1: Ethernet address: 00:30:48:91:7f:39 em1: [FILTER] pcib5: at device 0.3 on pci1 pci5: on pcib5 3ware device driver for 9000 series storage controllers, version: =20 3.70.03.007 twa0: <3ware 9000 series Storage Controller> port 0x3000-0x303f mem =20 0xdc000000-0xddffffff,0xdf300000-0xdf300fff irq 24 at device 1.0 on pci5 twa0: [GIANT-LOCKED] twa0: [ITHREAD] twa0: INFO: (0x04: 0x0053): Battery capacity test is overdue: twa0: INFO: (0x15: 0x1300): Controller details:: Model 9550SXU-4LP, 4 =20= ports, Firmware FE9X 3.08.02.005, BIOS BE9X 3.08.00.002 pci0: at device 8.0 (no driver attached) pcib6: irq 17 at device 28.0 on pci0 pci6: on pcib6 uhci0: port 0x1800-0x181f irq 17 at =20 device 29.0 on pci0 uhci0: [GIANT-LOCKED] uhci0: [ITHREAD] usb0: on uhci0 usb0: USB revision 1.0 uhub0: on usb0 uhub0: 2 ports with 2 removable, self powered uhci1: port 0x1820-0x183f irq 19 at =20 device 29.1 on pci0 uhci1: [GIANT-LOCKED] uhci1: [ITHREAD] usb1: on uhci1 usb1: USB revision 1.0 uhub1: on usb1 uhub1: 2 ports with 2 removable, self powered uhci2: port 0x1840-0x185f irq 18 at =20 device 29.2 on pci0 uhci2: [GIANT-LOCKED] uhci2: [ITHREAD] usb2: on uhci2 usb2: USB revision 1.0 uhub2: on usb2 uhub2: 2 ports with 2 removable, self powered uhci3: port 0x1860-0x187f irq 16 at =20 device 29.3 on pci0 uhci3: [GIANT-LOCKED] uhci3: [ITHREAD] usb3: on uhci3 usb3: USB revision 1.0 uhub3: on usb3 uhub3: 2 ports with 2 removable, self powered ehci0: mem 0xdf600000-0xdf6003ff =20 irq 17 at device 29.7 on pci0 ehci0: [GIANT-LOCKED] ehci0: [ITHREAD] usb4: EHCI version 1.0 usb4: companion controllers, 2 ports each: usb0 usb1 usb2 usb3 usb4: on ehci0 usb4: USB revision 2.0 uhub4: on usb4 uhub4: 8 ports with 8 removable, self powered umass0: =20 on uhub4 uhid0: =20 on uhub4 ukbd0: =20 on uhub4 kbd2 at ukbd0 pcib7: at device 30.0 on pci0 pci7: on pcib7 vgapci0: port 0x4000-0x407f mem =20 0xde000000-0xdeffffff,0xdf000000-0xdf03ffff at device 1.0 on pci7 isab0: at device 31.0 on pci0 isa0: on isab0 atapci0: port =20 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x1880-0x188f at device 31.1 on pci0 ata0: on atapci0 ata0: [ITHREAD] ata1: on atapci0 ata1: [ITHREAD] pci0: at device 31.3 (no driver attached) acpi_button0: on acpi0 atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] atkbd0: [ITHREAD] sio0: configured irq 4 not in bitmap of probed irqs 0 sio0: port may not be enabled sio0: configured irq 4 not in bitmap of probed irqs 0 sio0: port may not be enabled sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 on acpi0 sio0: type 16550A sio0: [FILTER] sio1: configured irq 3 not in bitmap of probed irqs 0 sio1: port may not be enabled sio1: configured irq 3 not in bitmap of probed irqs 0 sio1: port may not be enabled sio1: <16550A-compatible COM port> port 0x2f8-0x2ff irq 3 flags 0x10 =20 on acpi0 sio1: type 16550A, console sio1: [FILTER] fdc0: port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on =20= acpi0 fdc0: [FILTER] ppc0: port 0x378-0x37f,0x778-0x77f irq 7 drq 3 on acpi0 ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/9 bytes threshold ppbus0: on ppc0 plip0: on ppbus0 lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 ppc0: [GIANT-LOCKED] ppc0: [ITHREAD] ipmi0: on isa0 ipmi0: KCS mode found at io 0xca2 alignment 0x1 on isa orm0: at iomem 0xc0000-0xc7fff,0xc8000-0xc9fff,=20 0xca000-0xcafff on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=3D0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on =20 isa0 Timecounters tick every 1.000 msec acd0: DVDR at ata0-slave UDMA33 ipmi0: IPMI device rev. 1, firmware rev. 1.2, version 2.0 ipmi0: Number of channels 8 ipmi0: Attached watchdog da0 at twa0 bus 0 target 0 lun 0 da0: Fixed Direct Access SCSI-5 device da0: 100.000MB/s transfers da0: 953654MB (1953083392 512 byte sectors: 255H 63S/T 121573C) SMP: AP CPU #3 Launched! SMP: AP CPU #1 Launched! SMP: AP CPU #2 Launched! SMP: AP CPU #6 Launched! SMP: AP CPU #5 Launched! SMP: AP CPU #4 Launched! SMP: AP CPU #7 Launched! da1 at umass-sim0 bus 0 target 0 lun 0 da1: Removable Direct Access SCSI-3 device da1: 40.000MB/s transfers da1: Attempt to query device size failed: NOT READY, Medium not present Trying to mount root from ufs:/dev/da0s1a And on the other box, just for reference.. Copyright (c) 1992-2007 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights =20 reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 6.2-RELEASE-p6 #0: Fri Jul 27 15:47:50 UTC 2007 root@phomca.stromnet.se:/usr/obj/usr/src/sys/PHOMCA WARNING: debug.mpsafenet forced to 0 as ipsec requires Giant WARNING: MPSAFE network stack disabled, expect reduced performance. ACPI APIC Table: Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: AMD Athlon(tm) 64 Processor 3200+ (2009.79-MHz 686-class CPU) Origin =3D "AuthenticAMD" Id =3D 0x20ff0 Stepping =3D 0 =20 Features=3D0x78bfbff Features2=3D0x1 AMD Features=3D0xe2500800 AMD Features2=3D0x1 real memory =3D 1073676288 (1023 MB) avail memory =3D 1041670144 (993 MB) ioapic0 irqs 0-23 on motherboard kbd1 at kbdmux0 acpi0: on motherboard acpi0: Power Button (fixed) Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0 cpu0: on acpi0 acpi_button0: on acpi0 pcib0: port 0xcf8-0xcff,0xcf0-0xcf3 on acpi0 pci0: on pcib0 agp0: mem 0xf6000000-0xf7ffffff =20 at device 0.0 on pci0 isab0: at device 1.0 on pci0 isa0: on isab0 pci0: at device 1.1 (no driver attached) ohci0: mem 0xfc004000-0xfc004fff irq =20 20 at device 2.0 on pci0 ohci0: [GIANT-LOCKED] usb0: OHCI version 1.0, legacy support usb0: SMM does not respond, resetting usb0: on ohci0 usb0: USB revision 1.0 uhub0: nVidia OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 4 ports with 4 removable, self powered ohci1: mem 0xfc005000-0xfc005fff irq =20 21 at device 2.1 on pci0 ohci1: [GIANT-LOCKED] usb1: OHCI version 1.0, legacy support usb1: SMM does not respond, resetting usb1: on ohci1 usb1: USB revision 1.0 uhub1: nVidia OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 4 ports with 4 removable, self powered ehci0: mem =20 0xfc000000-0xfc0000ff irq 22 at device 2.2 on pci0 ehci0: [GIANT-LOCKED] usb2: EHCI version 1.0 usb2: companion controllers, 4 ports each: usb0 usb1 usb2: on ehci0 usb2: USB revision 2.0 uhub2: nVidia EHCI root hub, class 9/0, rev 2.00/1.00, addr 1 uhub2: 8 ports with 8 removable, self powered pci0: at device 6.0 (no driver attached) atapci0: port =20 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xf000-0xf00f at device 8.0 on pci0 ata0: on atapci0 ata1: on atapci0 atapci1: port =20 0x9f0-0x9f7,0xbf0-0xbf3,0x970-0x977,0xb70-0xb73,0xdc00-0xdc0f,=20 0xe000-0xe07f irq 21 at device 10.0 on pci0 ata2: on atapci1 ata3: on atapci1 pcib1: at device 11.0 on pci0 pci1: on pcib1 pcib2: at device 14.0 on pci0 pci2: on pcib2 amr0: mem 0xfb000000-0xfb00ffff irq 16 at =20 device 8.0 on pci2 amr0: delete logical drives supported by controller amr0: Firmware 713S, BIOS G121, 64MB RAM pci2: at device 10.0 (no driver attached) skc0: port 0xa400-0xa4ff mem =20 0xfa000000-0xfa003fff irq 19 at device 11.0 on pci2 skc0: Marvell Yukon Lite Gigabit Ethernet rev. (0x9) sk0: on skc0 sk0: Ethernet address: 00:14:85:21:c4:44 miibus0: on sk0 e1000phy0: on miibus0 e1000phy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, =20 1000baseTX-FDX, auto skc0: [GIANT-LOCKED] fdc0: port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on =20= acpi0 fdc0: [FAST] sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 =20 on acpi0 sio0: type 16550A sio1: <16550A-compatible COM port> port 0x2f8-0x2ff irq 3 on acpi0 sio1: type 16550A ppc0: port 0x378-0x37f,0x778-0x77b irq 7 =20 drq 3 on acpi0 ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/16 bytes threshold ppbus0: on ppc0 plip0: on ppbus0 lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] pmtimer0 on isa0 orm0: at iomem 0xc0000-0xc7fff on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=3D0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on =20 isa0 Timecounter "TSC" frequency 2009790340 Hz quality 800 Timecounters tick every 1.000 msec IPsec: Initialized Security Association Processing. amr0: delete logical drives supported by controller amrd0: on amr0 amrd0: 286183MB (586102784 sectors) RAID 1 (degraded) Trying to mount root from ufs:/dev/amrd0s1a This machine is going into production very soon, it would be nice to =20 know that Fbsd-7 worked good on it.. I'll probably run 6.2 on it =20 until 7 is stable though, and do an upgrade later (altough i would =20 love to have 7 and zfs from the beginning!.. But I probably dont dare =20= to hehe). I'll probably install 6.2 on it soon and do the same test there, but =20 just tought I would ask here first. Well, any clues are welcome, and if I can be of assistance to debug =20 this I'll be glad to. Thanks :) -- Johan Str=F6m Stromnet johan@stromnet.se http://www.stromnet.se/