Comments on: How to tune MySQL’s sort_buffer_size http://www.xaprb.com/blog/2010/05/09/how-to-tune-mysqls-sort_buffer_size/ Stay curious! Fri, 10 May 2013 18:25:19 +0000 hourly 1 http://wordpress.org/?v=3.5.1 By: Wendy http://www.xaprb.com/blog/2010/05/09/how-to-tune-mysqls-sort_buffer_size/#comment-32744 Wendy Mon, 25 Feb 2013 02:13:09 +0000 http://www.xaprb.com/blog/?p=1823#comment-32744 You’re confused sort_buffer_size because you think every query has good written and indexed. This sort_buffer_size used for query with SORT but have no index. Try to sort data with no index, then you will see that sort_buffer_size will help you much.

]]>
By: james http://www.xaprb.com/blog/2010/05/09/how-to-tune-mysqls-sort_buffer_size/#comment-19496 james Mon, 18 Jul 2011 15:25:44 +0000 http://www.xaprb.com/blog/?p=1823#comment-19496 So this is a dead end? It will create a lot of confusions to people. Why then the mysql provides such a controversial parameter?

]]>
By: Arif Aldoseri http://www.xaprb.com/blog/2010/05/09/how-to-tune-mysqls-sort_buffer_size/#comment-18673 Arif Aldoseri Sat, 18 Sep 2010 21:08:10 +0000 http://www.xaprb.com/blog/?p=1823#comment-18673 Hi All,

I’m new to Linux, MySQL and server management altogether, but I’d like to share my little experience with you all.

My dedicated server running a couple of scripts which heavily rely on database (Search engine and a social websites)

My CPU chart shows MySQL as consuming 57% of the processing power which is too much especially that the sites are still under development (Cosmetically) with number of visitors not exceeding 1500 per day.

Looking to solve this problem I came to know about sort_buffer_size and few more things. Anyway and by a total fluke I decided to upgrade MySQL from V5 to V5.1 as it was glaring before my eyes in WHM control panel.

I clicked to upgrade and that was all. The easy one, Unattended upgrade. Now the load is 6% only just like magic!

The sites are still as responsive as they used to be.

I hope this helps even though it won’t add anything from a technical point of view.

]]>
By: Jeremy Breece http://www.xaprb.com/blog/2010/05/09/how-to-tune-mysqls-sort_buffer_size/#comment-18308 Jeremy Breece Wed, 12 May 2010 15:35:22 +0000 http://www.xaprb.com/blog/?p=1823#comment-18308 Wish I could add a comment for a particular system variable in MySQL reference manual pointing to this post, as it encourages experimentation.

“Experiment to find the best value for your workload.”

http://dev.mysql.com/doc/refman/5.0/en/server-system-variables.html#sysvar_sort_buffer_size

]]>
By: Anonymous http://www.xaprb.com/blog/2010/05/09/how-to-tune-mysqls-sort_buffer_size/#comment-18299 Anonymous Tue, 11 May 2010 22:20:31 +0000 http://www.xaprb.com/blog/?p=1823#comment-18299 May I speak for the underpaid, sub-commodity server DBA (usually in a profitable dept) who supports Baron’s humor and outrage. It really is all good.

Spent valuable time reading due to excellent responses, incl xaprb’s. All I knew it’s per session default 2 mb.

]]>