Skip to content

Conversation

@jpountz
Copy link
Contributor

@jpountz jpountz commented Apr 11, 2024

Disable ConcurrentMergeScheduler's auto I/O throttling by default.

This is motivated by the fact that merges can hardly steal all I/O resources
from searches on modern NVMe drives. Merges are still not allowed to use all
CPU since they have a budget for the number of threads which is a fraction of
the number of threads that the host can run.

Closes #13193

jpountz added 3 commits April 11, 2024 10:44
This is motivated by the fact that merges can hardly steal all I/O resources
from searches on modern NVMe drives. Merges are still not allowed to use all
CPU since they have a budget for the number of threads which is a fraction of
the number of threads that the host can run.

Closes apache#13193
@jpountz jpountz added this to the 10.0.0 milestone Apr 11, 2024
Copy link
Member

@mikemccand mikemccand left a comment

Choose a reason for hiding this comment

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

Thanks @jpountz! How times have changed (from spinning magnets to tiny transistors)...


/** true if we should rate-limit writes for each merge */
private boolean doAutoIOThrottle = true;
private boolean doAutoIOThrottle = false;
Copy link
Member

Choose a reason for hiding this comment

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

Maybe just remove the = false since it's java's default.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I liked it being explicit to show that it's false by default on purpose rather than just because false is the default value for a Java boolean?

Copy link
Contributor

Choose a reason for hiding this comment

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

Please make those explcit.

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.

Merge rate limiting should allow for some bursting?

3 participants