Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new cpuset format on the command-line #667

Open
bgoglin opened this issue Jun 3, 2024 · 0 comments
Open

new cpuset format on the command-line #667

bgoglin opened this issue Jun 3, 2024 · 0 comments
Labels

Comments

@bgoglin
Copy link
Contributor

bgoglin commented Jun 3, 2024

There was some discussion recently about a new cpuset output format in hwloc-calc to be compatible with some systemd tools (busctl for manipulating cgroups).
We have taskset support in hwloc-calc/bind/distrib. There are also taskset and cpulist variants to bitmap_sscanf() and printf() API. Starting with 2.11, --taskset is replaced with --cpuset-output-format which also accepts "list".

A new format for systemd wouldn't be added to the API, only to CLI tools, likely even only for output.

@bgoglin bgoglin added the Tools label Jun 3, 2024
bgoglin added a commit that referenced this issue Jun 7, 2024
hwloc-bind/calc/distrib and lstopo now support:
--cpuset-output-format hwloc (default)
--cpuset-output-format taskset (supersedes --taskset)
--cpuset-output-format list (new)

Or --cof for shorter

Refs #667

Signed-off-by: Brice Goglin <[email protected]>
bgoglin added a commit that referenced this issue Jun 7, 2024
hwloc-bind/calc/distrib and lstopo now support:
--cpuset-output-format hwloc (default)
--cpuset-output-format taskset (supersedes --taskset)
--cpuset-output-format list (new)

Or --cof for shorter

Refs #667

Signed-off-by: Brice Goglin <[email protected]>
(cherry picked from commit e25888c)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant