Comments on: An opportunity to participate in MySQL research http://www.xaprb.com/blog/2011/12/06/an-opportunity-to-participate-in-mysql-research/ Stay curious! Fri, 10 May 2013 18:25:19 +0000 hourly 1 http://wordpress.org/?v=3.5.1 By: Xaprb http://www.xaprb.com/blog/2011/12/06/an-opportunity-to-participate-in-mysql-research/#comment-19809 Xaprb Thu, 05 Jan 2012 20:52:05 +0000 http://www.xaprb.com/blog/?p=2549#comment-19809 Thank you all for participating! I got a great response, with some large hosting providers sending me literally gigabytes of data. The diversity of data I’ve gotten will really help make this tool much better. When Daniel is back from vacation we will start developing the algorithm.

]]>
By: Karol Kwiatkowski http://www.xaprb.com/blog/2011/12/06/an-opportunity-to-participate-in-mysql-research/#comment-19782 Karol Kwiatkowski Mon, 12 Dec 2011 08:19:46 +0000 http://www.xaprb.com/blog/?p=2549#comment-19782 For those wondering why nothing is logged with ‘>’ or ‘| tee’ – awk buffers its output and will print it only after mysqladmin ends.
You could use mysqladmin’s ‘–count’ switch and wait till it ends or, if you’re hit by this bug[1] (like me) you may want to force printing awk’s output with fflush() or system()[2]:

mysqladmin ext -i1 | awk ‘/Queries/{q=$4-qp;qp=$4} /Threads_connected/{tc=$4} /Threads_running/{print q, tc, $4; fflush()}’ | tee output

[1] http://bugs.mysql.com/bug.php?id=58221
[2] http://www.gnu.org/s/gawk/manual/html_node/I_002fO-Functions.html

]]>
By: Roy http://www.xaprb.com/blog/2011/12/06/an-opportunity-to-participate-in-mysql-research/#comment-19778 Roy Fri, 09 Dec 2011 23:06:01 +0000 http://www.xaprb.com/blog/?p=2549#comment-19778 Thank YOU!
Now i’m logging data (from filepremier.com)
here a sample

480 5 2
535 5 2
451 3 2
362 3 3
573 3 2
524 4 2
506 3 3
405 4 2
465 5 2
549 3 2
489 3 2
565 5 3
719 2 2
465 3 2
485 5 2
380 2 2
378 3 2
429 9 2
442 2 2
438 2 2
639 5 2
456 2 2
455 4 3
518 5 2
552 3 2
359 3 2
459 6 2
689 7 3
557 5 2
464 7 2
501 9 2
569 11 3
496 13 2
538 10 2
457 9 2
448 12 3
709 5 2
394 5 2

]]>
By: Xaprb http://www.xaprb.com/blog/2011/12/06/an-opportunity-to-participate-in-mysql-research/#comment-19777 Xaprb Fri, 09 Dec 2011 22:42:17 +0000 http://www.xaprb.com/blog/?p=2549#comment-19777 See http://www.xaprb.com/blog/2008/08/01/how-to-leave-a-program-running-after-you-log-out/

I’d use screen, myself. It is one of the most important tools ever invented for Unix. I can’t live without it.

]]>
By: Roy http://www.xaprb.com/blog/2011/12/06/an-opportunity-to-participate-in-mysql-research/#comment-19776 Roy Fri, 09 Dec 2011 22:18:41 +0000 http://www.xaprb.com/blog/?p=2549#comment-19776 OK to log, but how ?
I use only ssh to log, and i can’t left the shell open…

]]>