Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include Performance Cores only in default affinity mask #7634

Closed
hvlad opened this issue Jun 16, 2023 · 0 comments · Fixed by #7635
Closed

Include Performance Cores only in default affinity mask #7634

hvlad opened this issue Jun 16, 2023 · 0 comments · Fixed by #7635

Comments

@hvlad
Copy link
Member

hvlad commented Jun 16, 2023

Some modern CPU's could contain two set of cores - Efficient (E) and Performance (P).
By default Firebird runs on all available cores. Many times I saw significant performance drop in this (default) case.
Setting affinity mask to exclude E-cores restore performance to the expected level. More, I see the same problem not
only with Firebird, for example Firebird build runs near 3 times slower when E-cores are used on my i7-12700 CPU (8P + 4E).
So far this problem was not confirmed on non-Windows OS. Note, CpuAffinityMask is implemented on Windows only.

I offer to exclude E-cores when affinity mask is not set, i.e. by default.

@hvlad hvlad self-assigned this Jun 16, 2023
hvlad added a commit that referenced this issue Jun 17, 2023
Improvement #7634 : Include Performance Cores only in default affinity mask
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant