SRCDS Steam group


Q: Low fps on the server.
#16
don't look at the cpu usage. it's more or less a random number and has very little to do with the real cpu usage (which cannot be measured).
http://www.fpsmeter.org
http://wiki.fragaholics.de/index.php/EN:Linux_Optimization_Guide (Linux Kernel HOWTO!)
Do not ask technical questions via PM!
Reply
#17
Made a test with more servers.

So what i've got.
BHOP server - 4/12 players
CSS PUBLIC - 18/22 players
TF2 Turbo server - 20/24 players.

Now the fps on the servers.

TF2:
Code:
CPU   In    Out   Uptime  Users   FPS    Players
0.00 57514.12 156675.25    3695     6   23.38      20
stats
CPU   In    Out   Uptime  Users   FPS    Players
0.00 57123.12 155242.97    3695     6   37.34      20
stats
CPU   In    Out   Uptime  Users   FPS    Players
0.00 56895.02 155477.19    3695     6   24.95      20
stats
CPU   In    Out   Uptime  Users   FPS    Players
0.00 56707.75 157712.34    3695     6   18.89      20
stats
CPU   In    Out   Uptime  Users   FPS    Players
0.00 56808.02 163718.09    3695     6   34.26      20
stats
CPU   In    Out   Uptime  Users   FPS    Players
0.00 56812.39 172872.73    3695     6   20.43      20
stats
CPU   In    Out   Uptime  Users   FPS    Players
0.00 56683.56 177323.33    3695     6   24.88      20
stats
CPU   In    Out   Uptime  Users   FPS    Players
0.00 56707.29 178423.56    3695     6   15.27      20
stats
CPU   In    Out   Uptime  Users   FPS    Players
0.00 56898.30 182638.31    3695     6   45.05      20
stats
CPU   In    Out   Uptime  Users   FPS    Players
0.00 57245.42 186009.61    3695     6   16.62      20
stats
CPU   In    Out   Uptime  Users   FPS    Players
0.00 57563.36 186874.59    3695     6   10.67      20
stats
CPU   In    Out   Uptime  Users   FPS    Players
0.00 58171.78 186714.91    3695     6   18.76      20
stats
CPU   In    Out   Uptime  Users   FPS    Players
0.00 58625.12 187328.12    3695     6   14.46      20

PUBLIC:
Code:
statsCPU   In    Out   Uptime  Users   FPS    Players
0.00 90827.95 209547.86    3147    60  110.59      18
stats
CPU   In    Out   Uptime  Users   FPS    Players
0.00 90748.47 211007.55    3147    60   70.25      18
stats
CPU   In    Out   Uptime  Users   FPS    Players
0.00 91022.91 210730.47    3147    60   94.84      18
stats
CPU   In    Out   Uptime  Users   FPS    Players
0.00 91187.30 210805.17    3147    60  193.39      18

stats
CPU   In    Out   Uptime  Users   FPS    Players
0.00 90266.38 193882.16    3147    60   74.51      18
stats
CPU   In    Out   Uptime  Users   FPS    Players
0.00 90326.91 193338.88    3147    60   87.71      18
stats
CPU   In    Out   Uptime  Users   FPS    Players
0.00 90293.78 193032.64    3147    60   82.49      18
stats
CPU   In    Out   Uptime  Users   FPS    Players
0.00 90190.25 193448.14    3147    60  193.69      18

BHOP:
Code:
CPU   In    Out   Uptime  Users   FPS    Players
0.00 23521.90 31096.22     469    31  145.96       4
stats
CPU   In    Out   Uptime  Users   FPS    Players
0.00 23544.26 31145.28     469    31  139.51       4
stats
CPU   In    Out   Uptime  Users   FPS    Players
0.00 23574.12 31264.96     469    31  134.92       4
stats
CPU   In    Out   Uptime  Users   FPS    Players
0.00 23718.71 31418.11     469    31  136.95       4
stats
CPU   In    Out   Uptime  Users   FPS    Players
0.00 23854.62 31522.49     469    31  103.80       4
stats
CPU   In    Out   Uptime  Users   FPS    Players
0.00 23922.03 31462.30     469    31  138.27       4
stats
CPU   In    Out   Uptime  Users   FPS    Players
0.00 23979.30 31367.33     469    31  137.31       4
stats
CPU   In    Out   Uptime  Users   FPS    Players
0.00 23980.73 31162.55     469    31  137.72       4

