Urgent.News

What's breaking now, across thousands of outlets.

Tech

Taming the FFmpeg Stampede: Writing a Custom eBPF Scheduler with Linux 6.12 sched_ext

Have you ever launched 20–30 concurrent ffmpeg encoding jobs on a beefy multi-core server, only to watch the entire system grind to a halt? Even on modern NVMe drives and 64-thread machines, running dozens of heavy video encoders simultaneously can trigger the dreaded I/O convoy effect . The standard Linux scheduler (EEVDF) tries to be fair by giving everyone CPU time at once. The result? All 25…

The FFmpeg encoding tool can cause system slowdowns when 20-30 concurrent jobs run on a multi-core server. Traditional Linux scheduling (EEEVDF) attempts to be fair by allocating CPU time equally to all processes. This results in all 25 processes attempting to read, encode and write simultaneously, saturating memory and freezing interactive tasks.

Linux 6.12 introduces sched_ext (SCX), an extensible BPF (eBPF) scheduler class that allows developers to write custom scheduling policies at the kernel level without recompiling the kernel. SCX enables creating a dedicated queue for FFmpeg processes, isolating them from other tasks. By controlling CPU dispatching, the scheduled executions of FFmpeg processes are staggered, preventing I/O bursts and alleviating system slowdowns.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Tendril: a garden assistant you never have to open

This is a submission for the Hacktoberfest Open-Source AI Challenge Week 1: Touch Grass . What I Built My balcony has a little garden: two Indian hibiscus, a money plant, jasmine, a blue aprajita…

  • Tendril is a garden assistant app for balcony plants
  • Plans tasks weekly based on weather forecast
  • Minimalistic design fits on phone lock screen

More from Thursday 8 October →