Posts: 6
Threads: 2
Joined: Jan 2008
Reputation:
0
Hey guys,
I run a pretty large server, and use TCAdmin on my box. It's a very nice box, and can hold quite a bit. However, i looked around here for answers on CPU Affinity and what would be appropriate.
The box consists of Dual Quad-Core CPU's @ 2.5 GHz (Harpertowns), 4GB's of memory.
I use TCAdmin as I mentioned above, and I was always curious about how the load should be distributed.
I run the following off of the machine:
Counter-Strike: Source 32 player 100 tick x3
Team Fortress 2: 32 player 66 tick x3
Call of Duty 4
I know that SRCDS can only utilize one core, but what ill effects are there if I don't have the affinity boxes checked through TCAdmin?
What would be the best way to balance this load out for such a large amount of players at that tickrate?
My only fear is that it will lag somehow by fully loading one core instead of an entire cpu to distribute it over.. so I'm just trying to figure out the best performance.
Any help would be much appreciated!
Thanks!
Posts: 6
Threads: 2
Joined: Jan 2008
Reputation:
0
I've been testing it on one CPU, and it raises the CPU usage pretty high with Bots in there. I'm not sure how it'll do with players, but sometimes the server-side FPS drops really badly. Is there anyway to get this to run smoothly with no problems or negative effects?
I also tried without any affinity, and it dropped the tickrate to 8 sometimes.
So, how would it be if i set it to 1 whole CPU? 4 cores for all the CS servers?
Posts: 5,178
Threads: 65
Joined: Mar 2005
Reputation:
22
1, you can't run 100 tick on a gameserver with more than 18 players.
2. Normally (since SRCDS uses 1 core) binding/setting affinity to one core increases performance, when you don't set affinity windows will start switching it from one core to another to balance the load (which is not necessary cause you have a full core available, windows knows nothing really...) which results in bad performance.
Best thing would be:
TF2 server1: Core 1
TF2 server2: Core 2
TF2 server3, Core 3
COD4 server: Core 4
CSS: spread over the other cores
Keep Core 0 clean for the system, or run a small server from it, since you have 8 cores there shouldn't be any problem overloading a core since you can assign one server per core.
Posts: 5,178
Threads: 65
Joined: Mar 2005
Reputation:
22
task manager => affinity, select 1 core from that list.
Posts: 6
Threads: 1
Joined: Mar 2008
Reputation:
0
yeah i've see now, but when the server crash/restart it sets to all 4 cores again =/
Posts: 5,178
Threads: 65
Joined: Mar 2005
Reputation:
22
yup, you need a script or (in windows server) an additional startup command to set the affinity automatically.
Posts: 5,178
Threads: 65
Joined: Mar 2005
Reputation:
22
You need some side program that can set affinities and works through commandline, however I didn't succeed when I tried (I only took 2,5 hours time to write something and then I got bored and never looked at it again since I don't need it anyways)
Posts: 6
Threads: 0
Joined: Mar 2008
Reputation:
0
I use a simple "start /affinity 1 srcds.exe blabla ..." to do that job.
Posts: 5,178
Threads: 65
Joined: Mar 2005
Reputation:
22
Yes, but that's only possible on Windows Server versions, not on other windows.
Don't know what OS the OP has.
Posts: 15
Threads: 4
Joined: Nov 2008
Reputation:
0
12-14-2010, 08:18 AM
(This post was last modified: 12-14-2010, 08:19 AM by chris999989.)
You can go to the length of setting up firedaemon. It gives you the ability to make any program run as a service +++ many different settings along with it. I use it on my servers. If the server crash it starts it back up and through it i have core affinity automatically set up. You also get the ability to set priority.
Posts: 1,321
Threads: 85
Joined: Feb 2008
Reputation:
11
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.
~ trewq