GoodToLearn
GoodToLearn

Reputation: 89

How to allow only a (few) specific process/thread run on a core on Linux

I know how to pin a process/thread to a core on Linux.

What I like to know is how to ban/exclude any other process/thread from running on that particular core.

Upvotes: 0

Views: 1296

Answers (1)

superdesk
superdesk

Reputation: 1172

You can use isolcpus to isolate the cpu core, and then migrate the processes you want on the core using sched_setaffinity.

If you are worried about interrupts, see this answer: https://stackoverflow.com/a/13585364/1601162

Upvotes: 1

Related Questions