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

High statistics poll overhead / Separate hit counter for statistics / Drop approximate stats and hash quality metric #150

cruftex opened this issue Aug 19, 2020 · 1 comment


Copy link

cruftex commented Aug 19, 2020

cache2k has approximate statistics for the hit counter. It uses the hit counter inside the cache entry, that is also used by the eviction algorithm. The statistics come for free, however, we need to iterate through all cache entries and sum up the hits when we request the statistics.

In case a cache is big and statistics are polled frequently, that might cause quite a CPU load.
Maybe do some deeper investigations on the overhead.

Copy link
Member Author

cruftex commented Oct 14, 2021

Releases as preview a while a go. So far testing looks good.

@cruftex cruftex closed this as completed Oct 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet

No branches or pull requests

1 participant