SRCDS Steam group


Setting core affinity in run line
#1
I am trying to set core affinity in my run line script, but after startup it shows affinity to f, I have to manually assign by id. My run line

Code:
screen -A -m -d -S css-server taskset -c 1 ./srcds_run -console -game cstrike +map de_dust2 +maxplayers 33 -autoupdate -tickrate 66 +fps_max 600 -port 27015 +ip 174.137.53.222

Is this the proper way to go about it or should I define it differently?
Reply
#2
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).
http://www.fpsmeter.org
http://wiki.fragaholics.de/index.php/EN:Linux_Optimization_Guide (Linux Kernel HOWTO!)
Do not ask technical questions via PM!
Reply
#3
Why am I asking? Because clearly its not working.

taskset -p returns affinity mask f
Reply
#4
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.. ;]
Reply
#5
JOHNNYCRE8 Wrote: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.. ;]

Really?. Putting taskset after screen works for me.
Reply
#6
i only use taskset for my idlerstartscript :x.. and its taskset before screen there.. so its working pretty well :]
Reply
#7
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...
http://www.fpsmeter.org
http://wiki.fragaholics.de/index.php/EN:Linux_Optimization_Guide (Linux Kernel HOWTO!)
Do not ask technical questions via PM!
Reply
#8
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
Reply
#9
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 :-)
http://www.fpsmeter.org
http://wiki.fragaholics.de/index.php/EN:Linux_Optimization_Guide (Linux Kernel HOWTO!)
Do not ask technical questions via PM!
Reply
#10
BehaartesEtwas Wrote: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 :-)

Ahhhh ok, thanks for answering that.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)