Skip to content

0.20.0 --- openkal 0.19.0: kal_task_cores, kal_task_set_priority - #44

Merged
Sunrisepeak merged 1 commit into
mainfrom
openkal-0.19.0
Oct 31, 2026
Merged

Sunrisepeak merged 1 commit into
mainfrom
openkal-0.19.0

Conversation

@Sunrisepeak

Copy link
Copy Markdown
Member

Cores from sysfs topology within the affinity mask; priority as SCHED_OTHER/BATCH/IDLE. Conformance 0.19.0: 272 held locally.

Co-authored-by: speak-agent 248744407+speak-agent@users.noreply.github.com

… kal_task_set_priority as the scheduling policy

kal_task_cores counts the distinct (package, core) pairs sysfs states for the
processors in the affinity mask, on every architecture the kernel supports,
and says nothing (zero) where a processor's topology cannot be read.
kal_task_set_priority sets the calling thread's policy: SCHED_OTHER,
SCHED_BATCH, SCHED_IDLE; raising it again may be refused (RLIMIT_NICE), which
is kal_err_permission. Measured: 24 cores of 32 processors; the conformance
suite of 0.19.0 holds in all 272 observations.

Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
@Sunrisepeak
Sunrisepeak merged commit c3ab303 into main Oct 31, 2026
2 checks passed
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.

1 participant