无数的mysql优化教程中提到修改thread_concurrency。
大部分人都这样说:“thread_concurrency对mysql的性能有很大的影响,特别是在多核或多cpu环境下,错误设置会导致mysql不能充分利用cpu,而导致性能上不去。thread_concurrency应该设置为CPU个数或核数的2倍,比如双核或双cpu应该设置为4。“
以上说明听起来好像很有道理很牛b的样子,但其实在linux中,这是完全错误的说法。
mysql官方手册明确说明:"thread_concurrency This variable is specific to Solaris systems, for which mysqld invokes the "thr_setconcurrency() with the variable value."
没错,这个变量仅对Solaris系统有效,linux什么的就别设置了,浪费表情,也别想在这个设置上获取不同的性能。同时这个定义将会在5.6.1中Deprecated。
官方手册链接:http://dev.mysql.com/doc/refman/5.5/en/server-system-variables.html#sysvar_thread_concurrency
本文揭示了关于MySQL thread_concurrency配置的常见误解,强调该变量仅适用于Solaris系统,且将在MySQL 5.6.1版本中被弃用。提供官方手册链接以供参考。
2963

被折叠的 条评论
为什么被折叠?



