How to change Istroke O Scheduler in Linux system
The purpose of this article is to share with you about how to change the Icano scheduler in the Linux system. The editor thinks it is very practical, so I share it with you. I hope you can get something after reading this article.
The Linux Imax O scheduler, which is a part of the Linux kernel, is a process that accesses storage volumes with block Imax O.
At present, there are the following scheduling algorithms on Linux:
1. Noop-A device typically used for memory storage.
2. Cfq-full fair scheduler. The average process uses IO bandwidth.
3. Deadline-for a delayed scheduler, each I _ hand O has a latest execution time.
4. Anticipatory-heuristic scheduling, similar to Deadline algorithm, but introducing prediction mechanism to improve performance.
View the device's current Istroke O scheduler:
"``
# cat / sys/block//queue/scheduler
"``
Suppose the disk name is `/ dev/ sdc`:
"``
# cat / sys/block/sdc/queue/schedulernoop anticipatory deadline [cfq] "`
# how to change the hard disk device Iram O Scheduler
Use the following instructions:
"``
# echo {SCHEDULER-NAME} > / sys/block//queue/scheduler
"``
For example, set up the noop scheduler:
"``
# echo noop > / sys/block/sdc/queue/scheduler
"``
The above settings will expire after restart. If you want the configuration to take effect after restart, you need to write `Noop` to `/ boot/grub/ menu.lst` in the kernel startup parameters:
# 1. Backing up menu.lst files
"``
Cp-p / boot/grub/menu.lst / boot/grub/menu.lst-backup
"``
# 2. Update / boot/grub/menu.lst
Add `Noop` to the end of the file, such as:
"``
Kernel / vmlinuz-2.6.16.60-0.91.1-smp root=/dev/sysvg/root splash=silent splash=off showopts elevator=noop
"``
What is Linux system Linux is a free-to-use and free-spread UNIX-like operating system, is a POSIX-based multi-user, multi-task, multi-threaded and multi-CPU operating system, using Linux can run major Unix tools, applications and network protocols.
The above is how to change the Linux O scheduler. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.