[
https://issues.apache.org/jira/browse/CASSANDRA-11452?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15234269#comment-15234269
]
Ben Manes commented on CASSANDRA-11452:
---------------------------------------
[CASSANDRA-10855|https://issues.apache.org/jira/browse/CASSANDRA-10855]
introduces [TinyLFU|https://github.com/ben-manes/caffeine/wiki/Efficiency]
which matches or beats LIRS at much lower space usage and complexity. This is
because it uses a frequency sketch instead of retaining a large number of ghost
entries. See the [HighScalability
article|http://highscalability.com/blog/2016/1/25/design-of-a-modern-cache.html]
for details. The patch uses [Caffeine|https://github.com/ben-manes/caffeine],
the successor to Guava's cache and CLHM (used by Cassandra) which are LRU.
Can you evaluate against that?
> Cache implementation using LIRS eviction for in-process page cache
> ------------------------------------------------------------------
>
> Key: CASSANDRA-11452
> URL: https://issues.apache.org/jira/browse/CASSANDRA-11452
> Project: Cassandra
> Issue Type: Improvement
> Components: Local Write-Read Paths
> Reporter: Branimir Lambov
> Assignee: Branimir Lambov
>
> Following up from CASSANDRA-5863, to make best use of caching and to avoid
> having to explicitly marking compaction accesses as non-cacheable, we need a
> cache implementation that uses an eviction algorithm that can better handle
> non-recurring accesses.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)