Searched refs:targetCpuUsage (Results 1 – 4 of 4) sorted by relevance
/dports/devel/hadoop2/hadoop-2.7.2-src/hadoop-tools/hadoop-gridmix/src/main/java/org/apache/hadoop/mapred/gridmix/emulators/resourceusage/ |
H A D | CumulativeCpuUsageEmulatorPlugin.java | 68 private long targetCpuUsage = 0; field in CumulativeCpuUsageEmulatorPlugin 240 ? Math.min(1f, ((float)getCurrentCPUUsage())/targetCpuUsage) in getProgress() 271 if (projectedUsage < targetCpuUsage) { in emulate() 275 (long)(targetCpuUsage in emulate() 307 targetCpuUsage = metrics.getCumulativeCpuUsage(); in initialize() 308 if (targetCpuUsage <= 0 ) { in initialize() 319 emulatorCore.calibrate(monitor, targetCpuUsage); in initialize()
|
/dports/devel/hadoop/hadoop-1.2.1/src/contrib/gridmix/src/java/org/apache/hadoop/mapred/gridmix/emulators/resourceusage/ |
H A D | CumulativeCpuUsageEmulatorPlugin.java | 68 private long targetCpuUsage = 0; field in CumulativeCpuUsageEmulatorPlugin 238 return Math.min(1f, ((float)getCurrentCPUUsage())/targetCpuUsage); in getProgress() 268 if (projectedUsage < targetCpuUsage) { in emulate() 272 (long)(targetCpuUsage in emulate() 301 targetCpuUsage = metrics.getCumulativeCpuUsage(); in initialize() 302 if (targetCpuUsage <= 0 ) { in initialize() 315 emulatorCore.calibrate(monitor, targetCpuUsage); in initialize()
|
/dports/devel/hadoop2/hadoop-2.7.2-src/hadoop-tools/hadoop-gridmix/src/test/java/org/apache/hadoop/mapred/gridmix/ |
H A D | TestResourceUsageEmulators.java | 441 long targetCpuUsage = 1000L; in testCumulativeCpuUsageEmulatorPlugin() local 481 ResourceUsageMetrics metrics = createMetrics(targetCpuUsage); in testCumulativeCpuUsageEmulatorPlugin() 488 targetCpuUsage, targetCpuUsage / unitCpuUsage); in testCumulativeCpuUsageEmulatorPlugin() 494 targetCpuUsage, targetCpuUsage / unitCpuUsage); in testCumulativeCpuUsageEmulatorPlugin() 530 testEmulationBoundary(1F, fakeCore, fakeProgress, cpuPlugin, targetCpuUsage, in testCumulativeCpuUsageEmulatorPlugin() 531 targetCpuUsage, "[op, 100% progress]"); in testCumulativeCpuUsageEmulatorPlugin() 568 testEmulationBoundary(1F, fakeCore, fakeProgress, cpuPlugin, targetCpuUsage, in testCumulativeCpuUsageEmulatorPlugin() 569 targetCpuUsage / unitCpuUsage, "[op, 100% progress]"); in testCumulativeCpuUsageEmulatorPlugin()
|
/dports/devel/hadoop/hadoop-1.2.1/src/contrib/gridmix/src/test/org/apache/hadoop/mapred/gridmix/ |
H A D | TestResourceUsageEmulators.java | 452 long targetCpuUsage = 1000L; in testCumulativeCpuUsageEmulatorPlugin() local 487 ResourceUsageMetrics metrics = createMetrics(targetCpuUsage); in testCumulativeCpuUsageEmulatorPlugin() 494 targetCpuUsage, targetCpuUsage / unitCpuUsage); in testCumulativeCpuUsageEmulatorPlugin() 500 targetCpuUsage, targetCpuUsage / unitCpuUsage); in testCumulativeCpuUsageEmulatorPlugin() 536 testEmulationBoundary(1F, fakeCore, fakeProgress, cpuPlugin, targetCpuUsage, in testCumulativeCpuUsageEmulatorPlugin() 537 targetCpuUsage, "[op, 100% progress]"); in testCumulativeCpuUsageEmulatorPlugin() 574 testEmulationBoundary(1F, fakeCore, fakeProgress, cpuPlugin, targetCpuUsage, in testCumulativeCpuUsageEmulatorPlugin() 575 targetCpuUsage / unitCpuUsage, "[op, 100% progress]"); in testCumulativeCpuUsageEmulatorPlugin()
|