Some Important Notes On Server Performance

  • Please make sure you are familiar with the forum rules. You can find them here: https://forums.tripwireinteractive.com/index.php?threads/forum-rules.2334636/

[TW]Ramm-Jaeger

Tripwire Interactive President
Oct 11, 2005
1,884
3,097
0
www.redorchestragame.com
Server Performance:

Windows 2008 R2 Only

- This is a big one. In the power settings there are two options "Balanced" and "High Performance". I believe 2008 defaults to "Balanced", but the server will run poorly like this. You must set this to "High Performance". A server admin reported changing this decreased his CPU usage 50% on one core (the main game core). In other words, his server was performing terrible before, and setting this gave him great performance.
- Windows Firewall: We've seen on some machines that for some reason Windows Firewall will throttle the bandwidth (and sometimes even stop the net traffic for a few seconds). If you experiencing strange times where the server stops sending network traffic altogether for a few seconds, this is probably the culprit. Try turning it off, and see if the problem goes away. It did on our servers. Other server admins have reported they never saw this issue.

Processor Affinity

- I don't know how many server admins I've seen complaining about server performance, and one of the first things they mention is "well I didn't set the affinity". Unless you are running virtualization (which I don't suggest) and the virtualization or some other software that is setting the affinity for you, you MUST set the affinity to get the best performance out of the game. The game thread needs exclusive access to a single core. Otherwise the OS will have it thrashing between cores which will cause the CPU load to go up, as well as pings and lag. I'm really serious on this one, it is a huge benefit to the way the server runs when it is near or at peak load.
- Don't set the affinity for more than one server to the same core: this one should go without saying, but if you do set your affinity, don't set multiple 64 player servers to the same core :) Havoc ensues. Give each server process it's own exclusive core for the game thread.
- Give the server its own physical core. If a server has hyperthreading on, then you should use all even or all odd cores for your affinity. You want to do 0,2,4,6 or 1,3,5,7, as that will be separate physical cores. If you do 0 and 1 with hyperthreading on, that will be the same physical core and will overload the CPU

Here is the commandline switch:

-PREFERPROCESSOR=x (where x=0,1,2, ...)

So for example:
-PREFERPROCESSOR=0
Would set the game thread's affinity to the first core.


Virtualization

- Most poeple have not had good results with virtualization and the RO2 game server. I would suggest at this point to avoid running with virtualization. I have had reports of servers that would peak thier CPU at 20 players when using virtualization, when the same machine would run 64 player easily without virtualization. With that said, I have also heard some server hosts/admins have had good results with virtualization, and I would be very interested to hear what software and configuration you are using.

Running Over Recommended Specs

- Please try and keep reasonably close to the Recommended Specs. We've seen a lot of poeple pushing thier machines WAY past the recommended specs. Doing so will only result in a laggy experience for your players, who will in turn leave your server, or our game. And more often than not, they will blame Tripwire and not the server admin. Here are the recommended specs we determined during the beta. Note: we actually got some decent optimization between beta and retail which gained us 10-15% better performance over the beta on the server. Still, I wouldn't suggest going TOO far over these:

32 Players: CPU usage - 1 Core of a 2.6 GHZ Core I7 or equivalent (i.e. the server process will take most of 1 core, with a few smaller threads on other cores). We also tested on an Intel Core2 Quad Q8400 @ 2.66GHz and that could handle 32 players but I wouldn't try and do 32 players with a machine much slower than that.

64 Players: Goal CPU usage - 1 Core of a Intel Xeon E3-1270 3.4 GHZ (3.8 GHZ actually with Turbo enabled) or equivalent (i.e. the server process will take most of 1 core, with a few smaller threads on other cores).

Strange Lag/Ping Anomalies

- There have been reports of strange ping/lag anomalies not related to CPU usage (i.e. servers running fine, then pings climb really high for everyone for an extended period of time, then go back to normal). I've finally been able to reproduce this on our test servers (by reproduce I mean see it happen first hand). It is very rare on my test servers (in 5 days of the servers running 64 players 24/7 this is the first time I've seen it). I'm probably going to need to build in some logging into the next update to give me more data on why/when this is happening so that I can track down the cause. I'll be looking for volunteers to turn on this logging and give me thier data. I've got some ideas what it might be, but I need to know for sure.
 

carter.s

FNG / Fresh Meat
Jul 28, 2011
52
1
0
Id be happy to help with extea logging.

Can you share your bios settings on your 1270 machine regarding turbo boost? Mobo model would help too.

Its important to note that the higher the load on all cores, the less turbo you see. So many servers on one 1270 will not reach 3.8
 

FullMetalMonkey

FNG / Fresh Meat
Aug 31, 2011
165
14
0
33
London, England
Strange Lag/Ping Anomalies

