so.. why does mysql run so slowly?
Posted by Ian Holsman
this is the output of
dtrace -n 'pid$target:::entry{ @[probefunc] = count() }'
when I run mysqlslap -c 20 -i 20
pthread_getspecific 365 malloc_internal 377 my_malloc 377 free 378 malloc 378 my_wc_mb_filename 399 my_no_flags_free 420 strmake 444 pthread_self 468 memset 582 alloc_root 630 strmov 651 strlen 655 memcpy 897 mutex_trylock 936 my_pthread_fastmutex_lock 936 mutex_lock 1133 mutex_lock_impl 1133 my_utf8_uni 1365 mutex_unlock 2069
I’m about to prepare a more formal analysis (and benchmark) about this. but in order for me not to compete with colm I’m going to wait until the 24th to submit it.
I switched to using sysbench as I thought there might be a bug in actual mysqlslap code, but it is also showing the same results. those being mysql runs 10x slower on the sunfire than on a linux x86-64 machine.
If you are from sun, mysql, or a apache member, and want to check out the configuration to see how I screwed up, send an email from your @sun.com/@mysql.com/@apache.org email address with a public key and I’ll mail you the IP#/account details (ian at holsman.net).
the machine is only available while I’m awake (I live in Australia so it probably means your nighttime), as I haven’t put it in a colo (until I win it of course) and my ‘server room’ is my walk in robe.
woops.. that was from a myisam run I think.
here is anotherslightly different ;-)
Hey, you don’t have to put anything off. The T2000 we got was entirely outisde of the current competition, they decided that since my posts predated the announcement of the new rules and so on, it didn’t apply. There’s still a machine for April! (and possibly March – I don’t know).
Yah know…that set up looks strangely familiar…
Improvised hosting is always so…individual!
smp
(until I win it of course)
Woah! Hold on a sec here… who’s going to win?
Muahahhaa
Hi!
I’ll drop you a piece of email with the name of someone internally in MySQL who can help you with this. I’d be curious to find out what bottlenecks you are discovering.
Thanks!