Performance of 4.x vs 5.x (Re: Lifetime of FreeBSD branches)

Matthias Buelow mkb at
Tue May 24 20:45:19 PDT 2005

Kris Kennaway wrote:

> OK, thanks for confirming.  The next step is for you to try 6.0 with
> debug.mpsafevfs=1 on a machine that exhibits the problem under 5.4, so
> we can test whether the problem is caused by VFS being under Giant on
> 5.4.

I have now built 6.0-current from yesterday's source, verified that 
debug.mpsafevfs=1, and unpacked the firefox source.
Unfortunately your hypothesis didn't hold.  In fact, it's a lot worse 
than on 5.4-STABLE.  Plus, even operations like bulk-rm'ing the unpacked 
firefox tree make X11 crawl and stutter, something that didn't have any 
observable effect on 5.4-STABLE.  Maybe the dmesg output is of some help:

Copyright (c) 1992-2005 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.0-CURRENT #0: Wed May 25 05:00:48 CEST 2005
     root at
WARNING: WITNESS option enabled, expect reduced performance.
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Pentium(R) 4 CPU 3.00GHz (2992.52-MHz 686-class CPU)
   Origin = "GenuineIntel"  Id = 0xf34  Stepping = 4
   Hyperthreading: 2 logical CPUs
real memory  = 1072201728 (1022 MB)
avail memory = 1040392192 (992 MB)
ACPI APIC Table: <DELL   4700   >
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
  cpu0 (BSP): APIC ID:  0
  cpu1 (AP): APIC ID:  1
