hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ram Venkatesh (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-3122) Metrics for container's actual CPU usage
Date Thu, 05 Mar 2015 14:06:40 GMT

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

Ram Venkatesh commented on YARN-3122:
-------------------------------------

Hi [~adhoot], thank you for working on this.

This introduces a breaking change in ResourceCalculatorProcessTree 

{code}
+  /**
+   * Get the CPU usage by all the processes in the process-tree based on
+   * average between samples as a ratio of overall CPU cycles similar to top.
+   * Thus, if 2 out of 4 cores are used this should return 200.0.
+   *
+   * @return percentage CPU usage since the process-tree was created
+   *         return {@link CpuTimeTracker#UNAVAILABLE} if it cannot be calculated
+   */
+  public abstract float getCpuUsagePercent();
{code}

Can it be changed to virtual and return UNAVAILABLE?

Thanks!
Ram

> Metrics for container's actual CPU usage
> ----------------------------------------
>
>                 Key: YARN-3122
>                 URL: https://issues.apache.org/jira/browse/YARN-3122
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>          Components: nodemanager
>    Affects Versions: 2.6.0
>            Reporter: Anubhav Dhoot
>            Assignee: Anubhav Dhoot
>             Fix For: 2.7.0
>
>         Attachments: YARN-3122.001.patch, YARN-3122.002.patch, YARN-3122.003.patch, YARN-3122.004.patch,
YARN-3122.005.patch, YARN-3122.006.patch, YARN-3122.007.patch, YARN-3122.prelim.patch, YARN-3122.prelim.patch
>
>
> It would be nice to capture resource usage per container, for a variety of reasons. This
JIRA is to track CPU usage. 
> YARN-2965 tracks the resource usage on the node, and the two implementations should reuse
code as much as possible. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message