I've written virtual input drivers for Linux, and a server that communicates with them via /dev nodes. Now, one of them is a virtual mouse and it's quite important that what the signal server receives gets to the driver as soon as possible for the mouse to feel smooth.
For that reason I set ionice for the server process to 1 (still not to get priority over important linux daemons):
if (ioprio_set(IOPRIO_WHO_PROCESS,getpid(), 1 | IOPRIO_CLASS_RT << IOPRIO_CLASS_SHIFT) == -1) {
logger->error("ioprio_set() error",errno);
}
But I'm not certain that it even is worth it. Difference, even if any, is not noticable. Are the character special files in /dev/ considered when it comes to I/O priority, despite that no access to the actual disk is given?