How to change I/O scheduler in Linux
2011-07-28 16:41
435 查看
为什么可能会去修改Linux I/O Scheduler (elevator)?以及什么是I/O Scheduler,应该如何为数据库系统选择合适的I/O Scheduler?可以参看以下文章。
Linux, i/o scheduler and ASM– 在极大I/O压力的情况下,采用Deadline scheduler可能会提高5%-10%的I/O性能。
Choosing an I/O Scheduler for Red Hat® Enterprise Linux® 4 and the 2.6 Kernel– 在大多数情况下,默认的CFQ scheduler已经足够好,无需修改。
Linux I/O Scheduler
那么如果我们确认要修改I/O scheduler,该如何进行? 参考 –How to change default I/O scheduler?
大体上来说就是,比如像修改I/O scheduler为dealine:
在RHEL4/OEL4中,修改/boot/grub/grub.conf文件,添加elevator=deadline,重启生效,比如:
title Red Hat Enterprise Linux Server (2.6.18-8.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-8.el5 ro root=/dev/vg0/lv0 elevator=deadline
initrd /
initrd-2.6.18-8.el5.img
在RHEL5/OEL5中,可以针对每块磁盘制定I/O Scheduler,修改完毕立刻生效,比如:
--当前是是noop
# cat /sys/block/sda1/queue/scheduler
[noop] anticipatory deadline cfq
--修改为deadline
# echo 'deadline'>/sys/block/sda1/queue/scheduler
--立刻生效
# cat /sys/block/sda1/queue/scheduler
noop anticipatory [deadline] cfq
Linux, i/o scheduler and ASM– 在极大I/O压力的情况下,采用Deadline scheduler可能会提高5%-10%的I/O性能。
Choosing an I/O Scheduler for Red Hat® Enterprise Linux® 4 and the 2.6 Kernel– 在大多数情况下,默认的CFQ scheduler已经足够好,无需修改。
Linux I/O Scheduler
那么如果我们确认要修改I/O scheduler,该如何进行? 参考 –How to change default I/O scheduler?
大体上来说就是,比如像修改I/O scheduler为dealine:
在RHEL4/OEL4中,修改/boot/grub/grub.conf文件,添加elevator=deadline,重启生效,比如:
title Red Hat Enterprise Linux Server (2.6.18-8.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-8.el5 ro root=/dev/vg0/lv0 elevator=deadline
initrd /
initrd-2.6.18-8.el5.img
在RHEL5/OEL5中,可以针对每块磁盘制定I/O Scheduler,修改完毕立刻生效,比如:
--当前是是noop
# cat /sys/block/sda1/queue/scheduler
[noop] anticipatory deadline cfq
--修改为deadline
# echo 'deadline'>/sys/block/sda1/queue/scheduler
--立刻生效
# cat /sys/block/sda1/queue/scheduler
noop anticipatory [deadline] cfq
相关文章推荐
- How to change I/O scheduler in Linux
- How to change the resolution in text mode for Linux5+
- How to Change Timezone in your Linux System
- How to change the output color of echo in Linux
- How to change window manager to OpenBox in Linux Mint 13 Mate
- 【转】How to Change File Ownership & Groups in Linux
- How do I configure vncserver to start GNOME or KDE by default in Red Hat Enterprise Linux ?
- How to install/remove different Desktop/Window Manager in Kali Linux
- How to install NetWorker in Linux?
- How to Reset USB Device in Linux
- How to change service accounts and service account passwords in SharePoint Server 2007 and in Windows SharePoint Services 3.0(Se
- How to change the default browser in Visual Studio
- How to Delete HUGE (100-200GB) Files in Linux
- EPLAN API 入门系列- 实战篇(How to Change Properties in EPlan?)
- nullnullhow to read directory name using std c in the linux
- How to use USB 3G dongle/stick Huawei E169/E620/E800 ( Chip used Qualcomm e1750) in Linux (China and world)
- How to use cvs in linux?
- How To Query And Change The Oracle Hidden Parameters In Oracle 10g and 11g (文档 ID 315631.1)
- How to Setup Chroot SFTP in Linux (Allow Only SFTP, not SSH)