JetPack 5.1 with Jetson Linux 35.2.1 Released

Hi, we are looking for the fix for the [pthread_setschedparam] issue as seen in the patches here: Jetson/L4T/r35.1.x patches - eLinux.org

We are hoping to set our applications to SCHED_RR (round robin real time scheduling) with pthread_setschedparam. But as noted in many other discussions from recently and from a long time ago, e.g. these: pthread_setschedparam (SCHED_FIFO) fails and SCHED_RR on AGX Orin fails with Operation Not Permitted

… the only known workaround is to sysctl -w kernel.sched_rt_runtime_us=-1.

This workaround causes some problems. It starves other processes such as the one delivering video frames from our Realsense camera.

We tested on Jetpack 5.0.2 and 5.1 and the above patches list seems to indicate that a fix for this issue (?) is present at least in 5.0.2, but we still encounter pthread_setschedparam returning 1 (a failure) on 5.0.2 as well as 5.1. It seems to happen randomly.

is sysctl -w kernel.sched_rt_runtime_us=-1 the only workaround? Has anyone encountered any other alternatives?

In the mean time it seems like our only alternative is to re-engineer our apps to guarantee completing work enough to leave some CPU budget left for the rest of the processes on the system. Although this may be possible, it remains problematic that this pressure relief valve built into Linux cannot be used.