Spindle hangs if NUMA requested and process lacks CAP_SYS_NICE
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 110
- Forks
- 35
- Avg merge
- 1d 16h
- Merged PRs (30d)
- 2
Description
The `sched_setaffinity` function and related functions used by libnuma require `CAP_SYS_NICE`. If Spindle is launched in NUMA mode, but lacks this capability, Spindle hangs. Spindle should check whether it has `CAP_SYS_NICE` and, if not, gracefully degrade rather than hanging. This can be reproduced by running the serial testsuite image with `CAP_SYS_NICE` removed from `docker-compose.yml`.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the NUMA-mode path that calls sched_setaffinity and related libnuma functions, then inspect docker-compose.yml and the serial testsuite image reproduction. Done means Spindle no longer hangs when CAP_SYS_NICE is absent, instead degrading gracefully, and the serial tests pass with that capability removed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, docker-compose
- Domain
- operating-systems, testing
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100