The top looks like:
Code:
top - 13:49:05 up 2 days, 15:01,  1 user,  load average: 0.57, 0.86, 0.72
Tasks: 227 total,   5 running, 222 sleeping,   0 stopped,   0 zombie
Cpu(s): 38.2%us,  2.4%sy,  0.0%ni, 55.5%id,  0.1%wa,  2.7%hi,  1.1%si,  0.0%st
Mem:   2047092k total,  1956492k used,    90600k free,   154900k buffers
Swap:  4128760k total,     6536k used,  4122224k free,   982696k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
3888 root      -3 -20  353m 230m  11m S 76.0 11.5 285:35.71 srcds_linux
14260 root     -99 -20  328m 178m  10m R 60.2  8.9   1448:41 srcds_linux
8270 root      -3 -20  309m 142m  23m S 30.1  7.1 121:03.80 srcds_linux
  110 root     -51   0     0    0    0 S  4.6  0.0 127:15.31 irq/18-ata_piix
  118 root     -51   0     0    0    0 S  4.0  0.0 113:46.78 irq/18-uhci_hcd
   36 root     -50   0     0    0    0 S  3.0  0.0  60:04.67 sirq-net-rx/2
1429 root     -51   0     0    0    0 S  1.7  0.0  31:40.23 irq/54-eth1
2138 root      20   0 20476  13m 3564 S  1.0  0.7  11:42.45 hlstats.pl
19267 root      20   0  1924  596  524 S  1.0  0.0   0:00.04 sadc
   26 root     -50   0     0    0    0 R  0.3  0.0   1:58.81 sirq-sched/1
   34 root     -52   0     0    0    0 S  0.3  0.0   2:01.39 sirq-timer/2
1672 mysql     20   0  128m  33m 4776 S  0.3  1.7  95:41.71 mysqld
1930 ts        20   0 32984 5368 3176 S  0.3  0.3   7:01.81 ts3server_linux
19258 root      20   0  2564 1124  816 R  0.3  0.1   0:00.09 top
19265 root      20   0  1924  676  580 S  0.3  0.0   0:00.01 sar
    1 root      20   0  2032  588  484 S  0.0  0.0   0:02.09 init
    2 root      20   0     0    0    0 S  0.0  0.0   0:00.00 kthreadd

The cron resched is not working. Don't know why. When a start the script by the command from ssh - it works fine. But at some moments the priority drops to "-3".

But the problem is not here.
What could it be?
I think may be the problem is in memory.

What do you think?
Launch options of the servers.
Code:
screen -A -m -d -S tf ./srcds_run -game tf -console -autoupdate -secure -tickrate 66 -ip * -port 27015 +map cp_egypt_final +maxplayers 24 +fps_max 300

Yes, running them with screen.
Reply
#18
Can you explain to me the difference between 100Hz kernel and 1000Hz?
Reply
#19
sorry, I think everything is said about this topic. your CPU is too slow to handle that many servers. you might try one single server and get that running in the possible best way and then add a second server. but more will not be possible. you have only two cpus (the other "cores" are just from hyperthreading). but I think even for one single server your cpu is too slow. maybe that 12 slot BHOP server could work, but 22 or 24 slots won't work. buy a better cpu.

---

100 HZ might reduce the cpu used by the kernel (not the game servers) slightly, while on some older systems 1000 HZ seem (or seemed) necessary to have 1000 fps, as the HZ limited the fps. in your case you might want to try both, because your system is OLD.

but I would not spend too much time with that root server. it is very likely that you will never be able to run your servers like you want. even the best optimizations cannot improve the hardware.
http://www.fpsmeter.org
http://wiki.fragaholics.de/index.php/EN:Linux_Optimization_Guide (Linux Kernel HOWTO!)
Do not ask technical questions via PM!
Reply
#20
(07-29-2010, 02:49 PM)saintjimmygd Wrote:  Didn't you read the other threads ? ....
Your system is ok for running those servers,recompile a kernel with zen-patches and set 100 hz with dyn ticks and hrt and zen-profile (server).Also you should use fps_max 0 , host_framerate 0 , -tickrate 33/66 , sourcetv=0.

