]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
tools/contrib: add assign_crimson_cores as a more general replacement for balance_cpu
authorSamuel Just <sjust@redhat.com>
Tue, 29 Apr 2025 01:53:11 +0000 (01:53 +0000)
committerSamuel Just <sjust@redhat.com>
Wed, 7 May 2025 01:17:25 +0000 (18:17 -0700)
commitefd4aa955c37fbf94b9f72ad98f36f65d3bd3494
treecd699ff83799d0d8c6f7fbd603afa1d66d5255f2
parent69def105c04303de554a6e36f88798c33381efc2
tools/contrib: add assign_crimson_cores as a more general replacement for balance_cpu

Improvements:
- shorter
- has tests
- uses lscpu -e --json to get logical<->physical mappings and avoid
  needing to parse cpu ranges in lscpu --json
- supports allocating alienstore threads
- supports requiring physical cores only independently for alienstore
  and seastar reactors

Signed-off-by: Samuel Just <sjust@redhat.com>
src/tools/contrib/assign_crimson_cores.py [new file with mode: 0644]