AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Source Servers (SRCDS) (https://forums.alliedmods.net/forumdisplay.php?f=130)
-   -   CS:GO Server Lag Spikes (https://forums.alliedmods.net/showthread.php?t=302334)

Pavelas 10-25-2017 09:19

CS:GO Server Lag Spikes
 
Hello, I have a problem with my CS:GO server. From time to time people have lag spikes (high sv / var values). The more people on the server, more often lag spikes appears.

I have Linux Virtual Server.

Server parameters:
Virtualization: OpenVZ
OS: Ubuntu-16.04-x86_64
CPU: Intel Xeon E5 (2.4 Ghz * 4)
RAM: 3072 MB

CS:GO Server:
Gamemode: 1x1 Arena
Max Players: 24
Tickrate: 128

Plugins:
multi1v1.smx
advertisements.smx
mapchooser.smx
drapi_show_damage.smx
basetriggers.smx
rockthevote.smx
nextmap.smx
tidychat.smx
clientprefs.smx

Problem:
https://i.gyazo.com/10255e123ee7561c...edf60eded1.png

https://i.gyazo.com/fdba6d737e78a9df...824532996d.png

Any ideas guys? :cry:

sneaK 10-25-2017 12:16

Re: CS:GO Server Lag Spikes
 
Your hardware (specifically CPU) is inadequate to run a 128 tick server with that many players.

paulo_crash 10-25-2017 12:42

Re: CS:GO Server Lag Spikes
 
I understand you have a correct VPS server?

Not recommended, for game servers the best is a dedicated.

Elitcky 10-25-2017 14:07

Re: CS:GO Server Lag Spikes
 
Try this on your server.cfg
Code:

//ForceRates
sm_cvar sv_maxrate 128000
sm_cvar sv_minrate 128000
sm_cvar sv_maxcmdrate 128
sm_cvar sv_mincmdrate 128
sm_cvar sv_minupdaterate 128
sm_cvar sv_maxupdaterate 128
sm_cvar net_splitpacket_maxrate 100000
sm_cvar sv_maxunlag 0.5
sm_cvar sv_unlag 1

I have other commands too in my server which have almost same specs.
If i am at home i will edit this post to write those other commands

Pavelas 10-25-2017 22:09

Re: CS:GO Server Lag Spikes
 
Thank you guys for quick response! Can you please recommend what kind of hardware specs should I have to run server smoothly? Which is better Linux or Windows?

Quote:

Originally Posted by Elitcky (Post 2556732)
Try this on your server.cfg
Code:

//ForceRates
sm_cvar sv_maxrate 128000
sm_cvar sv_minrate 128000
sm_cvar sv_maxcmdrate 128
sm_cvar sv_mincmdrate 128
sm_cvar sv_minupdaterate 128
sm_cvar sv_maxupdaterate 128
sm_cvar net_splitpacket_maxrate 100000
sm_cvar sv_maxunlag 0.5
sm_cvar sv_unlag 1

I have other commands too in my server which have almost same specs.
If i am at home i will edit this post to write those other commands

Thank you very much! I will try these settings tonight. It would be really nice if you could share more your server settings since I was not able to find any recommended.

VPPGamingNetwork 10-25-2017 23:33

Re: CS:GO Server Lag Spikes
 
128 tick go fo anything over 4 ghz

sneaK 10-25-2017 23:37

Re: CS:GO Server Lag Spikes
 
Quote:

Originally Posted by Elitcky (Post 2556732)
Try this on your server.cfg

I have other commands too in my server which have almost same specs.
If i am at home i will edit this post to write those other commands

Those rates will not solve your problem. 24 slots @ 128t on such a slow processor will cause you major var issues regardless.

Pavelas 10-26-2017 02:49

Re: CS:GO Server Lag Spikes
 
Quote:

Originally Posted by sneaK (Post 2556806)
Those rates will not solve your problem. 24 slots @ 128t on such a slow processor will cause you major var issues regardless.

There is a problem that srcds is not multi-threaded, it uses only one core... Can you please explain for me, how other servers like Zombie Escape with 64 slots can handle it? I mean, of course I will go for better cpu, but with single core I would not be able to go far away?

Thank you.

sneaK 10-26-2017 03:00

Re: CS:GO Server Lag Spikes
 
Quote:

Originally Posted by Pavelas (Post 2556815)
There is a problem that srcds is not multi-threaded, it uses only one core... Can you please explain for me, how other servers like Zombie Escape with 64 slots can handle it? I mean, of course I will go for better cpu, but with single core I would not be able to go far away?

Thank you.

How many players does this server actually see?

If the CPU speed you've specified is accurate, a full 64 slot server, even @ 64t would suffer tremendous jumps in var.

Pavelas 10-26-2017 03:55

Re: CS:GO Server Lag Spikes
 
Quote:

Originally Posted by sneaK (Post 2556819)
How many players does this server actually see?

If the CPU speed you've specified is accurate, a full 64 slot server, even @ 64t would suffer tremendous jumps in var.

Sorry, maybe I explained everything in a wrong way. In my case I understand that my single core is too weak to handle 128 tick rate server with 24 players online.

And you mentioned the solution - go for better CPU, I believe that in my case better CPU with 3.4 Ghz would be a solution, but imagine if I would like to go further, from 24 slots to 64 with 128 tick rate. In this case, I believe there is no single core CPU which could withstand such a load?

Basically, the question was how to solve this scalability problem if srcds is not multi threaded?
The only solution would be to migrate to Windows?
Do we have such a strong single core CPU in the market to host a server with 64 slots and 128 tick rate?

Thank you!


All times are GMT -4. The time now is 06:56.

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