Meta uses the Steam Deck scheduler on its servers
Summary
At the Linux Plumbers Conference 2025 in Tokyo, Meta engineers reported that Meta uses a Linux scheduler on its servers that was originally developed for Valve's Steam Deck. The SCX-LAVD scheduler is based on sched_ext and also proved to be well suited to large servers. Meta was evaluating it as the default scheduler for all servers that do not need a specialised scheduler.
What is a scheduler and what is sched_ext?
The scheduler decides which process may run when and on which processor core. On a gaming device what matters is that frames arrive without stutter; on a server, that many requests are handled quickly at the same time. For a long time Linux essentially had one scheduler for all cases.
With sched_ext, part of the official kernel since Linux 6.12, custom schedulers can be loaded as BPF programs without rebuilding the kernel. LAVD stands for Latency-criticality Aware Virtual Deadline: the scheduler recognises which tasks are critical for response time and favours them. It was developed by Igalia on behalf of Valve.
Why it is remarkable
That a scheduler for a handheld with few cores also works well on servers with very many cores and large memory was not to be expected. Meta particularly praised the load balancing across CCX and shared cache boundaries. This shows the value of sched_ext: ideas can be tried out quickly and exchanged between very different areas of use.
Ideas
- Custom schedulers can be loaded at run time as BPF programs.
- Latency-critical tasks are identified and favoured.
- A scheduler from one field of use can be useful in a completely different one.
Insights
- Interchangeable components speed up experiments in the kernel considerably.
- Good ideas travel between gaming devices and data centres in both directions.
Facts
- sched_ext has been part of the official kernel since Linux 6.12.
- SCX-LAVD was developed by Igalia for Valve's Steam Deck.
- The talk was titled “How do we make a Steam Deck scheduler work on large servers”.
References
Remarks
- The slides of the talk are published on the Linux Plumbers Conference website.
Recommendations
- Test alternative schedulers from the scx project on test systems before using them in production.
- When switching schedulers, measure latency and throughput with your real workload, not with synthetic benchmarks alone.
Found a mistake or have something to add? Get in touch.
Links to the original source and the Web Archive open in a new tab.