You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by WangYQ <wa...@163.com> on 2016/06/13 07:33:22 UTC
question on class CacheConfig
in hbase 0.98.10
class CacheConfig
in line 417, we get lruCacheSize from heap conf and cachePercentage
in line 450, when we use combineWithLru, we get a new lruCacheSize again from bucketCacheSize
lruCacheSize should have no relation with bucketCache, i think is not so property to get lruCacheSize from bucketCacheSize
Re: question on class CacheConfig
Posted by Ted Yu <yu...@gmail.com>.
if (combinedWithLru) {
lruCacheSize = (long) ((1 - combinedPercentage) *
bucketCacheSize);
bucketCacheSize = (long) (combinedPercentage * bucketCacheSize);
}
Looks like the above came from introduction of Bucket Cache :
HBASE-7404 Bucket Cache:A solution about CMS,Heap Fragment and Big Cache on
HBASE (Chunhui)
FYI
On Mon, Jun 13, 2016 at 12:33 AM, WangYQ <wa...@163.com> wrote:
> in hbase 0.98.10
> class CacheConfig
> in line 417, we get lruCacheSize from heap conf and cachePercentage
> in line 450, when we use combineWithLru, we get a new lruCacheSize again
> from bucketCacheSize
>
>
> lruCacheSize should have no relation with bucketCache, i think is not so
> property to get lruCacheSize from bucketCacheSize