[infinispan-dev] Time measurement and expiry

Manik Surtani manik at jboss.org
Thu Oct 27 11:58:46 EDT 2011


On 20 Oct 2011, at 08:47, Galder Zamarreño wrote:

>>> 
>>> Why are we preferring to provide more cache misses && slower
>>> performance, to fake a slightly better precision in eviction?
>>> 
>> 
>> I guess this is the main question, how much worse would the eviction
>> precision be if we only relied on the periodic eviction thread?
> 
> We did use to have a periodic eviction thread in the JBoss Cache days, but that used to cause us problems since we queued events to the cache in order to apply eviction algorithms.

That was a different case.  In JBC we picked nodes for eviction and put them on an eviction queue and they were analysed periodically.  That queue became a bottleneck.  

The suggestion here is to essentially cache time lookups so that you don't call System.cTM() all the time.  See Elias Ross' parallel post to this list about Netty's HashedWheelTimer.  

Sanne, I recall your creating a JIRA for this?

--
Manik Surtani
manik at jboss.org
twitter.com/maniksurtani

Lead, Infinispan
http://www.infinispan.org



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/infinispan-dev/attachments/20111027/c5ad9bdd/attachment-0001.html 


More information about the infinispan-dev mailing list