Performance issue amd64

O. Hartmann ohartman at
Thu Aug 10 07:24:34 UTC 2006

Hello out there.

I ran into some weirdness by changing harddrives in FreeBSD 
6.1-STABLE/AMD64 and I do not know exactly whether the problem ist up to 
the drives, ar0 (RAID 0) or FreeBSD 6.1-STABLE itselfs.

My home's computer system is a FreeBSD 6.1-STABLE/AMD64 box, clean 64 
Bit without 32 Bit compat enabled. Hardware is a ASUS A8N32-SLI Deluxe 
mainboard, memory 2GB DDR400-ECC Infineon RAM, CPU Athlon64 3500+ with 
the older 'Newcastle' cor, so single core and only 512 KB L2 cache. 
Harddrives are two Hitachi T7K250  (HDT722525DLA380), configured as a 
RAID 0 via the nVidia nForce4 chipset RAID facility with Stripesize of 
64k, as recommended.

My lab's computer is an older Intel P4 based machine, mobo ASUS P4P800 
with 2GB DDR400 memory, Intel P4 3.0 GHz CPU (see dmesg attached), two 
120 GB PATA/UDMA100 drives connected to the same controller as master 
and slave:
ad0: 114473MB <WDC WD1200BB-00CAA1 17.07W17> at ata0-master UDMA100
ad1: 114473MB <WDC WD1200BB-00CAA1 17.07W17> at ata0-slave UDMA100

Well, On both boxes I use nearly the same applications and they are both 
nearly identically setup apart from hardware related issues. They have 
the same OS basis, recompile FreeBSD 6.1-STABLE at least three times a 
week for testing purposes - and that's why I got puzzled about the 

Before I swapped the harddrives of my AMD64 box, this box was equpted 
with a SAMSUNG SP2004C 200GB SATA II HD and a Maxtor 6B200M0 200GB SATA 
I HD, configured as RAID 0 on the same controller.
This amd64 box took about 80 - 90 minutes compiling complete world and 
was responsitive when opening Firefox, Thunderbird or doing other 
things, this changed now dramatically. Compiling world takes now more 
than a 100 minutes, Firefox and/or Thunderbird opens much slower than 
before and much slower as compared to the i386 box(!).

my whole impression of comparing both boxes is that the i386 box as 
described above eith the technically more worse HD configuration and the 
older hardware "seems" to outperform the AMD64 box, especially with a 

Ok guys, I know just by simple describing the 'felt' speed of a box 
doesn't make any sense, but I can not provide performance tests at this 
moment, both boxes are in use.
But I can asure you, that working in the morning with the one (i386) box 
and at the evening with the other (amd64) gives me a little bit of 
sensibility beeing aware of those performance issue.

I suspect the Hitachi drives for that performance drop, although I 
switched them into SATA II mode and disabled accoustic mode and other 
funny desktop stuff. Are there any known issues with nForce4 chipsets 
and T7K20 Hitachi drives?

I will provide some tests, if I can do them without endangering my 
systems's stability and I would appreciate any hints or tips for that 

Thanks a lot,

