hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-6603) RegionMetricsStorage.incrNumericMetric is called too often
Date Wed, 05 Sep 2012 00:59:14 GMT

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

Hudson commented on HBASE-6603:
-------------------------------

Integrated in HBase-0.94-security-on-Hadoop-23 #7 (See [https://builds.apache.org/job/HBase-0.94-security-on-Hadoop-23/7/])
    HBASE-6603 RegionMetricsStorage.incrNumericMetric is called too often (M. Chen and Lars
H) (Revision 1375318)

     Result = FAILURE
larsh : 
Files : 
* /hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/regionserver/StoreScanner.java

                
> RegionMetricsStorage.incrNumericMetric is called too often
> ----------------------------------------------------------
>
>                 Key: HBASE-6603
>                 URL: https://issues.apache.org/jira/browse/HBASE-6603
>             Project: HBase
>          Issue Type: Bug
>          Components: performance
>            Reporter: Lars Hofhansl
>            Assignee: M. Chen
>             Fix For: 0.96.0, 0.94.2
>
>         Attachments: 6503-0.96.txt, 6603-0.94.txt
>
>
> Running an HBase scan load through the profiler revealed that RegionMetricsStorage.incrNumericMetric
is called way too often.
> It turns out that we make this call for *each* KV in StoreScanner.next(...).
> Incrementing AtomicLong requires expensive memory barriers.
> The observation here is that StoreScanner.next(...) can maintain a simple 
> long in its internal loop and only update the metric upon exit. Thus the AtomicLong is
not updated nearly as often.
> That cuts about 10% runtime from scan only load (I'll quantify this better soon).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message