You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Michael Stack (Jira)" <ji...@apache.org> on 2020/08/06 22:55:00 UTC
[jira] [Resolved] (HBASE-24659) Calculate FIXED_OVERHEAD
automatically
[ https://issues.apache.org/jira/browse/HBASE-24659?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Stack resolved HBASE-24659.
-----------------------------------
Fix Version/s: 2.4.0
3.0.0-alpha-1
Hadoop Flags: Reviewed
Resolution: Fixed
Pushed on branch-2 and master (pushed because I held up the commit by not responding to ping....). Thanks for the patch [~niuyulin]
> Calculate FIXED_OVERHEAD automatically
> --------------------------------------
>
> Key: HBASE-24659
> URL: https://issues.apache.org/jira/browse/HBASE-24659
> Project: HBase
> Issue Type: Improvement
> Reporter: Duo Zhang
> Assignee: niuyulin
> Priority: Major
> Fix For: 3.0.0-alpha-1, 2.4.0
>
> Attachments: 50M-performance.pdf
>
>
> Now the FIXED_OVERHEAD in some classes are maintained manually, an we have a method to TestHeapSizes to confirm that the value is correct.
> But it is really hard for developers to count the fields in a complicated class like HRegion. Since we have the ability to calcuate the accurate size in UT, I think we it is also possible to calcuate it when loading the class, which is a one time operation so should not effect the performance too much.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)