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

Slow eviction #2960

Open
cruftex opened this issue Nov 1, 2021 · 1 comment
Open

Slow eviction #2960

cruftex opened this issue Nov 1, 2021 · 1 comment
Assignees

Comments

@cruftex
Copy link

cruftex commented Nov 1, 2021

I recently started benchmarking caches again and it seems that eviction performance of EHCache3 is several orders of magnitude worse than Caffeine and cache2k. See this drastic example:

PopulateParallelTwiceBenchmark-byThreads-4M-notitle

The benchmarks inserts an increasing sequence of keys. The keys range from 0 to 8M with a cache capacity set to 4M. So after inserting 4M, the cache has to start eviction. More details can be found in the latest cache2k benchmarks

Can you please double check? Please also check whether there is some missconfiguration or missed tuning possibility. The relevant code is at EhCache3Factory

I would like to update the benchmarks in a few days and I am happy to incorporate any feedback.

@chrisdennis chrisdennis self-assigned this Nov 2, 2021
@chrisdennis
Copy link
Member

chrisdennis commented Nov 2, 2021

We're aware that there is a performance issue here- and there is nothing specifically wrong with your configuration. It's not likely however that this is going to see developer time in the next few days. Lets leave this open to track any future work in this area in relation to your benchmarking suite. I'll drop updates here if/when I (or anyone else) make progress in this area.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants