login
Header Space

 
 

Re: Thread benchmarks

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Warner Losh <imp@...>
Cc: <tech-kern@...>, <current-users@...>, <kris@...>
Date: Monday, October 1, 2007 - 9:33 am

On Fri, Sep 28, 2007 at 02:04:00PM -0600, Warner Losh wrote:


I took the generic config, removed the debugging options (INVARIANTS,
WITNESS and whatever else I could find) and added SCHED_ULE.


I can try turning off debugging in the allocator. What else would you like
me to try? I would like to provide remote access to the two systems but
unfortunatley my Internet link is unreliable and I'm not in a position to
leave them on 24x7. Some details on the test. I grabbed my.cnf from Jeff
Roberson's weblog:

	http://people.freebsd.org/~jeff/bsd.cnf

Relevant bits of dmesg from the MySQL host:

total memory = 2047 MB
avail memory = 2008 MB
cpu0: Intel Pentium III Xeon (686-class), 701.64 MHz, id 0x6a1
cpu0: features 383fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu0: features 383fbff<PGE,MCA,CMOV,PAT,PSE36,MMX>
cpu0: features 383fbff<FXSR,SSE>
cpu0: I-cache 16 KB 32B/line 4-way, D-cache 16 KB 32B/line 4-way
cpu0: L2 cache 1 MB 32B/line 8-way
cpu0: ITLB 32 4 KB entries 4-way, 2 4 MB entries fully associative
cpu0: DTLB 64 4 KB entries 4-way, 8 4 MB entries 4-way
fxp0 at pci1 dev 6 function 0: i82559 Ethernet, rev 8
fxp0: interrupting at ioapic0 pin 3 (irq 3)
fxp0: Ethernet address 00:02:a5:45:a6:48
inphy0 at fxp0 phy 1: i82555 10/100 media interface, rev. 4
inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto

The disk subsystem doesn't matter since I was running the read-only test,
and with 10000 rows everything fits in core. I compiled MySQL by hand on
each system:

./configure --prefix=/local/mysql --with-pthread --with-innodb

Everything but necessary processes were killed on the two systems, so they
were running at most sshd, screen, sysbench and the minimum to be able to
log in. I did a warm-up run and then started testing:

for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20; do
        echo "=> ${i} THREADS"
        sysbench --test=oltp --db-driver=mysql --mysql-host=${HOST} \
            --mysql-user=root --mysql-table-engine=innodb --num-threads=${i} \
            --max-time=60 --max-requests=0 --oltp-read-only=on run | \
	    tee -a ${HOST}.txt
done

The two systems are connected via 100Mbps switch. The sysbench host was
running NetBSD/i386 4.99.30 and has a dual core CPU:

cpu0 at mainbus0 apid 0: (boot processor)
cpu0: Intel (686-class), 3200.24 MHz, id 0xf64
cpu0: features bfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu0: features bfebfbff<PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX>
cpu0: features bfebfbff<FXSR,SSE,SSE2,SS,HTT,TM,SBF>
cpu0: features2 e4bd<SSE3,MONITOR,DS-CPL,VMX,EST,CID,xTPR,PDCM>
cpu0: features3 20100000<XD,EM64T>
cpu0: "Intel(R) Pentium(R) D CPU 3.20GHz"
cpu0: I-cache 12K uOp cache 8-way
cpu0: L2 cache 2 MB 64B/line 8-way
cpu0: ITLB 4K/4M: 128 entries
cpu0: DTLB 4K/4M: 64 entries

Andrew
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Thread benchmarks, Andrew Doran, (Fri Sep 28, 1:50 pm)
Re: Thread benchmarks, Brett Lymn, (Mon Oct 1, 10:56 pm)
Re: Thread benchmarks, Warner Losh, (Fri Sep 28, 4:04 pm)
Re: Thread benchmarks, Andrew Doran, (Mon Oct 1, 9:33 am)
Re: Thread benchmarks, Kris Kennaway, (Mon Oct 1, 6:26 pm)
Re: Thread benchmarks - FreeBSD corrections, Andrew Doran, (Wed Oct 3, 10:08 am)
Re: Thread benchmarks, Darren Reed, (Tue Oct 2, 5:16 am)
Re: Thread benchmarks, M. Warner Losh, (Tue Oct 2, 5:46 am)
Re: Thread benchmarks, Adam Hamsik, (Fri Sep 28, 3:25 pm)
Re: Thread benchmarks, Thor Lancelot Simon, (Fri Sep 28, 2:27 pm)
Re: Thread benchmarks, Andrew Doran, (Fri Sep 28, 3:39 pm)
Re: Thread benchmarks, Mike Cheponis, (Tue Oct 2, 1:33 am)
Re: Thread benchmarks , , (Tue Oct 2, 1:21 pm)
Re: Thread benchmarks, Andrew Doran, (Wed Oct 3, 9:23 am)
Re: Thread benchmarks, Alistair Crooks, (Tue Oct 2, 6:13 am)
Re: Thread benchmarks, Christoph Egger, (Mon Oct 1, 4:32 am)
Re: Thread benchmarks, matthew sporleder, (Fri Sep 28, 1:57 pm)
Re: Thread benchmarks, Andrew Doran, (Fri Sep 28, 3:34 pm)
speck-geostationary