Posts: 2,031
Threads: 27
Joined: Nov 2008
Reputation:
17
why are you asking? do you have actual problems? it seems right so far if you intend to let the server run on the second cpu (it counts from 0).
Posts: 50
Threads: 17
Joined: Mar 2005
Reputation:
0
Why am I asking? Because clearly its not working.
taskset -p returns affinity mask f
Posts: 16
Threads: 0
Joined: Sep 2009
Reputation:
0
it should work like this:
taskset -c 1 screen -A -m -d -S css-server ./srcds_run -console -game cstrike +map de_dust2 +maxplayers 33 -autoupdate -tickrate 66 +fps_max 600 -port 27015 +ip 174.137.53.222
hope it works 4 u.. ;]
Posts: 16
Threads: 0
Joined: Sep 2009
Reputation:
0
i only use taskset for my idlerstartscript :x.. and its taskset before screen there.. so its working pretty well :]
Posts: 2,031
Threads: 27
Joined: Nov 2008
Reputation:
17
taskset before or after the screen won't matter, as the cpu affinity will be inherited to child processes. the only differens will be, that also the screen itself will be bound to the cpu if you write taskset before the screen...
Posts: 50
Threads: 17
Joined: Mar 2005
Reputation:
0
09-12-2009, 01:26 AM
(This post was last modified: 09-12-2009, 01:39 AM by propaganda.)
Is it worth setting affinity with quadcore? I have 4 games running on the box. I also get odd returns on which core is being used. For example I bound CSS to run on core 3 and it returns:
affinity mask 8
I bound TF2 to cores 0,1 and it returns
affinity mask 3
Posts: 2,031
Threads: 27
Joined: Nov 2008
Reputation:
17
it's worth trying everything you can. this stuff is different on all machines.
it's not odd what it returns. the mask is a bitmask, so a mask of 8 (=1000 in binary) means the 4th core (=core 3), and a mask of 3 (=0011) means cores 0 and 1. no magic about this :-)