-------------- next part --------------
Copyright (c) 1992-2006 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 6.1-STABLE #53: Wed Aug  9 10:02:40 CEST 2006
    root at
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Pentium(R) 4 CPU 3.00GHz (3006.83-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0xf29  Stepping = 9
  Logical CPUs per core: 2
real memory  = 2146631680 (2047 MB)
avail memory = 2095493120 (1998 MB)
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP): APIC ID:  1
ioapic0 <Version 2.0> irqs 0-23 on motherboard
netsmb_dev: loaded
kbd1 at kbdmux0
acpi0: <A M I OEMRSDT> on motherboard
acpi0: Power Button (fixed)
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0
cpu0: <ACPI CPU> on acpi0
p4tcc0: <CPU Frequency Thermal Control> on cpu0
cpu1: <ACPI CPU> on acpi0
p4tcc1: <CPU Frequency Thermal Control> on cpu1
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
agp0: <Intel 82865 host to AGP bridge> mem 0xf8000000-0xfbffffff at device 0.0 on pci0
pcib1: <ACPI PCI-PCI bridge> at device 1.0 on pci0
pci1: <ACPI PCI bus> on pcib1
pci1: <display, VGA> at device 0.0 (no driver attached)
uhci0: <Intel 82801EB (ICH5) USB controller USB-A> port 0xef00-0xef1f irq 16 at device 29.0 on pci0
usb0: <Intel 82801EB (ICH5) USB controller USB-A> on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1: <Intel 82801EB (ICH5) USB controller USB-B> port 0xef20-0xef3f irq 19 at device 29.1 on pci0
usb1: <Intel 82801EB (ICH5) USB controller USB-B> on uhci1
usb1: USB revision 1.0
uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2: <Intel 82801EB (ICH5) USB controller USB-C> port 0xef40-0xef5f irq 18 at device 29.2 on pci0
usb2: <Intel 82801EB (ICH5) USB controller USB-C> on uhci2
usb2: USB revision 1.0
uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
uhci3: <Intel 82801EB (ICH5) USB controller USB-D> port 0xef80-0xef9f irq 16 at device 29.3 on pci0
usb3: <Intel 82801EB (ICH5) USB controller USB-D> on uhci3
usb3: USB revision 1.0
uhub3: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
ehci0: <Intel 82801EB/R (ICH5) USB 2.0 controller> mem 0xfebffc00-0xfebfffff irq 23 at device 29.7 on pci0
usb4: EHCI version 1.0
usb4: companion controllers, 2 ports each: usb0 usb1 usb2 usb3
usb4: <Intel 82801EB/R (ICH5) USB 2.0 controller> on ehci0
usb4: USB revision 2.0
uhub4: Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub4: 8 ports with 8 removable, self powered
pcib2: <ACPI PCI-PCI bridge> at device 30.0 on pci0
pci2: <ACPI PCI bus> on pcib2
skc0: <3Com 3C940 Gigabit Ethernet> port 0xd800-0xd8ff mem 0xfeafc000-0xfeafffff irq 22 at device 5.0 on pci2
skc0: 3Com Gigabit LOM (3C940) rev. (0x1)
sk0: <Marvell Semiconductor, Inc. Yukon> on skc0
sk0: Ethernet address: 00:0c:6e:de:9b:52
miibus0: <MII bus> on sk0
e1000phy0: <Marvell 88E1000 Gigabit PHY> on miibus0
e1000phy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX-FDX, auto
isab0: <PCI-ISA bridge> at device 31.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel ICH5 UDMA100 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xfc00-0xfc0f at device 31.1 on pci0
ata0: <ATA channel 0> on atapci0
ata1: <ATA channel 1> on atapci0
ichsmb0: <Intel 82801EB (ICH5) SMBus controller> port 0x400-0x41f irq 17 at device 31.3 on pci0
ichsmb0: [GIANT-LOCKED]
smbus0: <System Management Bus> on ichsmb0
smb0: <SMBus generic I/O> on smbus0
pcm0: <Intel ICH5 (82801EB)> port 0xe800-0xe8ff,0xee80-0xeebf mem 0xfebff800-0xfebff9ff,0xfebff400-0xfebff4ff irq 17 at device 31.5 on pci0
pcm0: <Analog Devices AD1985 AC97 Codec>
acpi_button0: <Power Button> on acpi0
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model IntelliMouse, device ID 3
sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
sio0: type 16550A
sio1: <16550A-compatible COM port> port 0x2f8-0x2ff irq 3 on acpi0
sio1: type 16550A
fdc0: <floppy drive controller (FDE)> port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0
fdc0: [FAST]
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
orm0: <ISA Option ROM> at iomem 0xc0000-0xcafff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <8 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
fb0 at vga0
Timecounters tick every 1.200 msec
Fast IPsec: Initialized Security Association Processing.
ad0: 114473MB <WDC WD1200BB-00CAA1 17.07W17> at ata0-master UDMA100
ad1: 114473MB <WDC WD1200BB-00CAA1 17.07W17> at ata0-slave UDMA100
acd0: CDRW <ATAPI CD-RW 52X32/M.AD> at ata1-master UDMA33
SMP: AP CPU #1 Launched!
cd0 at ata1 bus 0 target 0 lun 0
cd0: <ATAPI CD-RW 52X32 M.AD> Removable CD-ROM SCSI-0 device 
cd0: 33.000MB/s transfers
cd0: Attempt to query device size failed: NOT READY, Medium not present - tray closed
Trying to mount root from ufs:/dev/ad0s1a
GEOM_ELI: Device ad0s1b.eli created.
GEOM_ELI:     Cipher: AES
GEOM_ELI: Key length: 256
GEOM_ELI:     Crypto: software
GEOM_ELI: Device ad1s1b.eli created.
GEOM_ELI:     Cipher: AES
GEOM_ELI: Key length: 256
GEOM_ELI:     Crypto: software
pf: started
altq: started
drm0: <ATI Rage 128 Pro Ultra TF (AGP)> port 0xc000-0xc0ff mem 0xf0000000-0xf3ffffff,0xfe9fc000-0xfe9fffff irq 16 at device 0.0 on pci1
info: [drm] AGP at 0xf8000000 64MB
info: [drm] Initialized r128 2.5.0 20030725

More information about the freebsd-questions mailing list