It's me again with another round of trivial simple.d additions. This time I have:
I've also reverted an earlier commit that made XFCE thumbnailer a high-priority process because some apps abuse it.
added Debian rules, only package management for now
These all package managements binaries are commonly (in my case really frequently) invoking manually by user, impatiently waiting for them to finish .
And for the background case, rather
I personally have moved cron|anacron to SystemIdle filter (IOPRIO_CLASS_IDLE + daemon.idle label).
But the cron tasks is probably better not to generalize, as for some of them may be pretty important to finish quickly even on heavy loaded system.
What do you think?
Thanks for the detailed comments!
It seems that the situation is even more complicated, because there are PackageKit and AptDaemon, and at least AptDaemon is known to spawn dpkg process that gets resource-hungry. Both are D-bus-activated and I think the activating process cannot be tracked down without monitoring d-bus activity (but I'd be glad to be proven wrong).
Either way, this requires way more complicated Lua rules, if doable at all, so I'm dropping this simple.d nonsense.
Oh, and if IOPRIO_CLASS_BE is still high for cron jobs, I guess it's a bug in system.lua and should be fixed there.
But the daemons are spawned under specific user, e.g. root, aren't they? So they should be scheduled correctly (after delay_new_pid ms) even having user.idle label. If they are not, there is a logic error in scheduler mappings (ordering of rules). And there are errors, but if I can see, user.idle should be handled correctly (ignored if not run under regular user), though daemon.idle would be problem.
But not using inheritance because of this would be pity.
PS: Now I see that blkio/bfqio user.idle rules do not check EUID, though the daemons are reparented to init., so they do not inherit flags from package management binaries anyway.
Revert "added Debian rules, only package management for now"
This reverts commit b579c70.
Revert "added xfce thumbnailer as high-prio background process" - dan…
…gerous generalization, needs a more complicated Lua rule
This reverts commit f939616.