Misunderstanding of thread_concurrency Optimization in MySQL

Source: Internet
Author: User

MySQL has been optimized recently. Many of them have added thread_concurrency to the configuration file. Most people provide the following description:

"SettingsThread_concurrencyThe correct value has a great impact on MySQL performance. When multiple CPUs (or multiple cores) are usedThread_concurrencyMySQL cannot make full use of multiple CPUs (or multiple cores), and only one CPU (or core) can work at the same time.

Thread_concurrencySet2 times the number of CPU Cores. For example, if you have a dual-core CPUThread_concurrencyIt should be 4; 2 dual-core CPUs,Thread_concurrencyThe value should be 8 ."

The specific modification method is as follows:

[Mysqld]

Thread_concurrency = 8

As you may not know, thread_concurrency can be used only in specific scenarios. Refer to the MySQL manual:

This variable is for the Solaris system. If this variable is set, mysqld will call thr_setconcurrency (). This function allows the application to provide the expected number of threads to the thread system running at the same time.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.