Skip to content

Commit f83110a

Browse files
committed
tools/contrib: Add tasksetcpu.py to show the CPU allocation grid
Signed-off-by: Jose J Palacios-Perez <[email protected]>
1 parent ee2d596 commit f83110a

File tree

2 files changed

+593
-0
lines changed

2 files changed

+593
-0
lines changed

src/tools/contrib/README.rst

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,21 @@ Please do not assume any level of support. Your mileage may vary.
88

99
Each file's header must include a tracker number and an author signed-off-by
1010
line.
11+
12+
13+
- balance-cpu.py. An utility to distribute the Seastar reactor threads over the
14+
(physical) CPU cores, according to two strategies:
15+
- OSD-based (default): allocates all the reactors of the same OSD in the same
16+
NUMA socket,
17+
- NUMA socket: distributes the reactors of each OSD evenly in the NUMA sockets
18+
(normally two), so every OSD ends up with reactors running on both NUMA sockets.
19+
20+
- lscpu.py. A Python module to parse the output of ``lscpu --json`` into a dictionary
21+
which is used by balance-cpu and tasksetcpu.py.
22+
23+
- tasksetcpu.py. an utility to print a grid showing the current CPU core allocation
24+
of Seastar reactors. Useful to validate that the allocation strategy is correct.
25+
26+
For further details, please see *BalanceCPUCrimson.md* in doc/dev/crimson.
27+
28+

0 commit comments

Comments
 (0)