Return-Path: X-Original-To: apmail-hbase-dev-archive@www.apache.org Delivered-To: apmail-hbase-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5764810933 for ; Wed, 16 Oct 2013 23:09:43 +0000 (UTC) Received: (qmail 44211 invoked by uid 500); 16 Oct 2013 23:09:42 -0000 Delivered-To: apmail-hbase-dev-archive@hbase.apache.org Received: (qmail 44138 invoked by uid 500); 16 Oct 2013 23:09:42 -0000 Mailing-List: contact dev-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hbase.apache.org Delivered-To: mailing list dev@hbase.apache.org Received: (qmail 44129 invoked by uid 99); 16 Oct 2013 23:09:42 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Oct 2013 23:09:42 +0000 Date: Wed, 16 Oct 2013 23:09:42 +0000 (UTC) From: "Himanshu Vashishtha (JIRA)" To: dev@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HBASE-9785) Fix heap size reporting in HRegion MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Himanshu Vashishtha created HBASE-9785: ------------------------------------------ Summary: Fix heap size reporting in HRegion Key: HBASE-9785 URL: https://issues.apache.org/jira/browse/HBASE-9785 Project: HBase Issue Type: Bug Affects Versions: 0.96.0 Reporter: Himanshu Vashishtha Fix For: 0.98.0, 0.96.1 The size reported by Fixed_Overhead variable in HRegion misses out on a boolean variable. TestHeapSize doesn't report it because of the alignment we do to make it multiple of 8. The equation for HRegion heap usage from Fixed_Overhead is: Fixed_Overhead = align(100 + 42*ref + 1 arr) = align(284) = 288 on a 32 bit vm (On a 32 bit vm, 1 ref = 4bytes, 1 arr = 16 bytes) The equation formed using reflection (in Classsize) is: Expected_Overehead = align(101 + 42*ref + 1arr) = align(285) = 288. So, the testHeapSize doesn't fail currently. But if I add a reference (did in last patch in 8741), it starts failing because, now the equations are: Fixed_Overhead = align(100 + 43*ref + 1 arr) = align(288) = 288 Expected_Overhead = align(101 + 43*ref + 1 arr) = align(289) = 296. -- This message was sent by Atlassian JIRA (v6.1#6144)