{"id":289007,"date":"2026-07-13T12:05:00","date_gmt":"2026-07-13T16:05:00","guid":{"rendered":"https:\/\/news-you-need.com\/index.php\/2026\/07\/13\/modernizing-the-meta-ads-service-with-an-open-source-kernel-scheduler\/"},"modified":"2026-07-13T12:50:08","modified_gmt":"2026-07-13T16:50:08","slug":"modernizing-the-meta-ads-service-with-an-open-source-kernel-scheduler","status":"publish","type":"post","link":"https:\/\/news-you-need.com\/index.php\/2026\/07\/13\/modernizing-the-meta-ads-service-with-an-open-source-kernel-scheduler\/","title":{"rendered":"Modernizing the Meta Ads Service With an Open-Source Kernel Scheduler"},"content":{"rendered":"<p><a href=\"https:\/\/engineering.fb.com\/2026\/07\/13\/ml-applications\/modernizing-the-meta-ads-service-with-an-open-source-kernel-scheduler\/\">Modernizing the Meta Ads Service With an Open-Source Kernel Scheduler<\/a><\/p>\n<p><a href=\"https:\/\/engineering.fb.com\/2026\/07\/13\/ml-applications\/modernizing-the-meta-ads-service-with-an-open-source-kernel-scheduler\/\">https:\/\/engineering.fb.com\/2026\/07\/13\/ml-applications\/modernizing-the-meta-ads-service-with-an-open-source-kernel-scheduler\/<\/a><\/p>\n<p>Publish Date: <a href=\"publish_date]\">2026-07-13 12:05:00<\/a><\/p>\n<p>Source Domain: <a href=\"engineering.fb.com\">engineering.fb.com<\/a><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">At Meta\u2019s scale, a few milliseconds of latency degradation can have a significant negative impact on ads performance.\u00a0<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">When a Linux kernel upgrade risked regressing latency across Meta\u2019s ad serving fleet, we turned to sched_ext \u2014 the upstream, BPF-based extensible scheduling framework \u2014 to build a scheduling policy customized to the Ads delivery workload.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">The result: a 28% reduction in ads retrieval stage tail(99th percentile) latency, 3.28 megawatts(MW) power saving, and a 1.1% increase in the number of ads ranked, proving that workload-specific scheduling optimization can directly drive business value.<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">Meta\u2019s ads serving fleet handles more than 5 million requests per second on average at the serving platform entry point, which is over 400 billion per day across all monetized surfaces1.<\/span><span style=\"font-weight: 400;\"> Every millisecond shaved off the p99 latency makes the ads more relevant for people on our platforms, and better matches mean stronger ROI for advertisers.<\/span><\/p>\n<\/p>\n<p><span style=\"font-weight: 400;\">This provides a real opportunity to reduce latency through workload-specific scheduling. That is why our Ads and Linux Kernel teams have been working together to build a scheduling policy customized to the ads delivery workload using sched_ext, the upstream, BPF-based extensible scheduling framework. Until now, we have been using the general-purpose schedulers typically integrated in the Linux kernel (CFS and EEVDF) that balance threads across CPUs with no understanding of the workload. However, here we know the purpose and importance of each thread. With sched_ext, we can encode this knowledge directly into the scheduler. Work that improves the p99 request latency is scheduled first, and everything else takes a back seat.<\/span><\/p>\n<h2><span style=\"font-weight: 400;\">sched_ext at Meta<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">s<\/span><span style=\"font-weight: 400;\">ched_ext is an open-source, BPF-based scheduler framework that officially entered kernel v6.12. We developed it by partnering with the authors of Google\u2019s <\/span><span style=\"font-weight: 400;\">ghOS<\/span><span style=\"font-weight: 400;\">t to design a scheduler suitable for upstream Linux integration. It has already been deployed in several&#8230;<\/span><\/p>\n<p><a href=\"https:\/\/engineering.fb.com\/2026\/07\/13\/ml-applications\/modernizing-the-meta-ads-service-with-an-open-source-kernel-scheduler\/\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Modernizing the Meta Ads Service With an Open-Source Kernel Scheduler https:\/\/engineering.fb.com\/2026\/07\/13\/ml-applications\/modernizing-the-meta-ads-service-with-an-open-source-kernel-scheduler\/ Publish Date: 2026-07-13 12:05:00&#8230;<\/p>\n","protected":false},"author":1,"featured_media":289008,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"fifu_image_url":"https:\/\/engineering.fb.com\/wp-content\/uploads\/2026\/07\/image3.jpg","fifu_image_alt":"","footnotes":""},"categories":[48],"tags":[71],"class_list":["post-289007","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","tag-linux"],"_links":{"self":[{"href":"https:\/\/news-you-need.com\/index.php\/wp-json\/wp\/v2\/posts\/289007"}],"collection":[{"href":"https:\/\/news-you-need.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/news-you-need.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/news-you-need.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/news-you-need.com\/index.php\/wp-json\/wp\/v2\/comments?post=289007"}],"version-history":[{"count":1,"href":"https:\/\/news-you-need.com\/index.php\/wp-json\/wp\/v2\/posts\/289007\/revisions"}],"predecessor-version":[{"id":289009,"href":"https:\/\/news-you-need.com\/index.php\/wp-json\/wp\/v2\/posts\/289007\/revisions\/289009"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/news-you-need.com\/index.php\/wp-json\/wp\/v2\/media\/289008"}],"wp:attachment":[{"href":"https:\/\/news-you-need.com\/index.php\/wp-json\/wp\/v2\/media?parent=289007"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/news-you-need.com\/index.php\/wp-json\/wp\/v2\/categories?post=289007"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/news-you-need.com\/index.php\/wp-json\/wp\/v2\/tags?post=289007"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}