---
title: "Modernizing the Meta Ads Service With an Open-Source Kernel Scheduler"
url: https://daily.dev/posts/modernizing-the-meta-ads-service-with-an-open-source-kernel-scheduler-p1rwskot7
source_url: https://engineering.fb.com/2026/07/13/ml-applications/modernizing-the-meta-ads-service-with-an-open-source-kernel-scheduler
type: article
source: "Facebook Engineering\n"
published: 2026-07-13T16:01:33.222Z
updated: 2026-07-14T12:22:25.783Z
tags: ["linux", "performance"]
reading_time: 6
upvotes: 4
comments: 1
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Modernizing the Meta Ads Service With an Open-Source Kernel Scheduler

**[Facebook Engineering
](https://daily.dev/sources/facebook_code)** · 6 min read · 4 upvotes · 1 comments

## Summary

Meta's Ads and Linux Kernel teams used sched_ext — the BPF-based extensible scheduler merged in Linux v6.12 — to build a workload-specific scheduling policy for their ads serving fleet. When upgrading to kernel v6.9, the new EEVDF scheduler caused latency regressions, blocking part of the fleet on the older v6.4 kernel. By implementing a custom BPF scheduler that soft-partitions CPUs into latency-critical and background pools with dynamic load-based sizing, they achieved a 28% reduction in p99 latency on the ads retrieval path, 3.28 MW of power savings, and a 1.1% increase in ads ranked. Follow-on user-space-only policy updates added a further 60% p99 latency reduction and 18% fewer timeout errors. Because the scheduler policy lives in user space as a BPF program, iterations ship in days rather than months, turning sched_ext into a continuous optimization platform independent of kernel release cycles.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://engineering.fb.com/2026/07/13/ml-applications/modernizing-the-meta-ads-service-with-an-open-source-kernel-scheduler>

## Community discussion

Top comments from developers on daily.dev.

**@palalet** · 0 upvotes

> Good, now you can serve more scam ads...

## Similar posts on daily.dev

- [Sched\_EXT With Linux 6.19 Improves Recovering For Misbehaving eBPF Schedulers](https://daily.dev/posts/sched-ext-with-linux-6-19-improves-recovering-for-misbehaving-ebpf-schedulers-4onfweyno) · Phoronix · 0 upvotes · 0 comments
- [Infinity Scheduler Aims To Be A Better Linux Scheduler](https://daily.dev/posts/infinity-scheduler-aims-to-be-a-better-linux-scheduler-i6zaof8bl) · Phoronix · 0 upvotes · 0 comments
- [Linux 7.1 sched\_ext Brings cgroup Sub-Scheduler Groundwork, Idle SMT Sibling Improvement](https://daily.dev/posts/linux-7-1-sched-ext-brings-cgroup-sub-scheduler-groundwork-idle-smt-sibling-improvement-uqbkhed7j) · Phoronix · 0 upvotes · 0 comments

---

Tags: [#linux](https://daily.dev/tags/linux), [#performance](https://daily.dev/tags/performance)

[View this post on daily.dev](https://daily.dev/posts/modernizing-the-meta-ads-service-with-an-open-source-kernel-scheduler-p1rwskot7)
