Comments on: A metric for MySQL load average http://www.xaprb.com/blog/2008/11/26/a-metric-for-mysql-load-average/ Stay curious! Fri, 10 May 2013 18:25:19 +0000 hourly 1 http://wordpress.org/?v=3.5.1 By: thorko http://www.xaprb.com/blog/2008/11/26/a-metric-for-mysql-load-average/#comment-16637 thorko Sat, 04 Jul 2009 09:48:47 +0000 http://www.xaprb.com/blog/?p=714#comment-16637 Hi,
wrote a little perl script which does the above.
Get it here: http://www.thorko.de/thorko/scripts/mysql_stats.pl

]]>
By: Consumo e índices de carga MySQL :: JMGiner.eu http://www.xaprb.com/blog/2008/11/26/a-metric-for-mysql-load-average/#comment-15624 Consumo e índices de carga MySQL :: JMGiner.eu Tue, 06 Jan 2009 15:24:36 +0000 http://www.xaprb.com/blog/?p=714#comment-15624 [...] más información sobre el script podéis visitar la web del Xapbr Comparte la [...]

]]>
By: Jain http://www.xaprb.com/blog/2008/11/26/a-metric-for-mysql-load-average/#comment-15481 Jain Sat, 29 Nov 2008 10:15:49 +0000 http://www.xaprb.com/blog/?p=714#comment-15481 I have a QuadCore Server(4 Cores). How can i configure mysql to use all the four cores. Right now mysql process use only one core whose utilization goes upto 95%.

]]>
By: Brian K. Jones http://www.xaprb.com/blog/2008/11/26/a-metric-for-mysql-load-average/#comment-15475 Brian K. Jones Fri, 28 Nov 2008 02:09:12 +0000 http://www.xaprb.com/blog/?p=714#comment-15475 Hi again,

True, this calculation has some minor issues, but no more so than the ‘top’ output on a typical *nix system, to be honest. In general, if you start out with the question “what’s the problem you’re trying to solve?”, you can probably get to a better solution than either loadavg or this solution for mysql.

There are two problems here, imho:

1. The calculation is doomed to inaccuracy, though admittedly how accurate you need to be here is also a question worth addressing — I’m sure most people reading this are aware that this is really a “rough idea” kind of figure.

2. The relevance of the information you get back from this is also in question. As both a sysadmin and a DBA, loadavg to me is really only relevant if the server *isn’t* bored, and at that point, it’s just a starting point to determine “ok, the system is busy, but now I need to know what actual resource is being hogged and killing performance”.

With MySQL, my experience has been that the way a lot of people set it up (or… don’t), the problem is IO, which points at all kinds of other issues. The point isn’t what the problem is, here. The point is that loadavg is almost always less relevant than a lot of other data points (like, say, iostat output, for just one example)

So, to that end, I think that the solution presented here is probably “good enough”, and you’d need to question the utility of something that is a whole lot more accurate, unless you just have some downtime to kill between client engagements ;-)

]]>
By: Jan http://www.xaprb.com/blog/2008/11/26/a-metric-for-mysql-load-average/#comment-15471 Jan Thu, 27 Nov 2008 09:32:33 +0000 http://www.xaprb.com/blog/?p=714#comment-15471 Doesn’t the measuring method itself (SHOW PROCESSLIST) increase the number of queries and bias the results?

The more status information you’ll retrieve with a query the more the performance of these measurement queries will affect the result.

I am not sure if the bias is significant or not, probably it is because the measurement queries need to access and lock global variables (SHOW GLOBAL STATUS).

]]>