Is there a way to exclude a processor from normal scheduling?
That is, using sched_setaffinity
I can indicate which processor a thread should run on, but I'm looking for kind of the inverse. That is, I want exclude a given processor from the normal scheduling, such that only processes which have been explicitly scheduled there can run there.
I also know that during boot I can limit the processors used by the init process, thus all inherited process. I was however hoping there would be a more dynamic solution than this -- something I can change post-boot.
Note that I'm looking to schedule threads, not just high-level processes (this might make a difference in some cases).