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

curve/common: optimize leaky bucket algorithm #1045

Merged
merged 1 commit into from
Jan 25, 2022

Conversation

wuhongsong
Copy link
Contributor

What problem does this PR solve?

Issue Number: close #1013

@wuhongsong
Copy link
Contributor Author

recheck

@wuhongsong
Copy link
Contributor Author

wuhongsong commented Jan 21, 2022

the phenomenon is at #1013

after the optimize, then you can see the effectiveness below:
config:
diskCache.avgFlushBytes=83886080
diskCache.burstFlushBytes=104857600
diskCache.burstSecs=5
ready

@wuhongsong
Copy link
Contributor Author

recheck

curvefs/conf/client.conf Show resolved Hide resolved
curvefs/conf/client.conf Show resolved Hide resolved
curvefs/conf/client.conf Outdated Show resolved Hide resolved
curvefs/conf/client.conf Show resolved Hide resolved
curvefs/conf/client.conf Outdated Show resolved Hide resolved
curvefs/src/client/s3/disk_cache_manager.cpp Outdated Show resolved Hide resolved
src/common/leaky_bucket.cpp Outdated Show resolved Hide resolved
@wuhongsong
Copy link
Contributor Author

recheck

src/common/leaky_bucket.cpp Outdated Show resolved Hide resolved
src/common/leaky_bucket.cpp Outdated Show resolved Hide resolved
src/common/leaky_bucket.cpp Outdated Show resolved Hide resolved
src/common/leaky_bucket.cpp Outdated Show resolved Hide resolved
src/common/leaky_bucket.cpp Outdated Show resolved Hide resolved
@wuhongsong
Copy link
Contributor Author

recheck

curvefs/conf/client.conf Show resolved Hide resolved
curvefs/conf/client.conf Outdated Show resolved Hide resolved
curvefs/src/client/s3/disk_cache_manager.cpp Outdated Show resolved Hide resolved
src/common/leaky_bucket.cpp Outdated Show resolved Hide resolved
src/common/leaky_bucket.cpp Outdated Show resolved Hide resolved
curvefs/src/client/s3/disk_cache_manager.cpp Outdated Show resolved Hide resolved
src/common/leaky_bucket.cpp Outdated Show resolved Hide resolved
@wuhongsong wuhongsong merged commit f85a813 into opencurve:master Jan 25, 2022
@wuhongsong wuhongsong deleted the optimize_leak_bucket branch January 25, 2022 02:03
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.

optimize leaky bucket algorithm
3 participants