1 Reply Latest reply on Jul 8, 2014 8:34 AM by william.burns

    What is the appropriate number of maxEntries

    rayhym

      I understand that the maxEntries should be a power of two (as discussed in this old thread How is the parameter maxEntries interpreted by the Eviction Algorithms?)

       

      However, when I set the maxEntries to 1024 and put a hash map with size 1000 into a cache. In the end, it holds only 959 elements.

       

      Then, I tried to set the maxEntries to 1500. This number could hold all 1000 elements.

       

      But I don't want to randomly estimate the maxEntries number.

       

      Are there any formula or best practice to deal with maxEntries number?

       

      Thank you in advance.