---------------------------------------------------------------------------------------------- - TestResults: ---------------------------------------------------------------------------------------------- Today i made a view different load tests, on a simular Dedi. Couse of the high number of servers running. Also checked Fps and gameplay on all different settings. ---------------------------------------------------------------------------------------------- - My recommendations: ---------------------------------------------------------------------------------------------- Make shure all servers are set '-pingboost 2', check the startup line. (top) Make shure all CPU cores are available, do not lock servers to specific cores. (ogp) Make shure all servers are set on Priority level 'NICE 1' (ogp) ---------------------------------------------------------------------------------------------- - Open Game Panel ---------------------------------------------------------------------------------------------- ******** HLDS - Launch Options: ************************************************** -pingboost 2 -heapsize 262144 -noipx -tos -zone 8192 - Full Example: ./hlds_run -game cstrike +ip 212.83.131.212 -port 28000 -pingboost 2 -heapsize 262144 -noipx -tos -pidfile startup.pid +log off -zone 8192 +maxplayers 32 +map de_dust2 ---------------------------------------------------------------------------------------------- - server.cfg (all servers) ---------------------------------------------------------------------------------------------- ******** TjaardA cstrike/autoexec.cfg or server.cfg : **************************** sys_ticrate "1001.456" //- Example: 999~1002 *Higher values couse LAG. sv_maxrate "45000" //- 25k + 10k extra Headroom is plenty sv_minrate "75000" //- Force high RATEs, against loss, choke or entity packets sv_maxupdaterate "100" //- Updaterate 100 packets = sv_maxrate 25000 sv_minupdaterate "100" //- Force high UpdateRate (drops are bad for reg) ---------------------------------------------------------------------------------------------- - PUG-automix_p1Mp ---------------------------------------------------------------------------------------------- ******** Auto-Mix By p1Mp : ****************************************************** Adjust or remove 'sys_ticrate' at: /cstrike/pracktice.cfg (line 16) ---------------------------------------------------------------------------------------------- ******** NETWORK TWEAKing: (1) - Use at own risk ****************************** ** SOURCES; - Read this First *** # http://ipsysctl-tutorial.frozentux.n...variables.html # http://ipsysctl-tutorial.frozentux.n.../ip-sysctl.txt # http://www-didc.lbl.gov/TCP-tuning/TCP-tuning.html # http://ipsysctl-tutorial.frozentux.n...-tutorial.html # http://www.rosegardenmusic.com/wiki/low-latency_kernels # http://www.webhostingtalk.com/showthread.php?t=716399 # http://serverfault.com/questions/357799/improving-tcp-performance-over-a-gigabit-network-with-lots-of-connections-and-hi # http://www.nateware.com/linux-network-tuning-for-2013.html ---------------------------------------------------------------------------------------------- - Linux Console (root) - (Use at own risk) ---------------------------------------------------------------------------------------------- *** Edit File: /etc/sysctl.conf *** ~# vi /etc/sysctl.conf ---------------------------------------------------------------------------------------------- # /etc/sysctl.conf - Configuration file for setting system variables # See /etc/sysctl.d/ for additonal system variables # See sysctl.conf (5) for information. # maximum total buffer-space allocatable in units of pages 4096 bytes. #net.ipv4.tcp_mem (def.140562 187417 281124) #net.ipv4.udp_mem (def.142938 190585 285876) net.ipv4.udp_mem = 65536 81920 147456 net.ipv4.tcp_mem = 65536 81920 147456 # increase Linux autotuning TCP buffer limits # net.ipv4.tcp_wmem (def.4096 87380 6291456) # net.ipv4.tcp_rmem (def.4096 16384 4194304) net.ipv4.tcp_wmem = 8192 131072 67108864 net.ipv4.tcp_rmem = 8192 131072 67108864 # increase TCP max buffer size (def.212992) net.core.rmem_max = 131072 net.core.wmem_max = 131072 # net.core.rmem_default = (def.212992) net.core.rmem_default = 131072 net.core.wmem_default = 131072 # If your servers talk UDP, also up these limits (def.4096) net.ipv4.udp_rmem_min = 8192 net.ipv4.udp_wmem_min = 8192 # Disable TCP slow start on idle connections #net.inet.tcp.delayed_ack = 0 net.core.somaxconn = 2048 net.core.netdev_max_backlog = 1000 net.ipv4.tcp_max_syn_backlog = 256 net.ipv4.tcp_max_tw_buckets = 32768 net.ipv4.tcp_tw_reuse = 1 net.ipv4.tcp_fin_timeout = 10 net.ipv4.tcp_timestamps = 1 net.ipv4.tcp_rfc1337 = 0 net.ipv4.tcp_slow_start_after_idle = 0 net.ipv4.tcp_low_latency=0 net.ipv4.tcp_synack_retries = 2 net.ipv4.tcp_syncookies = 0 net.ipv4.tcp_orphan_retries = 0 net.ipv4.tcp_max_orphans = 8192 # Enable source validation by reversed path, as specified in RFC1812 net.ipv4.conf.all.rp_filter = 0 net.ipv4.conf.default.rp_filter = 0 net.ipv4.ipfrag_high_thresh = 65536 net.ipv4.ipfrag_low_thresh = 16384 net.ipv4.ipfrag_max_dist = 64 net.ipv4.ipfrag_secret_interval = 3 net.ipv4.ipfrag_time = 1 ---------------------------------------------------------------------------------------------- *** Execute sysctl.conf: *** ~# sysctl -p ---------------------------------------------------------------------------------------------- ******** NETWORK TWEAKing: (2) - Use at own risk ****************************** *** Optional commands: *** ---------------------------------------------------------------------------------------------- - Linux Console (root) - (Use at own risk) ---------------------------------------------------------------------------------------------- *** Console Commands: - (Use at own risk) *** ~# ethtool -G eth0 rx 512 tx 512 > /dev/null 2>&1 ~# ethtool -C eth0 adaptive-rx off adaptive-tx off rx-usecs 0 tx-usecs 0 > /dev/null 2>&1 ~# ethtool -s eth0 autoneg off duplex full speed 1000 advertise 0x020 > /dev/null 2>&1 ~# /sbin/ifconfig eth0 txqueuelen 15000 > /dev/null 2>&1 ~# /sbin/ifconfig eth0:1 txqueuelen 15000 > /dev/null 2>&1 ~# /sbin/ifconfig eth0:2 txqueuelen 15000 > /dev/null 2>&1 ~# /sbin/ifconfig lo txqueuelen 15000 > /dev/null 2>&1 To make the settings permanent after system reboot *** Edit File: /etc/rc.local *** ~# vi /etc/rc.local ---------------------------------------------------------------------------------------------- #!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error. # # In order to enable or disable this script just change the execution # bits. # # By default this script does nothing. ethtool -G eth0 rx 512 tx 512 > /dev/null 2>&1 ethtool -C eth0 adaptive-rx off adaptive-tx off rx-usecs 0 tx-usecs 0 > /dev/null 2>&1 ethtool -s eth0 autoneg off duplex full speed 1000 advertise 0x020 > /dev/null 2>&1 /sbin/ifconfig eth0 txqueuelen 15000 > /dev/null 2>&1 /sbin/ifconfig eth0:1 txqueuelen 15000 > /dev/null 2>&1 /sbin/ifconfig eth0:2 txqueuelen 15000 > /dev/null 2>&1 /sbin/ifconfig lo txqueuelen 15000 > /dev/null 2>&1 sysctl -p > /dev/null 2>&1 exit 0 ---------------------------------------------------------------------------------------------- - Linux Console (root) ---------------------------------------------------------------------------------------------- ******** TjaardA Game-Server Kernel - Crontab Process Scheduler : ***************** *** Create Sheduler File: *** ~# vi /usr/local/sbin/resched.sh ~# chmod +x /usr/local/sbin/resched.sh Download: http://91.121.145.85/panel/136/TjaardA/kernel_deb/resched.sh *** Direct Scheduler Install: *** ~# cd /usr/local/sbin ~# wget http://91.121.145.85/panel/136/TjaardA/kernel_deb/resched.sh ~# chmod +x /usr/local/sbin/resched.sh ---------------------------------------------------------------------------------------------- - Linux Console (root) ---------------------------------------------------------------------------------------------- ******** TjaardA Game-Server Kernel - Add Scheduler to crontab : ****************** *** Add this line to Crontab: *** ~# vi /etc/crontab */3 * * * * root /usr/local/sbin/resched.sh > /dev/null 2>&1 ---------------------------------------------------------------------------------------------- # /etc/crontab: system-wide crontab # Unlike any other crontab you don't have to run the `crontab' # command to install the new version when you edit this file # and files in /etc/cron.d. These files also have username fields, # that none of the other crontabs do. SHELL=/bin/sh PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin # m h dom mon dow user command 17 * * * * root cd / && run-parts --report /etc/cron.hourly 25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily ) 47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly ) 52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly ) */3 * * * * root /usr/local/sbin/resched.sh > /dev/null 2>&1 # ---------------------------------------------------------------------------------------------- - Linux Console (root) ---------------------------------------------------------------------------------------------- ******** TjaardA Game-Server Kernel - Restart crontab Service : ******************** ~# service cron stop ~# service cron start ---------------------------------------------------------------------------------------------- - Linux Console (root) ---------------------------------------------------------------------------------------------- ******** TjaardA Game-Server Kernel - System Check: ******************************** *** System Check: *** ~# top ---------------------------------------------------------------------------------------------- Done 18:42:15 amx_plugins 18:42:15 Currently loaded plugins: name version author file status [ 1] Admin Base 1.8.3-dev+ AMXX Dev Team admin.amxx running [ 2] Admin Commands 1.8.3-dev+ AMXX Dev Team admincmd.amxx running [ 3] Admin Help 1.8.3-dev+ AMXX Dev Team adminhelp.amxx running [ 4] Slots Reservation 1.8.3-dev+ AMXX Dev Team adminslots.amxx running [ 5] Multi-Lingual System 1.8.3-dev+ AMXX Dev Team multilingual.am running [ 6] Menus Front-End 1.8.3-dev+ AMXX Dev Team menufront.amxx running [ 7] Commands Menu 1.8.3-dev+ AMXX Dev Team cmdmenu.amxx running [ 8] Players Menu 1.8.3-dev+ AMXX Dev Team plmenu.amxx running [ 9] Maps Menu 1.8.3-dev+ AMXX Dev Team mapsmenu.amxx running [ 10] Plugin Menu 1.8.3-dev+ AMXX Dev Team pluginmenu.amxx running [ 11] Admin Chat 1.8.1.3746 AMXX Dev Team adminchat.amxx running [ 12] Anti Flood 1.8.3-dev+ AMXX Dev Team antiflood.amxx running [ 13] Info. Messages 1.8.3-dev+ AMXX Dev Team imessage.amxx running [ 14] NextMap 1.8.3-dev+ AMXX Dev Team nextmap.amxx running 18:42:15 [ 15] Nextmap Chooser 4 3.42a AMX Dev & KWo mapchooser4.amx running [ 16] TimeLeft 1.8.3-dev+ AMXX Dev Team timeleft.amxx running [ 17] Pause Plugins 1.8.3-dev+ AMXX Dev Team pausecfg.amxx running [ 18] Stats Configuration 1.8.2 AMXX Dev Team statscfg.amxx running [ 19] Restrict Weapons 1.8.3-dev+ AMXX Dev Team restmenu.amxx running [ 20] StatsX 1.8.2 AMXX Dev Team statsx.amxx running [ 21] ReAimDetector API 0.2.2 ReHLDS Team reaimdetector.a running [ 22] Bomb Countdown HUD Tim 0.2 SAMURAI bcd_hudtimer.am running [ 23] GHW Connect Messages 1.1 GHW_Chronic GHW_connect.amx running [ 24] ResetScore.TnB FGH TjaardA-Powered ResetScore.TnB. running [ 25] AFK Bomb Transfer 0.4 VEN afkbombtransfer running [ 26] AFK Kicker 1.0b Cheesy Peteza afkkicker.amxx running [ 27] Admin ESP 1.5b_mini KoST admin_esp_mini. running [ 28] High Ping Kicker v2.0 TjaardA-Powered high_ping_kicke running [ 29] AMXX Gag 1.4.9 xPaw & Exolent amx_gag.amxx running 18:42:15 [ 30] AMX SSBan 2.6 God@Dorin\Fysiks amx_ssban.amxx running [ 31] Show IP 1.0 $uicid3 amx_ip.amxx running [ 32] SpecList 1.2a FatalisDK speclist.amxx running [ 33] No Radio Flood 1.1 Starsailor no_radio_flood. running [ 34] Instant AutoTeamBalanc 1.2.0 ConnorMcLeod instant_autotea running [ 35] Kill assist (for CS) 2.0 Digi (and CSmiLe KillAsistEditCS running [ 36] Spam Blocker 3.6 Teo spam_blocker.am running [ 37] RateChecker Rev.2 TjaardA-Powered RateChecker.amx running [ 38] (Team-)Semiclip 1.2 SchlumPF* team-semiclip.a running [ 39] Allow round finish 1.0.2 EKS allow_roundfini running [ 40] Game Namer 1.1 NeuroToxin gamenamechanger running [ 41] round_money 0.7 SweatyBanana round_money.amx running 41 plugins, 41 running 18:43:37 meta list 18:43:37 Currently loaded plugins: description stat pend file vers src load unload [ 1] Reunion RUN - reunion_mm_i386.so v0.1.0.92 ini Start Never [ 2] AMX Mod X RUN - amxmodx_mm_i386.so v1.8.3-Re ini Start ANY [ 3] ReAimDetector RUN - reaimdetector_amxx_i386.so v0.2.2 pl2 ANY Never [ 4] CSX RUN - csx_amxx_i386.so v1.8.3-Re pl2 ANY ANY [ 5] GeoIP RUN - geoip_amxx_i386.so v1.8.3-Re pl2 ANY ANY [ 6] CStrike RUN - cstrike_amxx_i386.so v1.8.3-Re pl2 ANY ANY [ 7] Fun RUN - fun_amxx_i386.so v1.8.3-Re pl2 ANY ANY [ 8] FakeMeta RUN - fakemeta_amxx_i386.so v1.8.3-Re pl2 ANY ANY [ 9] Engine RUN - engine_amxx_i386.so v1.8.3-Re pl2 ANY ANY [10] MySQL RUN - mysql_amxx_i386.so v1.8.3-Re pl2 ANY ANY [11] Ham Sandwich RUN - hamsandwich_amxx_i386.so v1.8.3-Re pl2 ANY ANY 11 plugins, 11 running