CentOS7 Scheduler変更

VritualBox上で利用するCentOSのスケジューラを変更します。

I/Oスケジューラを、何もしない処理しない物に変更した事で、ちょっとだけ早くなった気がします。

設定変更

GRUB_CMDLINE_LINUX 行に elevator=noop を追加します。

[user01@localhost ~]$ sudo vi /etc/default/grub

[sudo] user01 のパスワード:


GRUB_TIMEOUT=5

GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"

GRUB_DEFAULT=saved

GRUB_DISABLE_SUBMENU=true

GRUB_TERMINAL_OUTPUT="console"

GRUB_CMDLINE_LINUX="rd.lvm.lv=centos/root rd.lvm.lv=centos/swap rhgb quiet elevator=noop"

GRUB_DISABLE_RECOVERY="true"

grub.cnf の生成

[user01@localhost ~]$ sudo grub2-mkconfig -o /boot/grub2/grub.cfg

Generating grub configuration file ...

Found linux image: /boot/vmlinuz-3.10.0-957.12.1.el7.x86_64

Found initrd image: /boot/initramfs-3.10.0-957.12.1.el7.x86_64.img

Found linux image: /boot/vmlinuz-3.10.0-957.10.1.el7.x86_64

Found initrd image: /boot/initramfs-3.10.0-957.10.1.el7.x86_64.img

Found linux image: /boot/vmlinuz-3.10.0-957.el7.x86_64

Found initrd image: /boot/initramfs-3.10.0-957.el7.x86_64.img

Found linux image: /boot/vmlinuz-0-rescue-85d118f9a4884f0799612968ce91e6a6

Found initrd image: /boot/initramfs-0-rescue-85d118f9a4884f0799612968ce91e6a6.img

done

[user01@localhost ~]$