[
https://issues.apache.org/jira/browse/HADOOP-12356?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15061384#comment-15061384
]
Inigo Goiri commented on HADOOP-12356:
--------------------------------------
{{SysInfo#getCpuUsage}} returns a number between 0 and 100%. The
{{ResourceUtilization}} returned by {{NodeResourceMonitorImpl}} should contain
the number of used VCores. To return VCores, we need to take the CPU usage
(0-100%) from {{SysInfo#getCpuUsage}}, multiply it by the total number of
cores, and divide by a 100, right?
Right now in trunk, this is broken for Linux because when the system is fully
utilized, it will return 100, while it should return 4 if it has 4 cores.
> CPU usage statistics on Windows
> -------------------------------
>
> Key: HADOOP-12356
> URL: https://issues.apache.org/jira/browse/HADOOP-12356
> Project: Hadoop Common
> Issue Type: Bug
> Components: util
> Environment: CPU: Intel Xeon
> OS: Windows server
> Reporter: Yunqi Zhang
> Assignee: Yunqi Zhang
> Labels: easyfix, newbie, patch
> Attachments: 0001-Correct-the-CPU-usage-calcualtion.patch,
> 0001-Correct-the-CPU-usage-calcualtion.patch, HADOOP-12356-v3.patch
>
> Original Estimate: 2h
> Remaining Estimate: 2h
>
> The CPU usage information on Windows is computed incorrectly. The proposed
> patch fixes the issue, and unifies the the interface with Linux.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)