Omarchy

NVIDIA Wants User Space to Pick Preferred Linux CPU Cores

Leave a comment

A NVIDIA engineer has posted an RFC patch series that would let user space tell Linux which CPU cores it prefers, Phoronix reports. Linux 7.4 already merged a steal governor for VMs, including a preferred CPU mask meant to ease vCPU demand when physical cores are contended. Yury Norov of NVIDIA wants a writable sysfs interface so user-space tools can set that preference. One example is tying it to Thermald, so a machine can ease off cores that are running hot. Another is a server running both AI training and inference VMs, where the more latency-sensitive inference work should keep more preferred vCPUs when the box is contended.

The proposed interface is /sys/devices/system/cpu/cpu[0-9]*/preferred, with the active list also visible at /sys/devices/system/cpu/preferred. This is an RFC on the kernel mailing list, not a feature in a released kernel.

My take

Letting user space hint the scheduler, especially for mixed AI workloads or thermal limits, sounds useful if the defaults stay sane. I’ll wait for review and for it to actually land before treating it as something you can set on a machine you care about.

God Bless, and Use the Source!

References & Further Reading

Subscribe (RSS) Follow News via RSS

Leave a note

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.