Raised This Month: $32 Target: $400
 8% 

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
sneaK
SourceMod Moderator
Join Date: Feb 2015
Location: USA
Old 10-25-2017 , 23:37   Re: CS:GO Server Lag Spikes
Reply With Quote #6

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 #7

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 #8

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 #9

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
DJPlaya
Senior Member
Join Date: Nov 2014
Location: Germany
Old 10-29-2017 , 15:52   Re: CS:GO Server Lag Spikes
Reply With Quote #10

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
>Nononononono, never force a Rate depending on the Tickrate, and also dont force them to have the same min/maxrate! 128 means 128kbs/s, you know someone with a connection that bad? Set the maxrate to 0, its bullsheet to force Players to this.
>Also the mincmd/update Rate should be lower, else Clients will get in trouble when having bad Computers that cant hold up that Tickrate
>Settings sv_unlag is totally useless, its allways enabled and disabling it will never be usefull in any way beside Hacking.

This is my Networking Config for CSGO 128Tick
Code:
// ********** Rates **********

sv_minrate 0 // Min Bandwidth 0=unlimited
sv_maxrate 0 // Max Bandwidth 0=unlimited

// Min Updates per Sec to the Client
// 128TICK: sv_minupdaterate 70
// 66TICK: sv_minupdaterate 40
// 33TICK: sv_minupdaterate 15
sv_minupdaterate 70

// Max Updates per Sec to the Client
// Should be the Tickrate
sv_maxupdaterate 128

// Min Updates of the Client per Sec
// 128TICK: sv_minupdaterate 70
// 66TICK: sv_mincmdrate 40
// 33TICK: sv_mincmdrate 15
sv_mincmdrate 70

// Max Updates of the Client per Sec
// Should be the Tickrate
sm_cvar sv_maxcmdrate 128

sm_cvar sv_client_cmdrate_difference 30 // Max Difference between cmd and updaterate
sm_cvar cl_updaterate 128 // Should be the Tickrate
sm_cvar cl_cmdrate 128 // Should be the Tickrate

sm_cvar sv_client_min_interp_ratio 0 // Min Value of cl_interp_ratio
sm_cvar sv_client_max_interp_ratio 0 // Max Value of cl_interp_ratio


// ********** Network internal **********

sv_lan 0 // Lan Mode

sv_parallel_packentities 1
sm_cvar net_compresspackets 0
sm_cvar sv_enable_delta_packing 1
sv_parallel_sendsnapshot 0 // Can cause up to 15% Package Loss!
sm_cvar net_earliertempents 1

sm_cvar sv_maxunlag 0.1
sm_cvar net_minroutable 1200
net_splitrate 2
sm_cvar net_maxcleartime 0.001
sm_cvar net_queued_packet_thread 1 // Use a high priority Thread to send queued Packets out instead of sending them each Frame.

net_threaded_socket_burst_cap 1024
net_threaded_socket_recovery_rate 6400
net_threaded_socket_recovery_time 60
__________________
My biggest Projects: Kigen AC Redux, Forlix Floodcheck Redux

Last edited by DJPlaya; 10-29-2017 at 15:54.
DJPlaya is offline
Send a message via Skype™ to DJPlaya
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 07:35.


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