You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by Zach York <zy...@gmail.com> on 2017/07/27 17:20:14 UTC

BucketCache DEFAULT_MIN_FACTOR

Hello,

I have been looking through the code for BucketCache and I found that when
calculating the partition size for single, multi, and memory segments, it
is only utilizing 85% of the cache. This is due to the DEFAULT_MIN_FACTOR
(0.85).

Why is this necessary? Since the bucketcache is either off-heap or in a
file, there will be no problems with GC. Is this only to prevent from
blocking on writes (while an eviction is going on)?

Thanks for any info you can provide!
Zach