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

Closed
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>
[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>
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
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
Author
Member

bad pr with bad results

bad pr with bad results
Lizzie closed this pull request 2025-10-16 20:04:29 +02:00
All checks were successful
eden-license / license-header (pull_request) Successful in 20s
Required
Details

Pull request closed

Sign in to join this conversation.
No description provided.