Skip to content

Avoid pinning an E-core for newer Intel CPUs - #531

Merged
k0kubun merged 1 commit into
ruby:mainfrom
k0kubun:p-core
Aug 31, 2026
Merged

Avoid pinning an E-core for newer Intel CPUs#531
k0kubun merged 1 commit into
ruby:mainfrom
k0kubun:p-core

Conversation

@k0kubun

@k0kubun k0kubun commented Aug 31, 2026

Copy link
Copy Markdown
Member

Follow-up on #318

Some of newer Intel CPUs have 8 P-Cores and 16 E-Cores, so only the first third of CPU cores are P-Cores. Older generations have a higher ratio of P-Cores than that. So, for now, $(nproc) / 3 - 1 seems like an easy way to pick a P-Core whose index is reasonably large. See also #318 (comment) for why we're not using the first core.

@k0kubun

k0kubun commented Aug 31, 2026

Copy link
Copy Markdown
Member Author

Used this for the paper.

@k0kubun
k0kubun merged commit e73823e into ruby:main Aug 31, 2026
11 checks passed
@k0kubun
k0kubun deleted the p-core branch August 31, 2026 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant