How can I set deadline as the I/O scheduler for USB Flash devices by using udev rules?
Posted
by
????
on Super User
See other posts from Super User
or by ????
Published on 2012-09-30T15:13:23Z
Indexed on
2012/09/30
15:40 UTC
Read the original article
Hit count: 240
I have set CFQ as the default I/O scheduler. I often get bad performance when I write data into a Flash device. This is resolved if I use deadline as the I/O scheduler for USB Flash devices. I can't always change the scheduler manually, right? I think writing udev rules is a good idea.
Can someone please write rules for me? I want:
- When I plug in a USB device, detect the type of the device.
- If it is a portable USB hard disk, do nothing (I think if a device has more than one partitions, it always a portable hard disk.
- If it is a USB Flash device, set deadline as it's scheduler.
© Super User or respective owner