Skip to content

fix(thread-pool): fix thread count vs binding constructor bug#585

Open
luoxiaojian wants to merge 3 commits into
alibaba:mainfrom
luoxiaojian:lxj/fix-tp
Open

fix(thread-pool): fix thread count vs binding constructor bug#585
luoxiaojian wants to merge 3 commits into
alibaba:mainfrom
luoxiaojian:lxj/fix-tp

Conversation

@luoxiaojian

Copy link
Copy Markdown
Collaborator

No description provided.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
static std::once_flag flag;
std::call_once(flag, [this]() mutable {
this->query_thread_pool_.reset(
new ailego::ThreadPool(GlobalConfig::Instance().query_thread_count()));

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里绑核和不绑核对 benchmark 结果会有影响吗?按照之前的写法,那应该是都进行了绑核。现在更改后相当于默认会不绑核

Comment thread THREAD_POOL_BEHAVIOR.md
@@ -0,0 +1,313 @@
# ThreadPool Constructor and Configuration Behavior

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个文件是不是没必要放到主仓库里

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