can you provide a link with kernel with zen-patches and set 100 hz with dyn ticks and hrt and zen-profile tutorial?
Reply
#21
Besides do not run any kind of serverdeamons with the User root.
It is risky and often leads to trouble. Create a user for each kind of server you want to run Wink
Interactive web based config creator for CS, CSS, TF2 and DODS
Creates server and client configs in an explained dialog.

You`ll also find precompiled debian gameserver kernels for download
Reply
#22
(08-02-2010, 04:25 AM)Terrorkarotte Wrote:  Besides do not run any kind of serverdeamons with the User root.
yes, and that will be the reason why the server changes its priority by itself...
http://www.fpsmeter.org
http://wiki.fragaholics.de/index.php/EN:Linux_Optimization_Guide (Linux Kernel HOWTO!)
Do not ask technical questions via PM!
Reply
#23
Thanks for your advices.

Took some time to me to take a decision.

Now want to ask about the configuration of the new server.

What i want.

1) Procesors: x2 Intel Xeon e5620
2) Motherboard: Intel s5520hc (or hcr) with new BIOS update to run with such xeons.
3) Memory: x6 DDR3 1066 2GB Ecc reg memory. (Something like 7-7-7)
4) Disk: SATA2 SSD 160gb (Corsair or Intel)

Want to know your opinion.

The main game servers will be css, tf2, bad company2, l4d2.
Reply
#24
how many servers do you plan to run? with two E5620 you will have 8 cores, so if you run less than 8, or maybe more like 12/16, servers that will be waste of money. srcds cannot use multiple cores per server. also 12GB ram are too much probably. a usual server doesn't take more than 400 MB ram, even with plugins.

the SSD is a waste of money in any case. the disk is not used unless during map change. on a well configured system the map change takes 1-2 seconds, most clients take much much longer, so nobody will notice those 2 seconds you *might* save with the SSD.

so my opinion is: your system is overdone, unless you plan to run more than 12 servers... you can go much cheaper with standard (i.e. non-server) components also. better take a i7 desktop cpu with a higher clock speed (the E5620 isn't the fastest cpu...) and save some money in the other components as well.
http://www.fpsmeter.org
http://wiki.fragaholics.de/index.php/EN:Linux_Optimization_Guide (Linux Kernel HOWTO!)
Do not ask technical questions via PM!
Reply
#25
Planning to run more than 8 servers. Thought that 5620 could hold them without problems. tf2 servers 24-32 slots. css public servers 16-32 slots. 2 servers with bhop and trikz mods. 12 or 16 slots. this is the beggining. Don't know how much servers can hold such config.

Wanted SSD because of the temperature. And another thing is that the server will run DB and many systems like hlstats, sourcebans, system monitorings and others.
Reply
#26
ok then... still I think the SSD is overdone. I am not even sure if they are colder. USB sticks get pretty hot sometimes...
http://www.fpsmeter.org
http://wiki.fragaholics.de/index.php/EN:Linux_Optimization_Guide (Linux Kernel HOWTO!)
Do not ask technical questions via PM!
Reply
#27
If you can split hosting/databases/ranking and gameservers.
If you do it right there won´t be problems running all on the same machine. But you will have less trouble if you split it up because you can optimise both systems for their porpuse.
I am running my hostingstuff like sourcebans, hlstatsx ce, fastdownload, etc. from a small VPS. That way I can tune and edit my.cnf and so on until the system is maxed out Wink
Interactive web based config creator for CS, CSS, TF2 and DODS
Creates server and client configs in an explained dialog.

You`ll also find precompiled debian gameserver kernels for download
Reply
#28
I'll try to make the web scripts and db on the 2 xeons 3.0GHz and the game servers on the new one. But i'm not sure that placing a switch and making the forwarding will work fine.
Reply
#29
dont run srcds as root! dont run other things like hlstats and ts3 on the same server and also as root!
Reply
#30
I accidently started ts3 as root once. The result was that all other serverdeamons decreased their performance rapidly. Since that I started adding this to prevent starting deamons with root by acident:
Code:
if [ "`whoami`" = "root" ]; then
echo "Do not use root!"
exit 0
fi
Interactive web based config creator for CS, CSS, TF2 and DODS
Creates server and client configs in an explained dialog.

You`ll also find precompiled debian gameserver kernels for download
Reply


Forum Jump:


Users browsing this thread: 8 Guest(s)