6 ms·
I find that task priorities in general are not strict enough under Linux. Try running a cpu heavy but very low priority task in background and it still manages
by PhilipRoman 3y ago
I find that task priorities in general are not strict enough under Linux. Try running a cpu heavy but very low priority task in background and it still manages to measurably affect the latency of the more important process. And this is just the CPU, not to mention disk utilization and network usage.
I was too lazy to find a proper solution, so I just used mlockall after allocating a massive heap and pin the process to a core that is reserved only for this specific purpose.
I think cgroups has very flexible tools for reserving system wide resources, but haven't had the time to test it yet.