[ 
https://issues.apache.org/jira/browse/HBASE-17757?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15923456#comment-15923456
 ] 

Allan Yang commented on HBASE-17757:
------------------------------------

{quote}
Why? Pls see the condition is ||. So when ratio is 1, the condition block size 
written >= 64 KB will break 1st and so we end a block. It is not that we just 
consider encodedBlockSize alone. Am I missing some thing.
{quote}
Oh, I'm sorry, you are right! It's a brilliant way to just introduce one 
config. I will update the patch. 

> Unify blocksize after encoding to decrease memory fragment 
> -----------------------------------------------------------
>
>                 Key: HBASE-17757
>                 URL: https://issues.apache.org/jira/browse/HBASE-17757
>             Project: HBase
>          Issue Type: New Feature
>            Reporter: Allan Yang
>            Assignee: Allan Yang
>         Attachments: HBASE-17757.patch
>
>
> Usually, we store encoded block(uncompressed) in blockcache/bucketCache. 
> Though we have set the blocksize, after encoding, blocksize is varied. Varied 
> blocksize will cause memory fragment problem, which will result in more FGC 
> finally.In order to relief the memory fragment, This issue adjusts the 
> encoded block to a unified size.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to