Raised This Month: $51 Target: $400
 12% 

[CS:GO Linux] sv and var spiking


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Flanger
Member
Join Date: Mar 2007
Old 11-12-2017 , 11:06   [CS:GO Linux] sv and var spiking
Reply With Quote #1

Hello everybody. I understand what I ask is probably difficult to troubleshoot, but any insight is valuable. I think I'm running into hardware exhaustion, which should not be happening.

I host CSGO server on Linux with almost standard competitive template. Server is 128 tick 12+2res slots and mostly is populated with 12 players. My approach with plugins is very minimalistic. I only run plugins I really need, which are mostly out-of-box so I list only custom ones:

Code:
[01] SourceMod (1.9.0.6157) by AlliedModders LLC
[02] Stripper (1.2.2) by BAILOPAN
[03] CS Tools (1.9.0.6157) by AlliedModders LLC
[04] SDK Tools (1.9.0.6157) by AlliedModders LLC
[05] SDK Hooks (1.9.0.6157) by AlliedModders LLC

19 "Advertisements" (2.0.2) by Tsunami
20 "Weapon Restrict" (3.1.7) by Dr!fter
21 "Blocker" (1.2.5)
22 "Map configs" (1.3) by Berni
23 "[CSS/CS:GO] AbNeR ResetScore" (1.5fix) by AbNeR_CSS
24 "SuperLogs: Generic" (1.0) by psychonic
25 "SuperLogs: CSS" (1.2.4) by psychonic
26 "HLstatsX CE Ingame Plugin" (1.6.19) by psychonic
27 "High Ping Kicker - Lite Edition" (1.0.0.1) by Liam
28 "SwapTeam" (1.2.6) by Rogue - Originally by MistaGee

//net cfg
sv_maxrate 0
sv_minrate 80000
sv_mincmdrate 128
sv_minupdaterate 128
sv_maxupdaterate 128
Now here are the hardware specs I have assigned to my srcds VM:
16GB RAM
16 cores of Xeon E5-2680 v2 @ 2.80GHz
Dedicated optical fiber with 20mbps symmetric up/down, which is never congested.

While monitoring with htop (nothing else running on this Linux box), I see that memory is not even close to be a problem. Out of 16GB usually only 1GB is used, so my bet is CPU bottleneck. Srcds process is swapping cores from time to time which is reasonable given it's optimized to run on single core, they get spikes but never over 80% of core usage.

12/12 players right now:






var and sv spikes start occurring when players reach close to 12. I've been monitoring net_graph constantly and with lesser players there are no spikes on these counters. Only when server gets maxed, so this looks like the hardware resource issue. But how can this setup not be enough for simple 12 slot server? Am I missing something?
Flanger is offline
hamilton5
Veteran Member
Join Date: Oct 2012
Location: USA
Old 11-12-2017 , 13:32   Re: [CS:GO Linux] sv and var spiking
Reply With Quote #2

Vms are bad to use in the first place... 16 cores for a vm!?? the server is only going to be able to use one, and at 2.8g not to good...
hamilton5 is offline
Flanger
Member
Join Date: Mar 2007
Old 11-12-2017 , 19:24   Re: [CS:GO Linux] sv and var spiking
Reply With Quote #3

Well this is a production server, I can't use bare metal here. Anyway most hosting companies have to use some kind of virtualization, whether it's VM or containers, so naturally I believe some of them will have Xeon CPU's on server platforms. Do they run into the same problem then?
Flanger is offline
[email protected]
BANNED
Join Date: Nov 2017
Old 11-13-2017 , 18:55   Re: [CS:GO Linux] sv and var spiking
Reply With Quote #4

+host_timer_spin_ms 0 -pingbost 2 -pidfile csgo1.pid add to stat line :)

add to cron

*/1 * * * * renice -19 `cat /path/to/srv/csgo/csgo1.pid`

to check it works :)

write to putty

cat /path/to/srv/csgo/csgo1.pid

if will be

-19

all works :)

Last edited by [email protected]; 11-13-2017 at 19:03.
linux.cfg.csgo@gmail.com is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:58.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode