You are not logged in.
Hello, I'm in the process of installing HL2 and would like to know if I can assign HL2 and Wine to a single core (my second) and run everything else on the first?
Offline
Yes you can... Google for "CPU Affinity" or "Processor Affinity" or something similar. (Sorry, I can't remember how to off the top of my head)
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
taskset -c 1 command
Replace 1 with which core you want, starting at 0, so 1 is infact your second core.
Offline
Yeah but read these pages too
http://en.wikipedia.org/wiki/Processor_affinity
http://www.tomshardware.co.uk/forum/pag … _10_0.html
Offline
taskset -c 1 command
Replace 1 with which core you want, starting at 0, so 1 is infact your second core.
If I understand the man page correctly, taskset only limits the process to that core, but it doesn't *reserve* that core for that process.
I think the OP wants to guarantee that his process has an entire core to itself. Taskset only looks (to me) like it limits the process to the core, but does not limit the core to the process.
If the above is true, would setting the niceness at -20 effectively give the process dominance on the core it's on? Ie:
taskset -c 1 command & pid=$!
renice -20 $pid
Offline
I do this with Thief 2 in Wine, which is unstable if it runs on more than one core:
taskset -c 1 /usr/bin/wine thief2
Offline
I think the OP wants to guarantee that his process has an entire core to itself. Taskset only looks (to me) like it limits the process to the core, but does not limit the core to the process.
AFAIK, the only way to do this would be to set all *other* processes to only use 1 core, thereby leaving one core free for the other process.
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline