Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

In Windows, it is possible to make a program run on any number of cores in a multicore processor. It can be set in the Task Manager GUI.

Likewise, Is it possible to set the process affinity in Linux, on the command line? To specify what cores the process can run

share|improve this question

1 Answer 1

up vote 1 down vote accepted

According to the Debian package manager schedtool can do it. (However, it is a command line tool)

Don't know of any GUI tools.

This article http://www.linuxjournal.com/article/6799 indicates that Linux was late to the game of setting cpu affinity. Also with 2.5 kernels and newer, the ping pong effect is not present, processes tend to stay on the same cpu. Therefore setting CPU affinity MAY not be necessary.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.