-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
GH-36121: [R] Warn for set_io_thread_count()
with num_threads
< 2
#36304
Conversation
|
hi @paleolimbot thanks writing a PR that partially addresses the issue I created. |
I'd like to keep the scope of this particular PR to the immediate concern, which is that somebody might set the number of IO threads to 1, observe a hang/crash, and not know why! I promise to follow up on this in #36324 because you're right: we don't dedicate much space to documenting these options and they can have a rather large impact on performance. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, looks good to me!
Conbench analyzed the 5 benchmark runs on commit There were 3 benchmark results indicating a performance regression:
The full Conbench report has more details. |
Rationale for this change
Setting the number of threads in the IO thread pool to 1 causes a hang or crash when using some functions (notably: any Acero exec plan).
What changes are included in this PR?
set_io_thread_count()
now warns fornum_threads == 1
:Created on 2023-06-26 with reprex v2.0.2
Are these changes tested?
Yes
Are there any user-facing changes?
Yes: some existing code may issue a warning that previously did not. Documentation was added.