tez-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rbalamo...@apache.org
Subject git commit: TEZ-1118. Tez with container reuse reports negative CPU usage. Contributed by Robert Grandl.
Date Wed, 09 Jul 2014 03:07:15 GMT
Repository: incubator-tez
Updated Branches:
  refs/heads/master ca09b9626 -> 1333a83a5


TEZ-1118. Tez with container reuse reports negative CPU usage. Contributed by Robert Grandl.


Project: http://git-wip-us.apache.org/repos/asf/incubator-tez/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tez/commit/1333a83a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tez/tree/1333a83a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tez/diff/1333a83a

Branch: refs/heads/master
Commit: 1333a83a5fd279daadcb49ee9b1a36d7961312a8
Parents: ca09b96
Author: Rajesh Balamohan <rbalamohan@apache.org>
Authored: Wed Jul 9 08:33:15 2014 +0530
Committer: Rajesh Balamohan <rbalamohan@apache.org>
Committed: Wed Jul 9 08:33:15 2014 +0530

----------------------------------------------------------------------
 .../java/org/apache/tez/runtime/metrics/TaskCounterUpdater.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tez/blob/1333a83a/tez-runtime-internals/src/main/java/org/apache/tez/runtime/metrics/TaskCounterUpdater.java
----------------------------------------------------------------------
diff --git a/tez-runtime-internals/src/main/java/org/apache/tez/runtime/metrics/TaskCounterUpdater.java
b/tez-runtime-internals/src/main/java/org/apache/tez/runtime/metrics/TaskCounterUpdater.java
index 5c443df..1972535 100644
--- a/tez-runtime-internals/src/main/java/org/apache/tez/runtime/metrics/TaskCounterUpdater.java
+++ b/tez-runtime-internals/src/main/java/org/apache/tez/runtime/metrics/TaskCounterUpdater.java
@@ -122,7 +122,7 @@ public class TaskCounterUpdater {
     long vMem = pTree.getCumulativeVmem();
     // Remove the CPU time consumed previously by JVM reuse
     cpuTime -= initCpuCumulativeTime;
-    tezCounters.findCounter(TaskCounter.CPU_MILLISECONDS).setValue(cpuTime - initCpuCumulativeTime);
+    tezCounters.findCounter(TaskCounter.CPU_MILLISECONDS).setValue(cpuTime);
     tezCounters.findCounter(TaskCounter.PHYSICAL_MEMORY_BYTES).setValue(pMem);
     tezCounters.findCounter(TaskCounter.VIRTUAL_MEMORY_BYTES).setValue(vMem);
   }


Mime
View raw message