Posts: 6
	Threads: 2
	Joined: May 2008
	
Reputation: 
0
	 
	
	
		First off, thanks for this site. A week ago I set up a dedicated box and this site has been an awesome resource.
Currently I run 2 24 slot TF2 servers and 1 CSS match server on our box
Specs:
Q6600 2.4Ghz (quad core obviously)
4Gigs RAM
CentOS 
All of the servers work great, I'm not trying to push them really that hard, 66 tick for the tf2 and 100 for the css. My question is, if I set up the renice cron jobs for all 3 servers like your tutorial says, will it set priority to the srcds instance ON EACH CORE? If so, then technically on my setup you could run 4 servers (1 instance per core) with them all renice'd to have them all working at their fullest. 
Thanks in advance for your guidance.
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 116
	Threads: 16
	Joined: Sep 2007
	
Reputation: 
0
	 
	
	
		no, it will only increase its processing priority, to set it to the cores use
taskset
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 6
	Threads: 2
	Joined: May 2008
	
Reputation: 
0
	 
	
	
		OK, could you give some insight on setting taskset, I've never had to do it in linux before? It was my understanding when you start up your instance of the srcds it would align itself with the 'free-est' core. Would it jump around from core to core or just stay on the one?
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 728
	Threads: 2
	Joined: May 2006
	
Reputation: 
0
	 
	
	
		if it's an existing process then:  taskset -pc pid core, so if you want to set process 3241 to core 4 it would be:  taskset -pc 3241 3  (cores start at 0 so 4 cores are numbered 0-3)
if you want to start a new process then i find it easiest to make 2 startups, one that will taskset the second one.  so if your startup script is startserver.sh  then make one that is:
taskset -c core# pathto./startserver.sh
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 6
	Threads: 2
	Joined: May 2008
	
Reputation: 
0
	 
	
	
		Thanks for the information. What is you opinion on it? Do you think setting affinity is a good thing to do? Seeing as I have 4 cores and only 3 servers, it seems like the smart thing to do to ensure each it getting a dedicated portion of the cpu.
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 105
	Threads: 14
	Joined: Jan 2005
	
Reputation: 
0
	 
	
	
		Don't use taskset for srcds, it causes performance and fps issues.
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 3,906
	Threads: 404
	Joined: Oct 2007
	
Reputation: 
21
	 
	
	
		Please do not raise old, dead threads from the dead.  If you need similar help, please feel free to post your own thread with your question.  Remember to read the required READ ME FIRST thread for the area in which you are posting.
Thread Locked.
	
	
	
~ Mooga ...w00t? - 
SRCDS.com on Twitter
![[Image: 76561197965445574.png]](http://badges.steamprofile.com/profile/simple/steam/76561197965445574.png) Please do not PM me for server related help
Please do not PM me for server related help
fqdn Wrote:if you've seen the any of the matrix movies, a game server is not all that different.  it runs a version of the game that handles the entire world for each client connected.  that's the 2 sentence explanation.