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

cache: set the number of worker threads of tokio threads pool #246

Merged
merged 1 commit into from
Dec 28, 2021
Merged

cache: set the number of worker threads of tokio threads pool #246

merged 1 commit into from
Dec 28, 2021

Conversation

changweige
Copy link
Contributor

It previously uses the default runtime builder which creates
a thread for each cpu core. Nydusd on a server equipped many
cpu sockets and cores will start many threads most of which are
idle.

In addition, use spawn_blocking instead which is more reasonable
within blobcache scenario

Signed-off-by: Changwei Ge chge@linux.alibaba.com

It previously uses the default runtime builder which creates
a thread for each cpu core. Nydusd on a server equipped many
cpu sockets and cores will start many threads most of which are
idle.

In addition, use `spawn_blocking` instead which is more reasonable
within blobcache scenario

Signed-off-by: Changwei Ge <chge@linux.alibaba.com>
@imeoer imeoer merged commit e34a553 into dragonflyoss:master Dec 28, 2021
@changweige changweige deleted the pick-tokio-threads branch January 7, 2022 03:20
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.

2 participants