Selecting a scheduling policy for MySQL

Source: Internet
Author: User

On Gun/linux, queue scheduling determines the order in which requests to block devices are actually sent to the underlying settings. By default, the CFG (fully fair queuing) policy, free use of notebooks and desktops using the scheduling policy is not a problem, and helps to prevent IO starvation, but for the server is problematic, under the MySQL workload type, CFQ will lead to poor response time, Because some unnecessary requests are deferred in the queue (how to understand them).

A command that can be used to see what the system supports and what scheduling policies are currently in use

cat/sys/block/disk drive letter (e.g. SDA)/queue/scheduler

noop deadline [CFQ] ([] is the scheduling policy in use), two options outside of CFQ are suitable for server-level hardware, and in most cases they work equally well, NoOp scheduling is suitable for those devices that implement the scheduling algorithm behind them (what settings can implement their own scheduling algorithms), such as hard - piece RAID controllers and Sans. Deadline works well for both RAID controllers and directly used disks, and our benchmark shows that the difference between the two is very small, and it is important not to use CFQ, which can lead to serious performance problems.

But this advice also needs to be preserved, because the disk scheduling strategy actually has a lot of different locations in the kernel.

Related Article

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.