hadoop-yarn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zhongkai Mi (JIRA)" <j...@apache.org>
Subject [jira] [Created] (YARN-5179) Issue of CPU usage of containers
Date Sun, 29 May 2016 15:11:12 GMT
Zhongkai Mi created YARN-5179:
---------------------------------

             Summary: Issue of CPU usage of containers
                 Key: YARN-5179
                 URL: https://issues.apache.org/jira/browse/YARN-5179
             Project: Hadoop YARN
          Issue Type: Bug
          Components: nodemanager
    Affects Versions: 2.7.0
         Environment: Both on Windows and Linux
            Reporter: Zhongkai Mi


// Multiply by 1000 to avoid losing data when converting to int 
       int milliVcoresUsed = (int) (cpuUsageTotalCoresPercentage * 1000 
              * maxVCoresAllottedForContainers /nodeCpuPercentageForYARN); 

This formula will not get right CPU usage based vcore if vcores != physical cores. 





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

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-dev-help@hadoop.apache.org


Mime
View raw message