Linux Change The I/O Scheduler For A Hard Disk
2014-04-03 11:37
387 查看
ow do I change the I/O scheduler for a particular hard disk without rebooting my Linux server system?
CFQ [cfq] (Completely Fair Queuing) is an I/O scheduler for the Linux kernel and default under many Linux distributions.
Noop scheduler (noop) is the simplest I/O scheduler for the Linux kernel based upon FIFO queue concept.
Anticipatory scheduler (anticipatory) is an algorithm for scheduling hard disk input/output as well as old scheduler which is replaced by CFQ
Deadline scheduler (deadline) - it attempt to guarantee a start service time for a request.
Sample output:
For example, set noop scheduler, enter:
CFQ [cfq] (Completely Fair Queuing) is an I/O scheduler for the Linux kernel and default under many Linux distributions.
Noop scheduler (noop) is the simplest I/O scheduler for the Linux kernel based upon FIFO queue concept.
Anticipatory scheduler (anticipatory) is an algorithm for scheduling hard disk input/output as well as old scheduler which is replaced by CFQ
Deadline scheduler (deadline) - it attempt to guarantee a start service time for a request.
Task: View Current Disk scheduler
Assuming that your disk name /dev/sda, type:# cat /sys/block/{DEVICE-NAME}/queue/scheduler # cat /sys/block/sda/queue/scheduler
Sample output:
noop anticipatory deadline [cfq]
Task: Set I/O Scheduler For A Hard Disk
To set a specific scheduler, simply type the command as follows:# echo {SCHEDULER-NAME} > /sys/block/{DEVICE-NAME}/queue/scheduler
For example, set noop scheduler, enter:
# echo noop > /sys/block/hda/queue/scheduler
相关文章推荐
- Choosing an I/O Scheduler for Red Hat Enterprise Linux and the 2.6 Kernel
- how the process using the hard disk in linux
- lvm add new hard disk for oracle linux 5.8
- How to change the resolution in text mode for Linux5+
- How To: set udev rule for setting the disk permission on ASM disks when using multipath on Linux 6.x
- How To Move The Database To Different Diskgroup (Change Diskgroup Redundancy)
- 111 To enable faster incremental backups, you enabled block change tracking for the database. Which
- 修复VirtualBox "This kernel requires the following features not present on the CPU: pae Unable to boot – please use a kernel appropriate for your CPU"(安装深度Linux的时候就需要)
- Errors occurred while updating the change sets for SVNStatusSubscriber的解决
- change the walltime for currently running PBS job (qalter pbs)
- find the uuid for disks
- Change the default shell for Ubuntu
- Change Mine Business Philosophy for the Environment
- What's the best Linux server for you? == 最佳Linux服务器发行版
- How to restore ASM based OCR after complete loss of the CRS diskgroup on Linux/Unix systems [ID 1062
- How to configure the network for Linux
- Fix : The disk drive for /tmp is not ready yet or not present
- Apache Oozie - the workflow scheduler for hadoop
- Re: What if the CRL distribution points for a CA change?
- The disk drive for /media/boot is not ready yet or not prese