NS2 Server lagging/chugging
Mikeym1
Join Date: 2012-11-16 Member: 171951Members
We are currently running an 8 core xeon with 16GB on a 100mbps burst port, and once the server hits 24 players, the server starts to chug (even though only at 10% CPU / 18% RAM) and lag every couple seconds teleporting players back a few seconds. We're unsure the cause, and was hoping somebody else had the same problem. We do see "Error! Maximum number of snapshots exceeded" once this begins to happen.
Comments
The server is running on all 8 cores (all processors) on high affinity (we've tested with lower affinity also) and the cores at 2.5Ghz each.
Core affinity should be set as such:
0: Reserved for the OS (Windows)
1: Server #1
2: Server #2
3: Server #3
The issue you describe has to do with the server tick rate dying - type net_stats in your console when this occurs. It should nominally stay around 30, but when people start warping, it usually has dipped to 10 or below.
Our server runs a 2.83GHz Q9550 and even with 16 players, the tick rate bounces between 15-25 in the late game.
Core affinity should be set as such:
0: Reserved for the OS (Windows)
1: Server #1
2: Server #2
3: Server #3<!--QuoteEnd--></div><!--QuoteEEnd-->
No, they are two actual CPUs.
So there's no way to get it to use multiple cores at the moment?
Gaming server hosts usually sell their servers per box based on available CPU cores. So in terms of cost for server, a Quad Core CPU being able to run 3 servers with core 0 for OS, is a common setup. There is that and to expand on this, a NS2 server is very dependent on pure brute CPU power in terms of GHz
24 Players = >4.0GHz CPU
16 Players = >3.0GHz CPU
8 Players = >2.0GHz CPU
Also, you can lock down each server to one core, but I've personally haven't found it to improve performance. The two biggest things you can do to increase performance are 1) get a CPU with a higher clock speed (or overclock) and 2) disable EIST and C-states (the functions that downclock when the computer is idle), which have been known to make performance less stable.
I'm astonished that you're struggling but maybe the pure clock speed does make that much of a difference.
I'm astonished that you're struggling but maybe the pure clock speed does make that much of a difference.<!--QuoteEnd--></div><!--QuoteEEnd-->
In terms of raw numbers, it does appear to dip a bit, or at least not be 100% stable.
<a href="http://ns2servers.devicenull.org/servers/6709/69.162.82.210:27018" target="_blank">http://ns2servers.devicenull.org/servers/6...62.82.210:27018</a>
Whether or not it's noticeable in-game, I'm not sure.
From my experience, a lot of players seem to notice it, but then assume it's their own PC's rather than the server.
Granted, this is on other servers that have this problem; I've never played on your server before, so I can't say.
<a href="http://ns2servers.devicenull.org/servers/6709/69.162.82.210:27018" target="_blank">http://ns2servers.devicenull.org/servers/6...62.82.210:27018</a>
Whether or not it's noticeable in-game, I'm not sure.
From my experience, a lot of players seem to notice it, but then assume it's their own PC's rather than the server.
Granted, this is on other servers that have this problem; I've never played on your server before, so I can't say.<!--QuoteEnd--></div><!--QuoteEEnd-->
That's acceptable performance. My personal criteria for server performance is:
Perfect = Almost no tickrate drop (29-30 all the time)
Ideal = No drops lower than 20 tickrate
Acceptable = No drops lower than 10 tickrate
Bad/Unacceptable = Drops below 10 tickrate
<a href="http://ns2servers.devicenull.org/servers/6709/69.162.82.210:27018" target="_blank">http://ns2servers.devicenull.org/servers/6...62.82.210:27018</a>
Whether or not it's noticeable in-game, I'm not sure.
From my experience, a lot of players seem to notice it, but then assume it's their own PC's rather than the server.
Granted, this is on other servers that have this problem; I've never played on your server before, so I can't say.<!--QuoteEnd--></div><!--QuoteEEnd-->
Interesting I didn't even know you could see stats like that. I've never noticed anything major. There's a few times when it's felt just a little off but like you said I just assumed it's my PC. I only remember noticing anything when it's like a major firefight with Onos/Exos/ARCs, etc. It is nice to see that chart. Thanks for sharing.
Guessing average 20-25 with 24 players is decent?