ioapic0: Changing APIC ID to 8
ioapic0 <Version 2.0> irqs 0-23 on motherboard
lapic0: Forcing LINT1 to edge trigger
npx0: [FAST]
npx0: <math processor> on motherboard
npx0: INT 16 interface
acpi0: <DELL 4700   > on motherboard
acpi0: Power Button (fixed)
pci_link0: <ACPI PCI Link LNKA> irq 11 on acpi0
pci_link1: <ACPI PCI Link LNKB> irq 5 on acpi0
pci_link2: <ACPI PCI Link LNKC> irq 5 on acpi0
pci_link3: <ACPI PCI Link LNKD> on acpi0
pci_link4: <ACPI PCI Link LNKE> irq 9 on acpi0
pci_link5: <ACPI PCI Link LNKF> irq 10 on acpi0
pci_link6: <ACPI PCI Link LNKG> irq 9 on acpi0
pci_link7: <ACPI PCI Link LNKH> irq 3 on acpi0
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
cpu1: <ACPI CPU> on acpi0
acpi_button0: <Power Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pcib1: <ACPI PCI-PCI bridge> irq 16 at device 1.0 on pci0
pci1: <ACPI PCI bus> on pcib1
pci1: <display, VGA> at device 0.0 (no driver attached)
pci1: <display> at device 0.1 (no driver attached)
pcib2: <ACPI PCI-PCI bridge> irq 16 at device 28.0 on pci0
pci2: <ACPI PCI bus> on pcib2
uhci0: <Intel 82801FB/FR/FW/FRW (ICH6) USB controller USB-A> port 
0xff80-0xff9f irq 21 at device 29.0 on pci0
usb0: <Intel 82801FB/FR/FW/FRW (ICH6) 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 82801FB/FR/FW/FRW (ICH6) USB controller USB-B> port 
0xff60-0xff7f irq 22 at device 29.1 on pci0
usb1: <Intel 82801FB/FR/FW/FRW (ICH6) 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 82801FB/FR/FW/FRW (ICH6) USB controller USB-C> port 
0xff40-0xff5f irq 18 at device 29.2 on pci0
usb2: <Intel 82801FB/FR/FW/FRW (ICH6) 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 82801FB/FR/FW/FRW (ICH6) USB controller USB-D> port 
0xff20-0xff3f irq 23 at device 29.3 on pci0
usb3: <Intel 82801FB/FR/FW/FRW (ICH6) 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: <EHCI (generic) USB 2.0 controller> mem 0xffa80800-0xffa80bff irq 
21 at device 29.7 on pci0
usb4: EHCI version 1.0
usb4: companion controllers, 2 ports each: usb0 usb1 usb2 usb3
usb4: <EHCI (generic) 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
pcib3: <ACPI PCI-PCI bridge> at device 30.0 on pci0
pci3: <ACPI PCI bus> on pcib3
wi0: <Intersil Prism2.5> mem 0xd8000000-0xd8000fff irq 17 at device 1.0 
on pci3
wi0: using RF:PRISM2.5 MAC:ISL3874A(Mini-PCI)
wi0: Intersil Firmware: Primary (1.1.0), Station (1.4.9)
wi0: Ethernet address: 00:0d:54:aa:62:12
fxp0: <Intel 82562EZ (ICH6)> port 0xccc0-0xccff mem 
0xdfbff000-0xdfbfffff irq 20 at device 8.0 on pci3
miibus0: <MII bus> on fxp0
inphy0: <i82562ET 10/100 media interface> on miibus0
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fxp0: Ethernet address: 00:11:11:65:21:d4
pci0: <multimedia, audio> at device 30.2 (no driver attached)
isab0: <PCI-ISA bridge> at device 31.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel ICH6 UDMA100 controller> port 
0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xffa0-0xffaf irq 16 at device 31.1 
on pci0
ata0: <ATA channel 0> on atapci0
ata1: <ATA channel 1> on atapci0
atapci1: <Intel ICH6 SATA150 controller> port 
irq 20 at device 31.2 on pci0
atapci1: failed to enable memory mapping!
ata2: <ATA channel 0> on atapci1
ata3: <ATA channel 1> on atapci1
pci0: <serial bus, SMBus> at device 31.3 (no driver attached)
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
ppc0: <ECP parallel printer port> port 0x378-0x37f,0x778-0x77f irq 7 on 
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/8 bytes threshold
ppbus0: <Parallel port bus> on ppc0
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on 
sio0: type 16550A
pmtimer0 on isa0
orm0: <ISA Option ROMs> at iomem 0xc0000-0xce7ff,0xce800-0xcffff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
ums0: vendor 0x413c product 0x3010, rev 2.00/2.20, addr 2, iclass 3/1
ums0: 3 buttons and Z dir.
Timecounters tick every 1.000 msec
acd0: DVDROM <SAMSUNG DVD-ROM SD-616E/F501> at ata0-master UDMA33
acd1: CDRW <HL-DT-ST GCE-8483B/B105> at ata0-slave UDMA33
ad4: 152627MB <Seagate ST3160023AS 8.05> at ata2-master SATA150
ATA PseudoRAID loaded
lapic1: Forcing LINT1 to edge trigger
SMP: AP CPU #1 Launched!
Trying to mount root from ufs:/dev/ad4s3a
pcm0: <Intel ICH6 (82801FB)> port 0xec00-0xecff,0xe8c0-0xe8ff mem 
0xdffffe00-0xdfffffff,0xdffffd00-0xdffffdff irq 23 at device 30.2 on pci0
pcm0: <Analog Devices AD1980 AC97 Codec>
ieee80211_load_module: load the wlan_wep module by hand for now.
wi0: link state changed to DOWN

Btw., vmstat -i shows quite high apic timer interrupt rates, I guess 
this is normal for 6.0?

interrupt                          total       rate
irq1: atkbd0                        1856          1
irq13: npx0                            1          0
irq14: ata0                           94          0
irq17: wi0                           506          0
irq20: fxp0 atapci1                73527         72
irq21: uhci0 ehci0                     1          0
irq22: uhci1                        4876          4
irq23: pcm0 uhci3                   1008          0
lapic0: timer                    2014791       1996
lapic1: timer                    2014913       1996
Total                            4111573       4074

I'll keep 6.0 on the machine for a couple days but then I'll have to 
revert to 5.4 because I need the machine as a workstation.


More information about the freebsd-stable mailing list