摘要: 最近在优化mysql,其中很多人都在配置文件中添加了thread_concurrency,大多数人给出的描述是:“设置thread_concurrency的值的正确与否, 对mysql的性能影响很大, 在多个cpu(或多核)的情况下,错误设置了thread_concurrency的值, 会导致mysql不能充分利用多cpu(或多核), 出现同一时刻只能一个cpu(或核)在工作的情况。thread_concurrency应设为CPU核数的2倍. 比如有一个双核的CPU, 那么thread_concurrency的应该为4; 2个双核的cpu, thread_concurrency的值应为8.”具 阅读全文
posted @ 2010-12-18 10:03 sunss 阅读(27590) 评论(1) 推荐(2) 编辑