This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

[CS:GO] 100% CPU usage on map change


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ErikJ
Junior Member
Join Date: Oct 2015
Old 04-23-2020 , 09:01   [CS:GO] 100% CPU usage on map change
Reply With Quote #1

Hi all,

I'm currently hosting 3 CS:GO servers and everything is running smoothly.

Except when the map changes on one of the servers. It'll use 100% of my CPU for 1-2 seconds to load the new map, and it's causing my two other servers to choke and completely lag out.

Does anyone have any experience with this? How do you run multiple servers on the same OS without it capping out your CPU on map change?

A bit about my setup:

Ryzen 5 2600
16GB RAM
Running Windows Server 2016 OS on physical PC and using Hyper-V to have an Ubuntu server OS where all my CS:GO servers are hosted from.
The Ubuntu server currently has 8 virtual processors assigned and 8GB RAM.

I hope some of you have experienced this before and possibly have a solution for it. I'm considering creating another two VMs (so all CS:GO servers are hosted on their own OS), as this should then prevent the choke, but I hope there's another solution.

Thank you in advance!
ErikJ is offline
8guawong
AlliedModders Donor
Join Date: Dec 2013
Location: BlackMarke7
Old 04-23-2020 , 09:23   Re: [CS:GO] 100% CPU usage on map change
Reply With Quote #2

Quote:
Originally Posted by ErikJ View Post
Hi all,

I'm currently hosting 3 CS:GO servers and everything is running smoothly.

Except when the map changes on one of the servers. It'll use 100% of my CPU for 1-2 seconds to load the new map, and it's causing my two other servers to choke and completely lag out.

Does anyone have any experience with this? How do you run multiple servers on the same OS without it capping out your CPU on map change?

A bit about my setup:

Ryzen 5 2600
16GB RAM
Running Windows Server 2016 OS on physical PC and using Hyper-V to have an Ubuntu server OS where all my CS:GO servers are hosted from.
The Ubuntu server currently has 8 virtual processors assigned and 8GB RAM.

I hope some of you have experienced this before and possibly have a solution for it. I'm considering creating another two VMs (so all CS:GO servers are hosted on their own OS), as this should then prevent the choke, but I hope there's another solution.

Thank you in advance!
may i ask why you are hosting through VM?
__________________
8guawong is offline
ErikJ
Junior Member
Join Date: Oct 2015
Old 04-23-2020 , 09:39   Re: [CS:GO] 100% CPU usage on map change
Reply With Quote #3

Quote:
Originally Posted by 8guawong View Post
may i ask why you are hosting through VM?
The physical server is also hosting a website and database (through another VM) as I was more familiar with the Windows Platform for that kind of thing. That's why I decided to use VMs, so I could still host my game servers on Linux.

I doubt the VM itself is the culprit here, though. I'm guessing I'd have the same issue if I ran ubuntu server on the physical and had the servers hosted there.

Last edited by ErikJ; 04-23-2020 at 09:41.
ErikJ is offline
8guawong
AlliedModders Donor
Join Date: Dec 2013
Location: BlackMarke7
Old 04-23-2020 , 13:17   Re: [CS:GO] 100% CPU usage on map change
Reply With Quote #4

Quote:
Originally Posted by ErikJ View Post
The physical server is also hosting a website and database (through another VM) as I was more familiar with the Windows Platform for that kind of thing. That's why I decided to use VMs, so I could still host my game servers on Linux.

I doubt the VM itself is the culprit here, though. I'm guessing I'd have the same issue if I ran ubuntu server on the physical and had the servers hosted there.
are your servers accessing your website / mysql?
__________________
8guawong is offline
ErikJ
Junior Member
Join Date: Oct 2015
Old 04-23-2020 , 15:11   Re: [CS:GO] 100% CPU usage on map change
Reply With Quote #5

Quote:
Originally Posted by 8guawong View Post
are your servers accessing your website / mysql?
Yes, they are accessing the database. But regardless, this isn't really related. The lag only happens when a server changes map.

I've considered assigning the different instances of srcds to specific cores using taskset, but I've been recommended I don't so that. So unless there's something obvious I'm missing, I think I'll just create a VM for each of my srcds instances as that should fix my issues..
ErikJ is offline
TomL.
Veteran Member
Join Date: Oct 2017
Location: Germany
Old 04-23-2020 , 15:25   Re: [CS:GO] 100% CPU usage on map change
Reply With Quote #6

Of course it can be related to your database connection.
Please post your sm plugins list output.
TomL. is offline
Maxximou5
AlliedModders Donor
Join Date: Feb 2013
Old 04-23-2020 , 15:59   Re: [CS:GO] 100% CPU usage on map change
Reply With Quote #7

If you have any plugins not using threaded queries the scenario you are experiencing is the direct result of a database plugin. If there isn't, then there's something else at work obviously.
Maxximou5 is offline
8guawong
AlliedModders Donor
Join Date: Dec 2013
Location: BlackMarke7
Old 04-23-2020 , 20:41   Re: [CS:GO] 100% CPU usage on map change
Reply With Quote #8

