Speeding up cpu-time accounting (rerun)
reuf_m at hotmail.com
reuf_m at hotmail.com
Mon Jan 23 13:59:26 PST 2006
---------------------
WITHOUT patch !
---------------------
BYTE UNIX Benchmarks (Version 4.1.0)
System -- amd64.home.org
Start Benchmark Run: Mon Jan 23 20:42:46 CET 2006
1 interactive users.
8:42PM up 10:52, 0 users, load averages: 0.09, 0.32, 0.22
-r-xr-xr-x 1 root wheel 110016 Jan 16 04:14 /bin/sh
/bin/sh: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD),
dynamically linked (uses shared libs), stripped
/dev/ad4s1f 30462636 9590954 18434672 34% /usr
Pipe-based Context Switching 74486.6 lps (10.0 secs, 10
samples)
INDEX VALUES
TEST BASELINE RESULT INDEX
Pipe-based Context Switching 4000.0 74486.6 186.2
=========
FINAL SCORE 186.2
-----------------
WITH patch
------------------
BYTE UNIX Benchmarks (Version 4.1.0)
System -- amd64.home.org
Start Benchmark Run: Mon Jan 23 21:39:20 CET 2006
1 interactive users.
9:39PM up 2 mins, 0 users, load averages: 0.48, 0.34, 0.15
-r-xr-xr-x 1 root wheel 110016 Jan 16 04:14 /bin/sh
/bin/sh: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD),
dynamically linked (uses shared libs), stripped
/dev/ad4s1f 30462636 9676890 18348736 35% /usr
Pipe-based Context Switching 228917.1 lps (10.0 secs, 10
samples)
INDEX VALUES
TEST BASELINE RESULT INDEX
Pipe-based Context Switching 4000.0 228917.1 572.3
=========
FINAL SCORE 572.3
===================================================================
/var/log/messages after booting:
.....
calcru: runtime went backwards from 8196122686 usec to 812 usec for pid
700 (usbd)
calcru: runtime went backwards from 4520 usec to 3819 usec for pid 56
(vnlru)
calcru: runtime went backwards from 5953 usec to 5372 usec for pid 54
(bufdaemon)
calcru: runtime went backwards from 8196122686 usec to 812 usec for pid
700 (usbd)
calcru: runtime went backwards from 4520 usec to 3819 usec for pid 56
(vnlru)
calcru: runtime went backwards from 5953 usec to 5372 usec for pid 54
(bufdaemon)
calcru: runtime went backwards from 594140172 usec to 594139363 usec for
pid 11 (idle: cpu1)
calcru: runtime went backwards from 8196122686 usec to 812 usec for pid
700 (usbd)
......
#pciconf -vl
none0 at pci0:0:0: class=0x058000 card=0x00000000 chip=0x005e10de rev=0xa3
hdr=0x00
vendor = 'NVIDIA Corporation'
device = 'nForce4 Memory Controller'
class = memory
isab0 at pci0:1:0: class=0x060100 card=0xcb8410de chip=0x005010de rev=0xa3
hdr=0x00
vendor = 'NVIDIA Corporation'
device = 'nForce4 PCI to ISA Bridge'
class = bridge
subclass = PCI-ISA
none1 at pci0:1:1: class=0x0c0500 card=0xcb8410de chip=0x005210de rev=0xa2
hdr=0x00
vendor = 'NVIDIA Corporation'
device = 'nForce4 SMBus'
class = serial bus
subclass = SMBus
ohci0 at pci0:2:0: class=0x0c0310 card=0xcb8410de chip=0x005a10de rev=0xa2
hdr=0x00
vendor = 'NVIDIA Corporation'
device = 'nForce4 USB Controller'
class = serial bus
subclass = USB
ehci0 at pci0:2:1: class=0x0c0320 card=0xcb8410de chip=0x005b10de rev=0xa3
hdr=0x00
vendor = 'NVIDIA Corporation'
device = 'nForce4 USB 2.0 Controller'
class = serial bus
subclass = USB
pcm0 at pci0:4:0: class=0x040100 card=0xcb8410de chip=0x005910de rev=0xa2
hdr=0x00
vendor = 'NVIDIA Corporation'
device = 'nForce4 AC'97 Audio Controller'
class = multimedia
subclass = audio
atapci0 at pci0:6:0: class=0x01018a card=0xcb8410de chip=0x005310de
rev=0xa2 hdr=0x00
vendor = 'NVIDIA Corporation'
device = 'nForce4 Parallel ATA Controller'
class = mass storage
subclass = ATA
atapci1 at pci0:7:0: class=0x010185 card=0xcb8410de chip=0x005410de
rev=0xa3 hdr=0x00
vendor = 'NVIDIA Corporation'
device = 'nForce4 Serial ATA Controller'
class = mass storage
subclass = ATA
atapci2 at pci0:8:0: class=0x010185 card=0xcb8410de chip=0x005510de
rev=0xa3 hdr=0x00
vendor = 'NVIDIA Corporation'
device = 'nForce4 Serial ATA Controller'
class = mass storage
subclass = ATA
pcib1 at pci0:9:0: class=0x060401 card=0x00000000 chip=0x005c10de rev=0xa2
hdr=0x01
vendor = 'NVIDIA Corporation'
device = 'nForce4 PCI Bridge'
class = bridge
subclass = PCI-PCI
nve0 at pci0:10:0: class=0x068000 card=0xcb8410de chip=0x005710de rev=0xa3
hdr=0x00
vendor = 'NVIDIA Corporation'
device = 'nForce4 Ethernet Controller'
class = bridge
pcib2 at pci0:11:0: class=0x060400 card=0x00000040 chip=0x005d10de
rev=0xa3 hdr=0x01
vendor = 'NVIDIA Corporation'
device = 'nForce4 PCI Express Bridge'
class = bridge
subclass = PCI-PCI
pcib3 at pci0:12:0: class=0x060400 card=0x00000040 chip=0x005d10de
rev=0xa3 hdr=0x01
vendor = 'NVIDIA Corporation'
device = 'nForce4 PCI Express Bridge'
class = bridge
subclass = PCI-PCI
pcib4 at pci0:13:0: class=0x060400 card=0x00000040 chip=0x005d10de
rev=0xa3 hdr=0x01
vendor = 'NVIDIA Corporation'
device = 'nForce4 PCI Express Bridge'
class = bridge
subclass = PCI-PCI
pcib5 at pci0:14:0: class=0x060400 card=0x00000040 chip=0x005d10de
rev=0xa3 hdr=0x01
vendor = 'NVIDIA Corporation'
device = 'nForce4 PCI Express Bridge'
class = bridge
subclass = PCI-PCI
hostb0 at pci0:24:0: class=0x060000 card=0x00000000 chip=0x11001022
rev=0x00 hdr=0x00
vendor = 'Advanced Micro Devices (AMD)'
device = 'Athlon 64 / Opteron HyperTransport Technology
Configuration'
class = bridge
subclass = HOST-PCI
hostb1 at pci0:24:1: class=0x060000 card=0x00000000 chip=0x11011022
rev=0x00 hdr=0x00
vendor = 'Advanced Micro Devices (AMD)'
device = 'Athlon 64 / Opteron Address Map'
class = bridge
subclass = HOST-PCI
hostb2 at pci0:24:2: class=0x060000 card=0x00000000 chip=0x11021022
rev=0x00 hdr=0x00
vendor = 'Advanced Micro Devices (AMD)'
device = 'Athlon 64 / Opteron DRAM Controller'
class = bridge
subclass = HOST-PCI
hostb3 at pci0:24:3: class=0x060000 card=0x00000000 chip=0x11031022
rev=0x00 hdr=0x00
vendor = 'Advanced Micro Devices (AMD)'
device = 'Athlon 64 / Opteron Miscellaneous Control'
class = bridge
subclass = HOST-PCI
skc0 at pci1:10:0: class=0x020000 card=0x100a15bd chip=0x432011ab rev=0x13
hdr=0x00
vendor = 'Marvell Semiconductor (Was: Galileo Technology Ltd)'
device = '88E8001/8003/8010 Gigabit Ethernet Controller with
Integrated PHY (copper)'
class = network
subclass = ethernet
nvidia0 at pci5:0:0: class=0x030000 card=0x0000196d chip=0x014110de
rev=0xa2 hdr=0x00
vendor = 'NVIDIA Corporation'
device = 'NV43 NVIDIA GeForce 6600'
class = display
subclass = VGA
#dmesg
FreeBSD 6.0-STABLE #0: Mon Jan 23 20:52:14 CET 2006
reuf at amd64.home.org:/usr/obj/usr/src/sys/OPTERON
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Dual Core AMD Opteron(tm) Processor 165 (2250.67-MHz 686-class CPU)
Origin = "AuthenticAMD" Id = 0x20f32 Stepping = 2
Features=0x178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT>
Features2=0x1<SSE3>
AMD Features=0xe2500800<SYSCALL,NX,MMX+,<b25>,LM,3DNow+,3DNow>
real memory = 535691264 (510 MB)
avail memory = 510484480 (486 MB)
ACPI APIC Table: <Nvidia AWRDACPI>
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
cpu0 (BSP): APIC ID: 0
cpu1 (AP): APIC ID: 1
ioapic0: Changing APIC ID to 2
ioapic0 <Version 1.1> irqs 0-23 on motherboard
kbd1 at kbdmux0
npx0: [FAST]
npx0: <math processor> on motherboard
npx0: INT 16 interface
acpi0: <Nvidia AWRDACPI> on motherboard
acpi_bus_number: can't get _ADR
acpi_bus_number: can't get _ADR
acpi0: Power Button (fixed)
acpi_bus_number: can't get _ADR
acpi_bus_number: can't get _ADR
acpi_bus_number: can't get _ADR
acpi_bus_number: can't get _ADR
acpi_bus_number: can't get _ADR
acpi_bus_number: can't get _ADR
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1008-0x100b 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
pci0: <memory> at device 0.0 (no driver attached)
isab0: <PCI-ISA bridge> at device 1.0 on pci0
isa0: <ISA bus> on isab0
pci0: <serial bus, SMBus> at device 1.1 (no driver attached)
ohci0: <OHCI (generic) USB controller> mem 0xfe02f000-0xfe02ffff irq 21 at
device 2.0 on pci0
ohci0: [GIANT-LOCKED]
usb0: OHCI version 1.0, legacy support
usb0: SMM does not respond, resetting
usb0: <OHCI (generic) USB controller> on ohci0
usb0: USB revision 1.0
uhub0: nVidia OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 10 ports with 10 removable, self powered
ehci0: <EHCI (generic) USB 2.0 controller> mem 0xfeb00000-0xfeb000ff irq
22 at device 2.1 on pci0
ehci0: [GIANT-LOCKED]
usb1: waiting for BIOS to give up control
usb1: timed out waiting for BIOS
usb1: EHCI version 1.0
usb1: companion controller, 4 ports each: usb0
usb1: <EHCI (generic) USB 2.0 controller> on ehci0
usb1: USB revision 2.0
uhub1: nVidia EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub1: 10 ports with 10 removable, self powered
umass0: ICSI USB2.0 Card Reader, rev 2.00/1.6b, addr 2
pcm0: <nVidia nForce4> port 0xf000-0xf0ff,0xec00-0xecff mem
0xfe02d000-0xfe02dfff irq 23 at device 4.0 on pci0
pcm0: <Avance Logic ALC850 AC97 Codec>
atapci0: <nVidia nForce4 UDMA133 controller> port
0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xe800-0xe80f at device 6.0 on pci0
ata0: <ATA channel 0> on atapci0
ata1: <ATA channel 1> on atapci0
atapci1: <nVidia nForce4 SATA150 controller> port
0x9f0-0x9f7,0xbf0-0xbf3,0x970-0x977,0xb70-0xb73,0xd400-0xd40f mem
0xfe02c000-0xfe02cfff irq 21 at device 7
.0 on pci0
ata2: <ATA channel 0> on atapci1
ata3: <ATA channel 1> on atapci1
atapci2: <nVidia nForce4 SATA150 controller> port
0x9e0-0x9e7,0xbe0-0xbe3,0x960-0x967,0xb60-0xb63,0xc000-0xc00f mem
0xfe02b000-0xfe02bfff irq 22 at device 8
.0 on pci0
ata4: <ATA channel 0> on atapci2
ata5: <ATA channel 1> on atapci2
pcib1: <ACPI PCI-PCI bridge> at device 9.0 on pci0
pci1: <ACPI PCI bus> on pcib1
skc0: <Marvell Gigabit Ethernet> port 0xac00-0xacff mem
0xfdefc000-0xfdefffff irq 18 at device 10.0 on pci1
skc0: Marvell Yukon Lite Gigabit Ethernet rev. (0x9)
sk0: <Marvell Semiconductor, Inc. Yukon> on skc0
sk0: Ethernet address: 00:01:29:d2:a2:62
miibus0: <MII bus> on sk0
e1000phy0: <Marvell 88E1000 Gigabit PHY> on miibus0
e1000phy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX,
1000baseTX-FDX, auto
nve0: <NVIDIA nForce MCP9 Networking Adapter> port 0xbc00-0xbc07 mem
0xfe02a000-0xfe02afff irq 23 at device 10.0 on pci0
nve0: Ethernet address 00:01:29:d2:a2:cb
miibus1: <MII bus> on nve0
ciphy0: <Cicada CS8201 10/100/1000TX PHY> on miibus1
ciphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT,
1000baseT-FDX, auto
nve0: Ethernet address: 00:01:29:d2:a2:cb
pcib2: <ACPI PCI-PCI bridge> at device 11.0 on pci0
pci2: <ACPI PCI bus> on pcib2
pcib3: <ACPI PCI-PCI bridge> at device 12.0 on pci0
pci3: <ACPI PCI bus> on pcib3
pcib4: <ACPI PCI-PCI bridge> at device 13.0 on pci0
pci4: <ACPI PCI bus> on pcib4
pcib5: <ACPI PCI-PCI bridge> at device 14.0 on pci0
pci5: <ACPI PCI bus> on pcib5
nvidia0: <GeForce 6600> mem
0xf4000000-0xf7ffffff,0xd0000000-0xdfffffff,0xfa000000-0xfaffffff irq 18
at device 0.0 on pci5
nvidia0: [GIANT-LOCKED]
acpi_tz0: <Thermal Zone> on acpi0
fdc0: <floppy drive controller> port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0
fdc0: [FAST]
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on
acpi0
sio0: type 16550A
pmtimer0 on isa0
orm0: <ISA Option ROM> at iomem 0xc0000-0xcefff 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]
ppc0: parallel port not found.
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
ucom0: FTDI USB <-> Serial, rev 1.10/2.00, addr 2
uhub2: vendor 0x0451 General Purpose USB Hub, class 9/0, rev 1.10/1.01,
addr 3
uhub2: 2 ports with 1 removable, bus powered
ukbd0: Logitech USB Receiver, rev 1.10/22.40, addr 4, iclass 3/1
kbd2 at ukbd0
ums0: Logitech USB Receiver, rev 1.10/22.40, addr 4, iclass 3/1
ums0: 7 buttons and Z dir.
Timecounters tick every 1.000 msec
acd0: DVDR <PLEXTOR DVDR PX-708A/1.09> at ata0-master UDMA33
acd1: DVDR <PLEXTOR DVDR PX-716A/1.06> at ata0-slave UDMA66
ad4: 70910MB <WDC WD740GD-00FLA2 31.08F31> at ata2-master SATA150
ad6: 152627MB <SAMSUNG HD160JJ WU100-31> at ata3-master SATA150
cd0 at ata0 bus 0 target 0 lun 0
cd0: <PLEXTOR DVDR PX-708A 1.09> Removable CD-ROM SCSI-0 device
cd0: 33.000MB/s transfers
cd0: cd present [22358 x 2048 byte records]
SMP: AP CPU #1 Launched!
cd1 at ata0 bus 0 target 1 lun 0
cd1: <PLEXTOR DVDR PX-716A 1.06> Removable CD-ROM SCSI-0 device
cd1: 66.000MB/s transfers
cd1: Attempt to query device size failed: NOT READY, Medium not present -
tray closed
da0 at umass-sim0 bus 0 target 0 lun 0
da0: <ICSI CF Card CF 1.6B> Removable Direct Access SCSI-0 device
da0: 40.000MB/s transfers
da0: 122MB (250368 512 byte sectors: 64H 32S/T 122C)
(da1:umass-sim0:0:0:1): READ CAPACITY. CDB: 25 20 0 0 0 0 0 0 0 0
(da1:umass-sim0:0:0:1): ILLEGAL REQUEST asc:25,0
(da1:umass-sim0:0:0:1): Logical unit not supported
(da1:umass-sim0:0:0:1): fatal error, failed to attach to device
(da1:umass-sim0:0:0:1): lost device
(da1:umass-sim0:0:0:1): removing device entry
(da2:umass-sim0:0:0:2): READ CAPACITY. CDB: 25 40 0 0 0 0 0 0 0 0
(da2:umass-sim0:0:0:2): ILLEGAL REQUEST asc:25,0
(da2:umass-sim0:0:0:2): Logical unit not supported
(da2:umass-sim0:0:0:2): fatal error, failed to attach to device
(da2:umass-sim0:0:0:2): lost device
(da2:umass-sim0:0:0:2): removing device entry
da3 at umass-sim0 bus 0 target 0 lun 3
da3: <ICSI SM/xD Card SM 1.6B> Removable Direct Access SCSI-0 device
da3: 40.000MB/s transfers
da3: 15MB (32000 512 byte sectors: 64H 32S/T 15C)
uhid0: Logitech Desktop USB stand, rev 1.10/41.02, addr 5, iclass 3/0
Trying to mount root from ufs:/dev/ad4s1a
On Mon, 23 Jan 2006 20:21:56 +0100, Poul-Henning Kamp <phk at phk.freebsd.dk>
wrote:
>
> http://www.freebsd.org/cgi/getmsg.cgi?fetch=239010+242520+/usr/local/www/db/text/2005/freebsd-current/20051204.freebsd-current
>
> I can't really say I have gotten much feedback on this.
>
> Given that there may be 2-10% speedup of context-switches in it
> I would have expected more interest ?
>
More information about the freebsd-current
mailing list