[Bug 299617] linuxulator: implement .sched_nice filling in linux_sched_getattr

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 19 Oct 2026 20:23:02 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=299617

            Bug ID: 299617
           Summary: linuxulator: implement .sched_nice filling in
                    linux_sched_getattr
           Product: Base System
           Version: Unspecified
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: ngie@FreeBSD.org

Most of linux_sched_getattr was added in https://reviews.freebsd.org/D60214 as
part of bug 297468, but there is some missing support: in particular,
`.sched_nice` isn't being set in scenarios where it should be.

From the review, @olce said:

> Linux (checked on a recent checkout) sets both sched_nice and sched_runtime if the policy is not SCHED_DEADLINE nor SCHED_RR nor SCHED_FIFO.

We support SCHED_NORMAL/SCHED_OTHER, so at the very least the `.sched_nice`
property should be set in that case.

-- 
You are receiving this mail because:
You are the assignee for the bug.