]> git-server-git.apps.pok.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)
committerMatan Breizman <mbreizma@redhat.com>
Tue, 13 May 2025 06:47:41 +0000 (09:47 +0300)
commitf823ec72c9d8a88c8893864714fe81da439a6b5a
treefd6f28f0088ca3f51ae31b03aac60dabf4c1f818
parentb74b612678d6374f69096a6a5ae0ec73358e5a16
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>
(cherry picked from commit efd4aa955c37fbf94b9f72ad98f36f65d3bd3494)
src/tools/contrib/assign_crimson_cores.py [new file with mode: 0644]