SRCDS Steam group


Optimal config
#1
Hello, comrades!
Can you tell me the best server.cfg configuration of Team Fortress 2 (srcds) server for
1) bball with 7 maxplayers (6 + 1 sourcetv)
2) cw server with 17 maxplayers (16 + 1 stv)
On the server there is running only one srcds of them!

Server's hardware
Cpu Xeon 1GHz reserved for each of 2 cores (max in peak 2GHz)
1Gb memory
OS Ubuntu x64 with kernel 2.6.24-22 and user_hz=1000
Internet speed ~50-70Mbit/s

There are always on sv_alltalk 1 and sourcetv. And can you tell me some recommendations for linux configuration. Xserver is always off and I am starting linux in runlevel 3. For srcds and samp I have set renice priority -10.

Also on server there is SAMP (san andreas) server with 10 players online, but it requests only ~5-10% of cpu and 10-20mb of ram. However srcds requests more resources. For example srcds with 2-4 players online requests 100mb of ram and 10-20% of cpu; with 4-8 players - 150mb of ram and 20-40% of cpu, but for 12 players srcds needs 60-80% of cpu and 200-300mb of ram.

Usually, there are 500mb free memory of 1Gb, so I have switched off swap. In my opinion, swap do not needs for my server with 500mb of ram free. But I have got one little problem: my srcds is little bit laggy when there are only 12 or more players online. Sometimes cpu usage increases from 10% or 40% (it is not important) up to 99.99% for no longer than 1 second. And sometimes server is lagging in this time, and it is lagging more and harder if there are more players and if average cpu usage is higher.

Can you tell me what should I do to stop these lags.
Thanks a lot and sorry for my very bad English!
Reply
#2
sXs Wrote:OS Ubuntu x64 with kernel 2.6.24-22 and user_hz=1000
try a different kernel: http://wiki.fragaholics.de/index.php/EN:Linux_Kernel_Optimization
with the server.cfg you can make things bad, but the defaults are normally good.

Quote:cpu Xeon 1GHz reserved for each of 2 cores (max in peak 2GHz)
this sounds like a virtual server? if so, put your hopes down. you cannot possible achieve a high quality (and you cannot change your kernel!).
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
#3
BehaartesEtwas Wrote:this sounds like a virtual server? ... (and you cannot change your kernel!).

It is virtual dedicated server. Anyway I will try with another kernel.
Reply
#4
Hello there! I have compiled and installed new kernel 2.6.28.2 after reading this manual http://wiki.fragaholics.de/index.php/EN:Linux_Kernel_Optimization , but without idler.c because when it is running, tf2 server is very laggy and it is terrible.

But now I have got another problem.
All the time server's fps is jumping around 800-900 fps and it is pretty good for my VDS machine (some time ago 300 fps was good for me). BUT! sometimes fps is going down for 0.5-1 second from 900 fps to 10-20 fps and during this time there are very terrible lags. Also, during this lags choke is going up to 5-10 and very rarely up to 15. Usually choke is from 0 to 5 all the time. However, some time ago was problem with cpu (read text on the top) but now cpu using is stable and it do not jumps.

Any ideas?
Reply
#5
sXs Wrote:sometimes fps is going down for 0.5-1 second from 900 fps to 10-20 fps and during this time there are very terrible lags.
My first guess would be, that some other vservers on the same node take away your cpu time. vservers are not meant for realtime applications (unless specifically configured for that purpose - which is very difficult), and for normal operation (e.g. web server) it does not matter if your vserver does not get the cpu for a second from time to time...

btw: I wonder how you have replaced the kernel of your vserver, usually this is not possible. can you post the output of "uname -a"?
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
#6
BehaartesEtwas Wrote:can you post the output of "uname -a"?

Yes, of course, here it is:
Linux ubuntu6491184 2.6.28.2 #1 SMP Wed Jan 28 20:03:52 EET 2009 x86_64 GNU/Linux
Reply
#7
so you are not using the RT patches as described in the howto ;-) that's what I thought, because I don't think you can exchange the kernel of a vserver...
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
#8
BehaartesEtwas Wrote:so you are not using the RT patches as described in the howto ;-)

Actually there is not the same RT patch version as my new kernel version.
Reply
#9
yes. but better use an older kernel with rt patches than the newest without...
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
#10
Ok, I will try the oldest one with RT patch.

[UPD] Linux ubuntu6491184 2.6.26.8-rt15 #1 SMP PREEMPT RT Sun Feb 1 16:19:44 EET 2009 x86_64 GNU/Linux
Reply
#11
omg! i have installed new kernel and rt patch, but now it is laging more than without patch and these lags are very terrible.
Reply
#12
the newest kernel > 2.6.28 produced lags > you will get with hl1 a feeling like speedhack on the server and the fps drops anyway...
with hl2 you will get a lot of lags > i tried a 100 hz kernel and 250 > all the same. i dont know what the hell the linux producer have changed > but for gameserver is the newest kernel bullshit.

best reguards
Reply
#13
Look at the image. That is what I am talking about. However, there were only 7 players and only 4 of them were playing on ctf_bball2 map. Others were watching and waiting.


Attached Files
.png   lags.png (Size: 33.12 KB / Downloads: 24)
Reply
#14
normally i wouldnt use the newest kernel. your fps drops are really lags ingame ? These fpsmeter result ist very bad. i would deactivate sourcetv (masterslot) and using the tutorial of fragaholics. i got good results with it. what for a maschine do you use ? how many gameservers do you run ?

best reguards peter
Reply
#15
the newest kernel has no RT patches available. we need to stick with 2.6.26 for the moment...
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


Forum Jump:


Users browsing this thread: 4 Guest(s)