You are not logged in.

#1 2008-03-15 15:48:28

xer0
Member
Registered: 2008-03-09
Posts: 9

Howto limit a process to only use one cpu core.

Hi,
I was just wondering if there is some way in linux to restrict a certain process to only use one specific cpu core.
The reason why i ask this is because i want to play some old pc games like RedAlert with wine (which seem to demand a lot of patience and time whatsoever...), and i read a post in a forum which claimed that there could be certain problems on dual core cpus.
In windoz some of these problems sometimes tend to dissapear if you restrict the process to only use one cpu core, but i don't
know how to do that in linux, and perhaps it's irrelevant in linux if it uses some other type of thread scheduling scheme than windows does..

Sorry for the noobish question and my poor English, but it would be interesting to know a bit more about how to control stuff like this... smile

Last edited by xer0 (2008-03-15 16:17:07)

Offline

#2 2008-03-16 00:54:46

dimi
Member
Registered: 2005-12-04
Posts: 15

Re: Howto limit a process to only use one cpu core.

You can use the tool "taskset" for this purpose. It is in the util-linux-ng package.
e.g. taskset -c 0 frozen-bubble

Read more about it here: http://www.cyberciti.biz/tips/setting-p … ocess.html

Offline

Board footer

Powered by FluxBB