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

WIP: online cpu can be bind by sched_getaffinity() #1883

Draft
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

lhanjian
Copy link
Collaborator

@lhanjian lhanjian commented Nov 3, 2023

nginx's automatic core binding will only bind the cores sequentially from head to tail, and will not obtain the current online cpu.

https://forum.nginx.org/read.php?29,279564,279569#msg-279569

Similar needs and discussions in the nginx community

@chobits chobits marked this pull request as draft November 3, 2023 14:07
@chobits
Copy link
Member

chobits commented Nov 3, 2023

I convert this PR to draft. There are some compilation error found by test cases. If your pr is ready to review, click ready to review in this page.

@chobits chobits self-requested a review November 3, 2023 14:09
auto/unix Outdated Show resolved Hide resolved
src/core/nginx.c Outdated Show resolved Hide resolved
src/os/unix/ngx_getaffinity.c Outdated Show resolved Hide resolved
@chobits chobits requested a review from drawing November 3, 2023 14:17
@chobits
Copy link
Member

chobits commented Nov 3, 2023

TODO: also need to create documentation for this feature

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.

None yet

2 participants