WIP: [core] let OS control affinity of threads as opposed to manually setting #2571

Draft
Lizzie wants to merge 3 commits from liz-thread-competition-experiment into master
Member

This will make the CFS in Linux kernels be happy (as marking too many threads as critical actually reduces performance). The load balancing gets distributed evenly across the 4 cores which will outperform in a 8-core setup system. We still have over 40 threads but this SHOULD help to reduce thread contention (especially since the CPU thread is one of the most important to run). The scheduling should be ideally left to the OS as most of them have decades of running proficient scheduling algorithms which likely outperforms any hand-made solutions.

Signed-off-by: lizzie lizzie@eden-emu.dev

This will make the CFS in Linux kernels be happy (as marking too many threads as critical actually reduces performance). The load balancing gets distributed evenly across the 4 cores which will outperform in a 8-core setup system. We still have over 40 threads but this *SHOULD* help to reduce thread contention (especially since the CPU thread is one of the most important to run). The scheduling should be ideally left to the OS as most of them have decades of running proficient scheduling algorithms which likely outperforms any hand-made solutions. Signed-off-by: lizzie <lizzie@eden-emu.dev>
Lizzie added 1 commit 2025-09-25 02:40:15 +02:00
[core] give exclusive affinity control to CPU threads
Some checks failed
eden-license / license-header (pull_request) Failing after 20s
8620d9cbe5
Signed-off-by: lizzie <lizzie@eden-emu.dev>
requested reviews from CamilleLaVey, Maufeat, crueter, MrPurple666, MaranBr 2025-09-25 02:40:15 +02:00
Lizzie added 1 commit 2025-09-25 02:41:33 +02:00
fix license
All checks were successful
eden-license / license-header (pull_request) Successful in 18s
1484724ee9
Signed-off-by: lizzie <lizzie@eden-emu.dev>
CamilleLaVey approved these changes 2025-09-25 02:59:04 +02:00
Dismissed
MaranBr approved these changes 2025-09-25 03:08:05 +02:00
Dismissed
Lizzie added 1 commit 2025-09-25 05:25:40 +02:00
noone gets thread affinity controls
All checks were successful
eden-license / license-header (pull_request) Successful in 20s
4150452f5a
Signed-off-by: lizzie <lizzie@eden-emu.dev>
Lizzie dismissed CamilleLaVey's review 2025-09-25 05:25:40 +02:00
Reason:

New commits pushed, approval review dismissed automatically according to repository settings

Lizzie dismissed MaranBr's review 2025-09-25 05:25:40 +02:00
Reason:

New commits pushed, approval review dismissed automatically according to repository settings

Lizzie changed title from [core] give exclusive affinity control to CPU threads to WIP: [core] give exclusive affinity control to CPU threads 2025-09-25 05:28:29 +02:00
Lizzie changed title from WIP: [core] give exclusive affinity control to CPU threads to WIP: [core] let OS control affinity of threads as opposed to manually setting 2025-09-25 05:29:25 +02:00
All checks were successful
eden-license / license-header (pull_request) Successful in 20s
Required
Details
This pull request is marked as a work in progress.
This branch is out-of-date with the base branch
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin liz-thread-competition-experiment:liz-thread-competition-experiment
git checkout liz-thread-competition-experiment
Sign in to join this conversation.
No description provided.