- There have been reports of strange ping/lag anomalies not related to CPU usage (i.e. servers running fine, then pings climb really high for everyone for an extended period of time, then go back to normal). I've finally been able to reproduce this on our test servers (by reproduce I mean see it happen first hand). It is very rare on my test servers (in 5 days of the servers running 64 players 24/7 this is the first time I've seen it). I'm probably going to need to build in some logging into the next update to give me more data on why/when this is happening so that I can track down the cause. I'll be looking for volunteers to turn on this logging and give me thier data. I've got some ideas what it might be, but I need to know for sure.

I'll have a word with [VS-UK]Joe (when hes awake) and see if he's happy for us to test this for you.

I don't see why he would have a problem with it. Its for the greater good and we've seen it happen on our 38 player server a fair bit, we originally started off with 48 players but 38 seems to be the 'sweet spot' at the moment.

I've started out with a ping of around 16-40 and then after a few games i've noticed its creeped upto 120+. It doesn't actually seem to be noticiable though, like as if the ping counter is lying, although i don't think it is. It certainly doesn't feel like im playing with a ping of that high.

- Windows Firewall: We've seen on some machines that for some reason Windows Firewall will throttle the bandwidth (and sometimes even stop the net traffic for a few seconds). If you experiencing strange times where the server stops sending network traffic altogether for a few seconds, this is probably the culprit. Try turning it off, and see if the problem goes away. It did on our servers. Other server admins have reported they never saw this issue.
We have it on and it doesn't seem to affect us at all.

This is a big one. In the power settings there are two options "Balanced" and "High Performance". I believe 2008 defaults to "Balanced", but the server will run poorly like this. You must set this to "High Performance". A server admin reported changing this decreased his CPU usage 50% on one core (the main game core). In other words, his server was performing terrible before, and setting this gave him great performance.
Need to test this one. Will get back to you tomorrow (its 03:34am GMT). I was going to try this on my own personal gaming machine to see if it helps my FPS, a couple of days ago.

EDIT: Oh and Ramm-Jaeger, you seriously need to start stickying your threads mate.
 
Last edited:

[VS-UK]Joe

FNG / Fresh Meat
Jun 2, 2011
48
1
0
Server Performance:
- Windows Firewall: We've seen on some machines that for some reason Windows Firewall will throttle the bandwidth (and sometimes even stop the net traffic for a few seconds). If you experiencing strange times where the server stops sending network traffic altogether for a few seconds, this is probably the culprit. Try turning it off, and see if the problem goes away. It did on our servers. Other server admins have reported they never saw this issue.

Hi All,

Allthough i have not seen this issue on windows 2008 i would NOT recommend anyone to disable the firewall on there server unless you are replacing it with another firewall product. Disabling the firewall while you box is open to the entire world is asking for trouble.

In short, If you want to get rid of the windows 2008 firewall then fine, but PUT somesort of product in its place!

I also have a question which is why didnt the server software be devolped to run better over mutiple cores? Shurly in this day and age you guys much has relised that mutiple cores are more likey going to be found in servers rather than one massive processor?

If the server software is not devoloped for mutiple cores is the game? Again i havent looked into how the game performs on my machine but i would have though if its not, the game have been devloped not to be very efficent

I have also adjusted our power settings, allthough as i run the RO server as a service im not sure if it will have any effect. (My understanding of the 2k8 archacture was that services are given priority over processes)

I am also more than happy to test anything for you guys if required!

Thanks

Joe.
 
Last edited:

puggy

FNG / Fresh Meat
Sep 2, 2011
151
10
0
www.brothersclan.co.uk
[TW]Ramm-Jaeger, superb info. Using this info, plus the performance improvements on the last server update, we have seen pings get as low as 40-50ms on our game server with 40 people connected. Well done on that.

Have noticed that sometimes arti and tanks seem to cause a blip in pings for people effected by them.

Would be happy to test any logging etc, have full access to our box and are UK based, if you want to test in different time zones etc.
 

*®FK®*Feldjäger

FNG / Fresh Meat
Nov 5, 2010
60
7
0
www.franzkaiser-clan.de
server settings for 64

server settings for 64

hello,
what are the optimal server settings for 64 slots ...
I have problems with our servers to ping 150-300 when I turn punkbaster ... the pings are in the highest and then there was ...
without pungbaster was exposed ... the pings 100-160 are better but still not optimal ...

map TE-RedOctoberFactory ping 150-200 (no punkbaster)

exactly where I can adjust what ..?

please help ...

thank you

Rootserver
INTEL Core i7 QuadCore 950 8x 3.06Ghz
24GB DDR3

cpu.jpg



 
Last edited: