Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Jul 2011 12:55:08 +0200
From:      Alex Samorukov <ml@os2.kiev.ua>
To:        freebsd-stable@freebsd.org
Subject:   dtrace/mysqld
Message-ID:  <4E2FEE8C.4020607@os2.kiev.ua>

next in thread | raw e-mail | index | archive | help
If anyone interested - i was able to compile dtrace support in 
mysql-server55 port. During this i found a bug in dtrace/bsd - if it is 
running more then 1 time on the same object (this is the case for 
mysqld) then object is broken. I was able to do workaround (with 
preserving original object and then copying it) and then everything 
compiled and started correctly.

This is an example:


bsd# ./work/mysql-5.5.14/support-files/dtrace/query-time.d
dtrace: buffer size lowered to 2m
Who                  Database             
Query                                    Time(ms)
root@localhost       mysql                select sleep(1) from user 
limit 1        1000
root@localhost       mysql                select * from user limit 
1               0

I will try to cleanup my patches (its currently very dirty hacks) and 
submit them to the mysql bugtracker (and port). Feel free to contact me 
if you want to test this (or to fix dtrace/obects bug).



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4E2FEE8C.4020607>