4 ms·
What I'd like to know is how this plays out at the operating system level. We can run cachegrind on a program, but it doesn't take into account the effects of
by DigitalJack 11y ago
What I'd like to know is how this plays out at the operating system level. We can run cachegrind on a program, but it doesn't take into account the effects of task switching of the OS (as far as I know).
I think it would be lovely in these multicore days if we could dedicate a core to a process and have as close to 0 task switching as possible on that core.
- hyperpape 11y agoPretty sure it's possible: http://xmodulo.com/run-program-process-specific-cpu-cores-linux.html http://xmodulo.com/run-program-process-specific-cpu-cores-li...
- DigitalJack 11y agoThat's close, but I think it is only half the equation. The other half would be granting exclusivity to that process for the core, not just affinity.
- hyperpape 11y agoIsn't that the isolcpus command it mentions at the bottom? Btw: this was just a quick google search, I've never done this. But I'm pretty sure I've heard Martin Thompson discuss it.
- DigitalJack 11y agoYou are absolutely right. I stopped reading before I got to the bottom. That's really neat!