Raised This Month: $ Target: $400
 0% 

HLDS cores/threads


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DeNeDe
AlliedModders Donor
Join Date: Oct 2007
Old 02-12-2022 , 17:10   HLDS cores/threads
Reply With Quote #1

This might seem a weird question, but can HLDS use multiples cores/threads?
I have a 16 cores 32 threads cpu and i see the load from HLDS is only on 1 core and not using all cores/threads available
I'm using a Linux machine.
DeNeDe is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 02-12-2022 , 17:16   Re: HLDS cores/threads
Reply With Quote #2

This engine was written in the 90's. It's a single-threaded application.
__________________
fysiks is offline
DeNeDe
AlliedModders Donor
Join Date: Oct 2007
Old 02-12-2022 , 17:41   Re: HLDS cores/threads
Reply With Quote #3

that's sad.. hoped it got updated at some point
DeNeDe is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 02-12-2022 , 17:42   Re: HLDS cores/threads
Reply With Quote #4

That will never happen.
__________________
fysiks is offline
iclassdon
AlliedModders Donor
Join Date: May 2006
Old 02-12-2022 , 21:59   Re: HLDS cores/threads
Reply With Quote #5

While it doesn't support multi-thread. You can assign a specific core to the HLDS process. Read up on CPU affinity and as it pertains to your particular build of Linux. HLDS defaults on core 0.

With no multi thread support it wont offload to the others like your OS does. So what you can do at the very least, is to keep HLDS from being shared with the normal OS operations by setting it to an affinity other than 0.

This will free up some processing power for you HLDS. ( Best we can do here )

Once done make sure to renice the HLDS process so it takes processing priority over the affinity you set it to.

Hope you find this helpful.

PHP Code:
Processor affinity, or CPU pinning or "cache affinity"enables the binding and unbinding of a process or a thread to a central processing unit or a range of CPUsso that the process or thread will execute only on the designated CPU or CPUs rather than any CPU
iclassdon is offline
Send a message via MSN to iclassdon
AllMassive
Senior Member
Join Date: Sep 2004
Location: /dev/urandom
Old 03-26-2022 , 03:57   Re: HLDS cores/threads
Reply With Quote #6

doesnt rehlds support multicore?
at least it looks like it to me on linux when server has high-load (80%+) and i check via htop....
AllMassive is offline
simanovich
AlliedModders Donor
Join Date: Jun 2012
Location: Israel
Old 05-21-2022 , 15:13   Re: HLDS cores/threads
Reply With Quote #7

Quote:
Originally Posted by AllMassive View Post
doesnt rehlds support multicore?
at least it looks like it to me on linux when server has high-load (80%+) and i check via htop....
No it doesn't
It's the limit of the engine itself - GoldSrc is just too old
__________________
simanovich 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 13:26.


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