Hi all,
With 0.8.4 and 0.8.5 there were two new features added for games that can cause some confusion for folks not familiar with what they are and do. Both of these features have config options in WHM for each user/game/server install # on the "manage game" page.
The first is the ability to set the CPU affinity for each game, so for instance you want to have a server always use one CPU core on your quad core server (may show up as 8 with hyperthreading), you can choose which of the available cores to stick it on and it will never roam around to other cores like it would by default. This came up due to some lag spikes seen on a clients server whenever the process was moved from core to core via the kernel. Normally this isn't noticable, but apparently on some machines it is. This feature can also be used to help guarantee a client that their server will have a certain amount of CPU available to it.
The other new feature is the ability to set the scheduler used for each game server. By default, processes use the SCHED_OTHER scheduler which doesn't allow priority between processes. Many high performance servers will use the SCHED_FIFO (first in first out) or SCHED_RR (round robin) schedulers with a high priority to allow the game servers to get fast response times from the system.
If you do not set the config for any of these features, they will remain as they always have been. Both of these features require the util-linux package (for taskset and chrt binaries) which should be part of any distro's core packages, but heads up given just in case.
If you run into trouble with these features please let me know, I tested them out on as many servers as I could, but there may be fringe cases where they won't work as expected so I'd like to take a look at them if possible.
Have fun![]()



LinkBack URL
About LinkBacks
Reply With Quote






