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

Server Multithread/Core use


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
friedensstifter
New Member
Join Date: Feb 2014
Old 02-27-2014 , 08:43   Server Multithread/Core use
Reply With Quote #1

Hey Friendz,

this is my second Thread and i never can get enough input to find a solution for my problem.

To my Server-Specs:
i7 950
24 GB RAM
1GBit Ethernet
Debian 7

Running Software on the Server:
Apache (no page hosted, only for Fastdownload)
MySQL (Only for Admin-Management)
Teamspeak 3
1x CS-GO-Server (20 Slots/Tick 128 )

Server works really fine with up to 18 Players. But over this Server sv breaks down to red.

What i noticed:
CPU load is near 100% in case of full server
Only 3 GB RAM are used
3GB of RAM = 32 Bit srcds, no Problem
CPU load: Only one core is loaded with nearly 100%, 7 cores are near 1% or have no load
There are some srcds processes, but only 1 shows load

What i tried:
- srcds as realtime process
- reniced srcds to -19
- taskset srcds to core 4,5,6,7
- every process is assigned to cpu 0, reset with taskset via cronjob for cs:go every 5 minutes

Result:
Core 4 is fully loaded with 100%, Server doesnt run better

So i read about multithread possibility of srcds with cvars:
+host_thread_mode 2 +threadpool_affinity 0

I have no idea if this changes something, i'll give it a try. but my hope is near zero, that this will be successfull.

So, i'm new to Linux. But i have some questions/ideas:
- Is there any way to disable Hyperthreading on my CPU? I think i have to compile a new kernel for this. But will this bring reduced cpu load?
- Can i Group some Cores to a "Virtual Mega Core" (by software) so that this core shows to srcds as one core, but manages itself to balance load to different cores? (I mean, i group Core 4,5,6,7 to one new core, for this example i call this corporation of Cores Core 8. Than i set srcds via taskset to use core 8. Srcds now works on core 8, but the load can be 4 times heavier to get 100% cpu load, because there are 4 cores that balance the load? So if there is small load, only core 4 is working, but if server gets full, it manages itself to divide load on all four cores?)

I know, my english is so bad, but u r my only help so far :-)

Thanks for answers
friedensstifter

Last edited by friedensstifter; 02-27-2014 at 09:17.
friedensstifter is offline
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 02-27-2014 , 11:17   Re: Server Multithread/Core use
Reply With Quote #2

As far as I know, srcds ain't threaded.
WildCard65 is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 02-27-2014 , 11:32   Re: Server Multithread/Core use
Reply With Quote #3

Intel HT = Hyper Threading, go disable from BIOS.
Bacardi is offline
stay.pista
Senior Member
Join Date: Apr 2013
Location: Hungary
Old 02-27-2014 , 13:08   Re: Server Multithread/Core use
Reply With Quote #4

Srcds eninge ONLY SIMPLE CORE using ((
__________________


•suяƒ• Since 2008
stay.pista is offline
bcs16cluj
Member
Join Date: Oct 2011
Old 04-22-2015 , 13:09   Re: Server Multithread/Core use
Reply With Quote #5

Quote:
Originally Posted by stay.pista View Post
Srcds eninge ONLY SIMPLE CORE using ((
are you sure?does anybody know how to assign csgo to multiple cores!?
__________________

Last edited by bcs16cluj; 04-22-2015 at 13:10.
bcs16cluj is offline
Amroth
Senior Member
Join Date: Apr 2013
Location: /root
Old 04-22-2015 , 15:20   Re: Server Multithread/Core use
Reply With Quote #6

Windows OS.

Look at bigger slots server (64 slots) they use Windows because multi-core support.
Amroth is offline
bcs16cluj
Member
Join Date: Oct 2011
Old 04-22-2015 , 16:09   Re: Server Multithread/Core use
Reply With Quote #7

i use linux centos i tried taskset and works for me:

# taskset -c 0,1,2,3,4 -p 13761
__________________

Last edited by bcs16cluj; 04-22-2015 at 17:06.
bcs16cluj is offline
e54385991
AlliedModders Donor
Join Date: Aug 2013
Old 04-22-2015 , 16:35   Re: Server Multithread/Core use
Reply With Quote #8

USE Windows OS
Attached Thumbnails
Click image for larger version

Name:	1.png
Views:	4552
Size:	1.3 KB
ID:	144443  
__________________

Last edited by e54385991; 04-22-2015 at 16:36.
e54385991 is offline
Send a message via ICQ to e54385991
VoiDeD
AlliedModders Donor
Join Date: Mar 2009
Location: Illinois, USA
Old 04-22-2015 , 18:59   Re: Server Multithread/Core use
Reply With Quote #9

Please do not post misinformation, especially if you're not familiar with the workings of srcds. The operating system you use to host source servers is largely irrelevant.

Source servers are primarily single threaded. The majority of game logic (including SM plugin logic) will only occur on the main game thread, but there is some amount of parallelization that is done with threadpool workers during entity encoding.

That said, forcing specific thread/process affinity is just asking for trouble. Your operating system is considerably more clever than you are and will make the proper thread scheduling decisions without needing any hints, and you'll likely hurt your instruction throughput by making poor affinity decisions.
__________________
VoiDeD is offline
DarkDeviL
SourceMod Moderator
Join Date: Apr 2012
Old 04-23-2015 , 12:21   Re: Server Multithread/Core use
Reply With Quote #10

Quote:
Originally Posted by Amroth View Post
Look at bigger slots server (64 slots) they use Windows because multi-core support.
So, Mr. Windows fan, what kind of evidence do you have to backup your *INCORRECT* facts?

From the first page of GameTracker (and only 64 slot servers counted):

For CS:GO there are 7 servers; 5 servers running Linux, and *ONLY* 2 running Windows.
For CS:S there are 14 servers; 13 of them running Linux, and *ONLY* 1 running Windows.

I guess this explains that we can change your phrase to "A very limited number use Windows, where the majority is running on Linux".

That phrase is definitely not the same as "They use".


Quote:
Originally Posted by VoiDeD View Post
Please do not post misinformation, especially if you're not familiar with the workings of srcds.
+1. (and that +1 is not only specific to srcds). ;)
__________________
Mostly known as "DarkDeviL".

Dropbox FastDL: Public folder will no longer work after March 15, 2017!
For more info, see the [SRCDS Thread], or the [HLDS Thread].
DarkDeviL is offline
Reply


Thread Tools
Display Modes

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 15:05.


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