Skip to content

mkcomposefs: make it cpuset aware#355

Merged
cgwalters merged 1 commit intocomposefs:mainfrom
giuseppe:mkcomposefs-cpuset-aware
Sep 20, 2024
Merged

mkcomposefs: make it cpuset aware#355
cgwalters merged 1 commit intocomposefs:mainfrom
giuseppe:mkcomposefs-cpuset-aware

Conversation

@giuseppe
Copy link
Copy Markdown
Collaborator

A tiny improvement that I've noticed while looking at the code.

use sched_getaffinity to get the CPUs that can be used.

use sched_getaffinity to get the CPUs that can be used.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Copy link
Copy Markdown
Contributor

@cgwalters cgwalters left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks sane to me. One thing I just did was a quick code search and yeah that led to the exact same code in swift.

That said I think an even nicer thing for us to consider in the future is support for the GNU make jobserver protocol which gives us a way to integrate with other build systems.

@cgwalters cgwalters merged commit df1517d into composefs:main Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants