Skip to content

Commit 3470489

Browse files
committed
YARN-11687. Update CGroupsResourceCalculator to track usages using cgroupv2
- fix style
1 parent 4fedb99 commit 3470489

File tree

1 file changed

+6
-4
lines changed
  • hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/linux/resources

1 file changed

+6
-4
lines changed

hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/linux/resources/CGroupsV2ResourceCalculator.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public class CGroupsV2ResourceCalculator extends AbstractCGroupsResourceCalculat
6161
private static final Logger LOG = LoggerFactory.getLogger(CGroupsV2ResourceCalculator.class);
6262

6363
/**
64-
* <a href="https://docs.kernel.org/admin-guide/cgroup-v2.html#cpu-interface-files">Documentation</a>
64+
* <a href="https://docs.kernel.org/admin-guide/cgroup-v2.html#cpu-interface-files">DOC</a>
6565
*
6666
* ...
6767
* cpu.stat
@@ -76,12 +76,14 @@ public class CGroupsV2ResourceCalculator extends AbstractCGroupsResourceCalculat
7676
private static final String CPU_STAT = "cpu.stat#usage_usec";
7777

7878
/**
79-
* <a href="https://docs.kernel.org/admin-guide/cgroup-v2.html#memory-interface-files">Documentation</a>
79+
* <a href="https://docs.kernel.org/admin-guide/cgroup-v2.html#memory-interface-files">DOC</a>
8080
*
8181
* ...
8282
* memory.stat
8383
* A read-only flat-keyed file which exists on non-root cgroups.
84-
* This breaks down the cgroup’s memory footprint into different types of memory, type-specific details, and other information on the state and past events of the memory management system.
84+
* This breaks down the cgroup’s memory footprint into different types of memory,
85+
* type-specific details, and other information on the state
86+
* and past events of the memory management system.
8587
* All memory amounts are in bytes.
8688
* ...
8789
* anon
@@ -92,7 +94,7 @@ public class CGroupsV2ResourceCalculator extends AbstractCGroupsResourceCalculat
9294
private static final String MEM_STAT = "memory.stat#anon";
9395

9496
/**
95-
* <a href="https://docs.kernel.org/admin-guide/cgroup-v2.html#memory-interface-files">Documentation</a>
97+
* <a href="https://docs.kernel.org/admin-guide/cgroup-v2.html#memory-interface-files">DOC</a>
9698
*
9799
* ...
98100
* memory.swap.current

0 commit comments

Comments
 (0)