I'll start with a link on archlinux wiki, where you can view entire documentation for cfq scheduler.
In linux you have available 3 types of schedulers:
- deadline
- noop
- cfq
You can view your schedulers with following command (e.g. for sda device):
cat /sys/block/sda/queue/schedulerOn Raspberry PI, default scheduler in use is noop. This was probably due to low CPU exhausting and usage of SD card for the OS.
On odroid was the default scheduler cfq. With this scheduler in use, I've experienced system freezing, so I've changed it to noop like on Raspberry.
echo "noop" > /sys/block/mmcblk0/queue/schedulerSo far without any system freezing...
To make this changes permanent, I've created an udev rule /etc/udev/rules.d/60-schedulers.rules:
ACTION=="add|change", KERNEL=="mmcblk0", ATTR{queue/rotational}=="0", ATTR{queue/scheduler}="noop"
No comments:
Post a Comment