incubator-directmemory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Raffaele P. Guidi" <raffaele.p.gu...@gmail.com>
Subject Re: Eviction issue
Date Mon, 17 Oct 2011 06:35:37 GMT
Well of course it there was room for other entries it is a bug (my fault).
Disposal functions should return without doing nothing if conditions do not
apply

On Monday, October 17, 2011, Ashish <paliwalashish@gmail.com> wrote:
> Folks,
>
> This is a query regarding the Eviction. Scenario is
>
> Add entries to offheap without expiry aka 0
> Let the schedulesdisposal run after 10 sec
> Access the key
>
> It returns null :(
>
> I tried to dig a bit deeper into and found that collectExpired() &
> collectLFU() are executed during schedules cleanup, and collectLFU was
> causing the entry to be freed, though it has not expired.
>
> IMHO, we should call collectLFU() under resource constraints, like we
> are short on space for entries, then we should evict LFU, wdyt?
>
> --
> thanks
> ashish
>
> Blog: http://www.ashishpaliwal.com/blog
> My Photo Galleries: http://www.pbase.com/ashishpaliwal
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message