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

feat: Add native thread configs #828

Merged
merged 1 commit into from
Aug 15, 2024
Merged

Conversation

viirya
Copy link
Member

@viirya viirya commented Aug 14, 2024

Which issue does this PR close?

Closes #829.

Rationale for this change

What changes are included in this PR?

How are these changes tested?

@viirya viirya force-pushed the add_thread_configs branch 2 times, most recently from 5d4f4e8 to b00c8f2 Compare August 14, 2024 14:11
@viirya viirya force-pushed the add_thread_configs branch from b00c8f2 to 689b53e Compare August 14, 2024 14:18
Comment on lines +149 to +150
.worker_threads(worker_threads)
.max_blocking_threads(blocking_threads)
Copy link
Member

Choose a reason for hiding this comment

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

For reference, we were previously using these defaults:

            // Read from environment variable first in multi-threaded mode.
            // Default to lazy auto-detection (one thread per CPU core)
            worker_threads: None,

            max_blocking_threads: 512,

Copy link
Member

Choose a reason for hiding this comment

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

I ran benchmarks and did not see any regression in performance. It was actually 2% faster but that could be noise.

@viirya viirya merged commit 380f03d into apache:main Aug 15, 2024
74 checks passed
@viirya
Copy link
Member Author

viirya commented Aug 15, 2024

Thanks @andygrove

@viirya viirya deleted the add_thread_configs branch August 15, 2024 05:52
himadripal pushed a commit to himadripal/datafusion-comet that referenced this pull request Sep 7, 2024
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.

Add native thread configs
2 participants