How can I set deadline as the I/O scheduler for USB Flash devices by using udev rules?
- by ????
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.