Preventing non-critical entertainment apps from degrading steering and braking safety microservices using hierarchical cgroups v2 bandwidth controllers.
Legacy Linux cgroups v1 utilized independent resource trees, creating dangerous loopholes: a process could be throttled on CPU but simultaneously execute unbounded buffered disk writes that starved memory. cgroups v2 enforces a single unified hierarchy where memory and I/O controllers cooperate atomically, guaranteeing that an application cannot bypass resource budgets.
While general-purpose microservices run under the standard Completely Fair Scheduler (SCHED_OTHER), critical pods (such as torque distribution and braking control) are granted POSIX SCHED_FIFO with static priorities above 90. The kernel preempts any standard user-space thread within 12 microseconds, guaranteeing that safety control loops execute deterministically.