Yes, because these frontends are all different, so these policies are also different even though they share the basic idea.
If you implement it in systemd, every console (session) gets a fair share of the CPU. If you implement it in the desktop, every app in the session gets a fair share of the CPU within what is allotted to the session. If you implement it in gnome-terminal, every tab gets a fair share of the CPU within what is allotted to gnome-terminal by the desktop. And so on. Every application that needs to subdivide its share of the CPU must implement the policy.
Within the kernel, you can only make a simple per-tty policy, which only works in a very specific case ("the desktop will not get less CPU than what each tty will get"). For example, it will not work if you have mplayer in one window and an ffmpeg frontend on the other. It makes no sense, except that it affects Linus's workflow so he likes it.
0
u/[deleted] Nov 19 '10
[deleted]