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

Investigate thread pool implementation and record the design into a document #102

Closed
marktwtn opened this issue Feb 13, 2019 · 1 comment
Assignees
Labels
feature Outstanding features we should implement
Milestone

Comments

@marktwtn
Copy link
Collaborator

As described from @jserv : #93 (comment)
We should investigate the thread pool design of libtuv
and explain the model in the document docs/threading-model.md.
The document may include the information of thread pool, SMP affinity, load balancing, etc.

The goal is to create the document with the information of thread pool model at least.

@marktwtn
Copy link
Collaborator Author

The size of libtuv thread pool can be controlled by two factor:

  1. Source code: static uv_thread_t default_threads[4];
  2. Environment variable: UV_THREADPOOL_SIZE
    Environment variable has the higher priority.

The maximum thread number is 128(MAX_THREADPOOL_SIZE).

@jserv jserv added the feature Outstanding features we should implement label Mar 13, 2019
@marktwtn marktwtn modified the milestones: Hemlock, Saxifraga Apr 7, 2019
marktwtn added a commit to marktwtn/dcurl that referenced this issue Apr 12, 2019
@jserv jserv closed this as completed in f1c92c9 Apr 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Outstanding features we should implement
Projects
None yet
Development

No branches or pull requests

2 participants