1 2 Previous Next 17 Replies Latest reply on Jul 25, 2011 5:05 AM by pmuir Go to original post
      • 15. Re: BoundedConcurrentHashMap/Eviction Logic on GETs
        vblagojevic

        Hey Shane,

         

        You are right about being stale. I thought about generic context rather than what is relevant to Infinispan. If you have a proposal about sizing these segments I'd love to see it.

         

        All the best,

        Vladimir

        • 16. Re: BoundedConcurrentHashMap/Eviction Logic on GETs
          shane_dev

          I think everything about the segments and sizing is great as it is. It would make sense to use the load factor to determine how often you perform eviction. If you want to have it occur more often and with less entries, use a high load factor. If you want it to occur less often and with more entries, use a low load factor. I wouldn't change anything about that.

           

          I'm just not so sure about performing the actual eviction every N accesses. If we have a capacity of 4M and a load factor of .75, we'd likely be wasting the opportunity to store 1M entries given a consistent GET load. To be honest, it sort of defeats setting the capacity.

           

          As always, I appreciate your participation in this discussion.

          • 17. Re: BoundedConcurrentHashMap/Eviction Logic on GETs
            pmuir

            I am closing this question as assumed answered as there has been no activity for a month. Feel free to reopen it if needed ;-)

            1 2 Previous Next