结论:
thread_concurrency 在GNU/Linux系统上没有用的。
不过很多LINUX自带的mysql包里面的配置文件都有thread_concurrency选项,
甚至Mysql官方源码里面的my-large.cnf my-innodb-heavy-4G.cnf里面也有。。
# This permits the application TO give the threads system a hint FOR the
# desired NUMBER OF threads that should be run at the same TIME. This
# VALUE ONLY makes sense ON systems that support the thread_concurrency()
# FUNCTION CALL (Sun Solaris, FOR example).
# You should try [NUMBER OF CPUs]*(2..4) FOR thread_concurrency
thread_concurrency = 8
于是在网上就流传开了,在一些优化mysql配置的文章中,都说要把thread_concurrency设置为 CPU核数*2。
但是千万别上当,调整这个选项纯属浪费时间。
它只在Solaris < 9 的系统中有用。。。
而且从mysql5.6.1开始,这个选项就被废了。
http://bugs.mysql.com/bug.php?id=55001
分享到:
相关推荐
如果你的服务器的CPU或者IO使用接受饱和,特别是偶尔出现峰值,这时候系统想在超载时能正常处理查询,那么强烈建议关注innodb_thread_concurrency
Cpp_Concurrency_In_Action(本书是基于C++11新标准的并发和多线程编程深度指南。),非扫描版
Go_Concurrency_Patterns
Cpp_Concurrency_In_Action(中文版) Cpp_Concurrency_In_Action(中文版)
java_concurrency_in_practice 英文原版 java_concurrency_in_practice 英文原版 java_concurrency_in_practice 英文原版
Advanced_Go_Concurrency_Patterns
C_PLUS_PLUS_Concurrency_in_Action_zh_CN 中文版
本书旨在教会其他C++开发者如何安全、高效地使用C++11线程库。非常好的一本书,可以系统学习C++线程库thread。
Deep Learning in Python: Master Data Science and Machine Learning with Modern Neural Networks written in Python, Theano, and TensorFlow (Machine Learning in Python) by LazyProgrammer
java_concurrency_in_practice_source java多线程 java多线程 java多线程
深入浅出Java_Concurrency
Java_Concurrency_in_Practice java 多线程并发
BH_US_08_Stender_Vidergar_Concurrency_Attacks_in Web_Applications_Whitepaper
Mashibing_High_Concurrency-源码.rar
java并发编程时间 java_concurrency_in_practice
Cpp_Concurrency_In_Action, 作为对《C Concurrency in Action》英文版的中文翻译。
oslo.concurrency 是通过锁定机制和运行外部进程来...它包括以下 API:oslo_concurrency.fixture.lockutilsoslo_concurrency.lockutilsoslo_concurrency.optsoslo_concurrency.processutilsoslo_concurrency.watchdog
Java Concurrency in Practice
Joshua Bloch etc "JavaConcurrency In Practice"