You are not logged in.
Pages: 1
Topic closed
USB storage devices seem slow on the default (CFQ) scheduler, I am looking for a way to set /sys/block/sd[X]/que/scheduler to noop when a new USB storage device is plugged in.
Found some limited info on the WWW but I can't seem to get it to trigger even a test command when the drive is plugged in.
Anyone good with udev rules? most of the info i can find appears somewhat outdated.
Cheers,
Steve.
Offline
# /etc/udev/rules.d/60-usb-storage.rules
# set deadline scheduler for usb-storage devices
ACTION=="add|change", KERNEL=="sd[a-z]", SUBSYSTEM=="block", DEVPATH=="*usb*", ATTR{queue/scheduler}="deadline"
Disclaimer: Works for me on my devices. I don't know if it causes regressions on other devices.
Offline
Holy necro batman
Thanks for the info, I'm actually running Debian these days, and the issue I was trying to workaround is no more... but I'll file this for future reference.
Offline
No necro-bumping.
Closing.
R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K
Offline
Pages: 1
Topic closed