Quote:
Originally Posted by ErikJ View Post
Yes, they are accessing the database. But regardless, this isn't really related. The lag only happens when a server changes map.

I've considered assigning the different instances of srcds to specific cores using taskset, but I've been recommended I don't so that. So unless there's something obvious I'm missing, I think I'll just create a VM for each of my srcds instances as that should fix my issues..
a lot of plugins do their saving on map end / on player disconnect which is what happens when map changes
__________________
8guawong is offline
ErikJ
Junior Member
Join Date: Oct 2015
Old 04-24-2020 , 02:13   Re: [CS:GO] 100% CPU usage on map change
Reply With Quote #9

Code:
  01 "Reserved Slots" (1.10.0.6460) by AlliedModders LLC
  02 "RNGFix" (1.1.2) by rio
  03 "SourceBans++: Admin Config Loader" (1.6.3) by AlliedModders LLC, SourceBans++ Dev Team
  04 "Sound Commands" (1.10.0.6460) by AlliedModders LLC
  05 "Admin Help" (1.10.0.6460) by AlliedModders LLC
  06 "Basic Chat" (1.10.0.6460) by AlliedModders LLC
  07 "AFK Manager" (4.3.0) by Rothgar
  08 "Client Preferences" (1.10.0.6460) by AlliedModders LLC
  09 "[surftimer] Teleport Destination Finder" (1.00) by Elzi
  10 "SourceBans++: Main Plugin" (1.6.3) by SourceBans Development Team, SourceBans++ Dev Team
  11 "Basic Commands" (1.10.0.6460) by AlliedModders LLC
  12 "SourceBans++ Report Plugin" (1.6.3) by RumbleFrog, SourceBans++ Dev Team
  13 "Anti-Flood" (1.10.0.6460) by AlliedModders LLC
  14 "Basic Comm Control" (1.10.0.6460) by AlliedModders LLC
  15 "SQL Admins (Prefetch)" (1.11.0.6471) by AlliedModders LLC
  16 "SourceBans++: SourceComms" (1.6.3) by Alex, SourceBans++ Dev Team
  17 "SQL Admin Manager" (1.11.0.6471) by AlliedModders LLC
  18 "SourceBans++: Bans Checker" (1.6.3) by psychonic, Ca$h Munny, SourceBans++ Dev Team
  19 "SurfTimer MapChooser" (1.10.0.6336) by AlliedModders LLC & Ace
  20 "Player Commands" (1.10.0.6460) by AlliedModders LLC
  21 "SurfTimer" (284) by Ace & olokos
  22 "CSGO Panorama Map Change Crashe Fixer" (1.0.6) by BOT Benson
  23 "Fun Votes" (1.10.0.6460) by AlliedModders LLC
  24 "Fun Commands" (1.10.0.6460) by AlliedModders LLC
  25 "Basic Info Triggers" (1.10.0.6460) by AlliedModders LLC
  26 "Advertisements" (2.0.2) by Tsunami
  27 "Discord API" (0.1.103) by Deathknife
  28 "SourceBans++: SourceSleuth" (1.6.3) by ecca, SourceBans++ Dev Team
  29 "SQL Admins (Threaded)" (1.11.0.6471) by AlliedModders LLC
  30 "Admin Menu" (1.10.0.6460) by AlliedModders LLC
  31 "Thirdperson Mode" (1.0) by Zephyrus
  32 "Trigger_push Fix" (1.5) by Mev, George, & Blacky | Slidy & rio Edit
  33 "Basic Votes" (1.10.0.6460) by AlliedModders LLC
  34 "SurfTimer Nominations" (1.10.0.6336) by AlliedModders LLC & Ace
  35 "Momentum surf fix '2" (1.1.2) by GAMMA CASE
  36 "CS:GO Movement Unlocker" (1.0) by Peace-Maker
  37 "Rock The Vote" (1.9.0.6241) by AlliedModders LLC
  38 "Admin File Reader" (1.10.0.6460) by AlliedModders LLC
Only SQL heavy one here is SurfTimer.

Looking through my plugins I suddenly suspect the "CSGO Panorama Map Change Crashe Fixer" - I installed this to prevent players' games from crashing, but could this be the reason? That everyone disconnects on mapchange and immediately re-joins?

If we are to say this is the culprit, then how do I get around using this plugin - I can't disable it, cause then my players will have their CS:GO crash every other map..

Here's a link to the plugin: https://forums.alliedmods.net/showthread.php?t=310542

EDIT: Disregard the above. I just tried the command "changelevel surf_meme" in console on an empty server, and the CPU usage still spike to 100% and above causing the other servers to lag.

Last edited by ErikJ; 04-24-2020 at 03:57.
ErikJ is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 04-24-2020 , 04:12   Re: [CS:GO] 100% CPU usage on map change
Reply With Quote #10

Does it make any difference, if you change basic map like de_dust2 ?
*edit
Is is workshop map collection ?

Last edited by Bacardi; 04-24-2020 at 04:12.
Bacardi 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 13:46.


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