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

CS:GO Server Lag Spikes


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Pavelas
Junior Member
Join Date: Oct 2016
Old 10-25-2017 , 09:19   CS:GO Server Lag Spikes
Reply With Quote #1

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:




Any ideas guys?
Pavelas is offline
sneaK
SourceMod Moderator
Join Date: Feb 2015
Location: USA
Old 10-25-2017 , 12:16   Re: CS:GO Server Lag Spikes
Reply With Quote #2

Your hardware (specifically CPU) is inadequate to run a 128 tick server with that many players.
__________________
sneaK is offline
paulo_crash
AlliedModders Donor
Join Date: May 2016
Location: Brazil
Old 10-25-2017 , 12:42   Re: CS:GO Server Lag Spikes
Reply With Quote #3

I understand you have a correct VPS server?

Not recommended, for game servers the best is a dedicated.
paulo_crash is offline
Elitcky
AlliedModders Donor
Join Date: Jun 2016
Location: Antofagasta, Chile
Old 10-25-2017 , 14:07   Re: CS:GO Server Lag Spikes
Reply With Quote #4

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
__________________

Last edited by Elitcky; 10-25-2017 at 14:07.
Elitcky is offline
Pavelas
Junior Member
Join Date: Oct 2016
Old 10-25-2017 , 22:09   Re: CS:GO Server Lag Spikes
Reply With Quote #5

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 View Post
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.
Pavelas is offline
VPPGamingNetwork
Veteran Member
Join Date: Sep 2012
Location: Japan
Old 10-25-2017 , 23:33   Re: CS:GO Server Lag Spikes
Reply With Quote #6

128 tick go fo anything over 4 ghz
__________________

We provide MOTD Ads
Net 1 payments
Visit us
VPPGamingNetwork is offline
sneaK
SourceMod Moderator
Join Date: Feb 2015
Location: USA
Old 10-25-2017 , 23:37   Re: CS:GO Server Lag Spikes
Reply With Quote #7

Quote:
Originally Posted by Elitcky View Post
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.
__________________
sneaK is offline
Pavelas
Junior Member
Join Date: Oct 2016
Old 10-26-2017 , 02:49   Re: CS:GO Server Lag Spikes
Reply With Quote #8

Quote:
Originally Posted by sneaK View Post
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.

Last edited by Pavelas; 10-26-2017 at 02:49.
Pavelas is offline
sneaK
SourceMod Moderator
Join Date: Feb 2015
Location: USA
Old 10-26-2017 , 03:00   Re: CS:GO Server Lag Spikes
Reply With Quote #9

Quote:
Originally Posted by Pavelas View Post
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.
__________________

Last edited by sneaK; 10-26-2017 at 03:02.
sneaK is offline
Pavelas
Junior Member
Join Date: Oct 2016
Old 10-26-2017 , 03:55   Re: CS:GO Server Lag Spikes
Reply With Quote #10

Quote:
Originally Posted by sneaK View Post
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!
Pavelas 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 19:00.


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