You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Yusaku Sako (JIRA)" <ji...@apache.org> on 2013/04/16 22:01:15 UTC

[jira] [Commented] (AMBARI-1946) Heatmap memory should not include cached memory as part of "used"

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

Yusaku Sako commented on AMBARI-1946:
-------------------------------------

+1 for the patch.
                
> Heatmap memory should not include cached memory as part of "used"
> -----------------------------------------------------------------
>
>                 Key: AMBARI-1946
>                 URL: https://issues.apache.org/jira/browse/AMBARI-1946
>             Project: Ambari
>          Issue Type: Bug
>          Components: client
>    Affects Versions: 1.2.2
>            Reporter: Jeff Sposetti
>            Assignee: Jeff Sposetti
>             Fix For: 1.3.0
>
>         Attachments: AMBARI-1946.patch
>
>
> The "Memory Used %" is currently calculated using the formula:
> (mem_total - mem_free)/mem_total
> Although this is accurate, the total includes mem_cached (file system cache), which the kernal can take back whenever it wants to.
> Therefore, formula can be doing this instead to treat cache as free:
> (mem_total - mem_free - mem_cached)/mem_total

--
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