Re: [PATCH] sched_ext: Reject oversized automatic CID shards
From: Hui Su
Date: Wed Oct 21 2026 - 04:43:16 EST
> However, the only thing reported is "scx_root_enable() failed (-7)",
> which doesn't say much about what went wrong. Can we report the reason
> with scx_error(), similar to what scx_bpf_cid_override() does for
> oversized shards? Something like:
>
> if (cids_in_core > SCX_CID_SHARD_MAX_CPUS) {
> scx_error(sch, "core with %u cpus exceeds max shard size %d",
> cids_in_core, SCX_CID_SHARD_MAX_CPUS);
> return -E2BIG;
> }
Thanks for reproducing the issue and testing the fix, Andrea!
I will send v2 with that scx_error() diagnostic.