-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
55904: kvserver: replace rate.RateLimiter with quotapool.RateLimiter in consistency_queue r=lunevalex a=lunevalex Fixes #55652 When running a large restore job, we discovered high CPU usage, which was attributed to the new rate limiter in the consistency_queue introduced in #49763. During the checksum computation the rate limiter ends up doing a lot of nanosecond waits, due to the typically small size of individual key/value pairs. This is inefficient by itself, but since the rate.RateLimiter creates a new Timer for every wait, it ends up being extremely inefficient. The quota pool.RateLimiter pools Timers reducing allocation churn and supports a minimum wait parameter, which converts a lot of small waits into a few larger waits during checksum calculations. Release note: None Co-authored-by: Alex Lunev <[email protected]>
- Loading branch information
Showing
9 changed files
with
34 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.