Summary: | >=sys-kernel/gentoo-sources-4.10 BFQ IO scheduler cannot be selected | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | deterenkelt <deterenkelt.github> |
Component: | Current packages | Assignee: | Gentoo Kernel Bug Wranglers and Kernel Maintainers <kernel> |
Status: | RESOLVED OBSOLETE | ||
Severity: | normal | CC: | jstein |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
deterenkelt
2018-06-08 04:30:31 UTC
That link does not resolve and I'm not sure what it does since I can't see it. With a pure gentoo-sources kernel, are you telling me you can't select BFQ ? Yes. The patch is but several lines that do cosmetic, BFQ still has to be enabled with a local.d script (shown above). I’m on 4.17.0 now. what patch? I get a 404. What local script above? > what patch? I get a 404. I didn’t save it. But it was changing the order of menu items in IO schedulers section in menuconfig and added BFQ to the list of selectable schedulers. The list of IO schedulers in menuconfig by default looked like Deadline, CFQ, <submenu to choose default IO scheduler>, MQ, Kyber, BFQ. The patch put the submenu before all schedulers and made them selectable (the ability to be selected doesn’t depend on the item position in the list, however). As it was already said, the patch did only cosmetic changes in menuconfig, the kernel ignored those settings anyway. I’ve tried to boot the kernel without elevator=bfq and with it – but after the boot was finished and I could log in, all the drives had CFQ. An initramfs can not be an issue with the “elevator” option, for I don’t use any initramfs at the moment – grub loads kernel directly. > What local script above? Because the kernel ignored the chosen IO scheduler even with the elevator option, the only way to select it was to operate on /sys/. I had to write a short shell script and put it in /etc/local.d/bfq-selection.start #! /bin/bash for drive_scheduler in /sys/block/sd*/queue/scheduler; do echo bfq > $drive_scheduler done exit 0 Hope this clears the situation more, this is all I can add. In “put the submenu before all schedulers” s/before/after/ BFQ is now included in the upstream kernel |