EVOPEDIA

← all systems · see it in The System

Scheduler (computing)

boundaryInside: the waiting work (runqueues, pending queues, crontabs, batch queues), the scheduler's picture of the resources (loads, machine states, leases, the cell state in its store), the decision (pick next, place, balance, pre-empt) and the policy it applies (priorities, shares, quotas, deadlines), with the mechanisms that hand a resource over and take it back (the timer interrupt and context switch; the machine agents that start, throttle and kill). Outside: the hardware and the time being shared, the programs that do the work, the people who set policy, the lock services and consensus stores the cluster schedulers lean on, and the operating system or cloud the scheduler is part of.
nested levelRung 12 technology: one part of an operating system (its resource managers) and one part of a cloud's resource pooling layer (the cluster manager); built from queues, a decision procedure and the agents and interrupts that carry its decisions out; set by people.
scaletechnological

From the walk

Linux's scheduler is meant to be 'work-conserving': it should never leave a processor core idle while there is work to do. Researchers found four bugs, introduced as the scheduler was adapted to more complex hardware, that broke this rule in ways hard to notice with standard monitoring tools; in one database workload the idle spells lasted only a few hundred milliseconds each, too short for tools like htop, sar or perf to see. The bugs cost typical workloads 13 to 24 percent; one scientific program, hit by a bug that appears only after a core is switched off and on again, ran 138 times faster once it was fixed (src:lozi-2016).

Definition. In computing, scheduling is the action of assigning resources to perform tasks; the scheduling activity is carried out by a mechanism called a scheduler. Walked as operating-systems and cluster-computing research describe it: the part that decides which waiting work runs where and when, from the time-sharing supervisor and the kernel's CPU scheduler (time slices, priorities, fair shares, the Linux schedulers) to batch queues, cron and the cluster managers (Borg, Mesos, Kubernetes) with admission, placement, pre-emption, leases and heartbeats. Definition drawn from the encyclopedia entries listed under Sources (Wikipedia, CC BY-SA).

On this page: Properties 3 · Measures 30 · Open contentions 5 · Cross-scale patterns 24 · Valence partners 10 · Partners and parts 68 · Notes 3 · Layers 49 · Sources 36

Properties published scienceour proposal

Sourced fields, and our own readings.

aliasesScheduler
born atby 1962 (time-sharing supervisor on the IBM 7090; batch monitors before it were not read)
born precisionearlier than 1962 if batch monitors count (not read)

Measures (30) published science

CFS scheduling period, fewer than 8 runnable threads on a core48 ms
Linux load-balancing interval4 ms
performance lost to the four Linux scheduler bugs13-24% typical; up to 138 times in corner cases ratio
ULE and CFS code size2,950 lines (ULE, FreeBSD 11.1) against 17,900 (CFS, Linux 4.9) lines of code
rate-monotonic sufficient utilization bound for large task sets (Liu-Layland test; not an exact limit)ln 2 = 0.6931 (about 70 percent) processor utilization
Borg median cell sizeabout 10,000 machines
Borg task arrival rate, busiest cellsabove 10,000 tasks per minute
Borgmaster fail-over timeabout 10 s; up to a minute in a big cell
Borg online scheduling passunder 0.5 s
Borg task start-up latency, medianabout 25 (80% of it package installation)
pre-emption notice deliveredabout 80 % of the time
extra machines needed to segregate production and batch20-30 % more machines (median cell)
CPU performance cost of shared cellsabout 3 % worse (CPI)
Borg reservation decay start300 s
work running in reclaimed resourcesabout 20 % of workload (median cell)
Borgmaster availability99.99 %
Borg job arrival rate, 2011 against 2019 (mean)964 to 3360 jobs per hour per cell
share of resources used by the top 1% of jobs (2019)over 99 %
rescheduled to new task rate (median)0.66:1 (2011) to 2.26:1 (2019) ratio
collections with any eviction, 20193.2% (0.79M of 24.8M)
delay-scheduling wait for near-optimal data locality1-5 s
job wait-time objective (Google production)30 s
Sparrow median queueing delayunder 9 ms
Chubby default lease and KeepAlive interval12 s lease; KeepAlives every 7 s
Kubernetes node eviction rate (default)0.1 (1 node per 10 s) per second
CronJob controller check interval10 s
load multiplication from retries at five layers of three243 times
kernel rollout cadence tolerated in a large fleetabout a month at the shortest time
UNIX process lifetimes: chance a process aged 1 s uses more than T sabout 1/T (over a million processes measured) probability
Linux scheduler sanity-checker overheadunder 0.5 %

Open contentions (5) open contention

Where sources or readings disagree. Both stay on the map.

Cross-scale patterns seen here (24) our proposal

Shapes that recur when the same kind of problem is solved at different scales, and how each shows in Scheduler (computing). Each links to every other system that shows it.

Valence: what it trades, and with whom (10) published science

Each exchange with a neighbour, read from both sides: who gains, who pays, and what carries it.

Partners and parts published science

Built from / builds (7)

Sits inside / holds (2)

expressed by (34)

floor filled by (17)

Kinds (7)

wired (1)

Notes published science

Layers

The ways it takes in its world, where they meet, and how it acts back, each from L1 (where it meets the world) up.

the boardroom (shared floors)

  1. L3: The scheduler's picture: machines up or down and what is free, what each task uses and whether it is healthy, who is master
  2. L4: The waiting work, admitted: runqueue or pending queue in priority order
  3. L5: The decision: pick next, place (feasibility then scoring), balance, pre-empt
  4. L6: The policy: priorities, shares, quotas, deadlines, objectives
  5. L7: The purpose: responsive computers, deadlines met, a fleet kept busy for its users

the scheduler as operating-systems and cluster-computing researchers describe it: the shared resources (each core's time, memory, the machines of a cell) up to the work done for people (reader's view)

  1. L1: The resources shared out: each core's time, memory, disks and ports on a machine, the machines of a cell, network links; and the time in which they are shared
  2. L2: The levers that hand a resource over and take it back: the timer interrupt and the context switch on a core; on a cluster machine the local agent (Borglet, kubelet) that starts, stops, throttles and kills tasks in containers
  3. L3: The scheduler's picture of the resources: per-core runqueues and their load, the cell state (machines, tasks, allocs) held in memory and in a Paxos store, kept current by polls, heartbeats and leases; who is master
  4. L4: The waiting work, admitted at the door: ready threads in a runqueue (CFS: a red-black tree by vruntime), pending tasks scanned from high to low priority, a batch queue, a crontab's next entries
  5. L5: The decision: which thread runs next on which core, or which machine a task goes to (feasibility, then scoring), with load balancing between cores and pre-emption of lower-priority work
  6. L6: The policy and its promises: priorities and priority bands, fair shares (weighted fair queueing, tickets, Dominant Resource Fairness), quotas, deadlines, service-level objectives; always a compromise between goals
  7. L7: The purpose: work done for people and organisations: each user sees a responsive computer; control tasks meet their deadlines; a fleet kept busy so programs run without their authors managing machines

way in: Application health (the work's own report)

  1. L1: The running program's built-in HTTP server with its health and metrics
  2. L2: The probe: /healthz, or a user-specified endpoint or command

way in: Machine state (polls and heartbeats)

  1. L1: Each machine and what it has free (CPU, RAM, disk, ports), and whether it is up
  2. L2: The agent's report: the Borglet answers a poll every few seconds with its full state; the kubelet renews its node Lease as a heartbeat

way in: Other scheduler instances (replicas, rivals, elections)

  1. L1: Messages between the scheduler's own replicas and between parallel schedulers
  2. L2: Something only one holder can win: a Paxos election, a Chubby lock with its sequencer, a Kubernetes Lease, an atomic commit to shared cell state

way in: People setting what should run (priorities, quotas, crontabs, desired state)

  1. L1: Developers and site reliability engineers deciding what runs, how important it is and how much it may use
  2. L2: Written as configuration: BCL, YAML objects, a crontab line, a nice value
  3. L3: Validated, defaulted and versioned by the API server
  4. L4: Kept as desired state (Spec) beside observed state (Status)
  5. L5: Controllers' reconciliation loops compare desired with observed and act

way in: Resource use (what each thread or task actually consumes)

  1. L1: Cycles and memory actually consumed, mostly below what was asked for
  2. L2: Counted by the kernel and the agent: CFS's load (weight times average CPU use); per-task usage sampled by the Borglet

way in: Synchronisation (threads blocking on and released by locks)

  1. L1: Shared data in memory guarded by locks (on Pathfinder: the pipe-based message channel to the weather task; Jones's account names the 'information bus')
  2. L2: The mutex: acquiring a lock someone holds blocks the thread (on Pathfinder, the semaphore inside select() guarding the file-descriptor wait list)
  3. L3: The blocked thread waits off the runqueue; with priority inheritance the holder runs at the waiter's priority

way in: Time (ticks, quanta, leases, due times)

  1. L1: Time passing, counted by a hardware clock
  2. L2: The timer interrupt that ends a quantum (idle cores may skip the periodic tick)
  3. L3: Accounting: a running thread accumulates vruntime; leases and timeouts count down; cron compares the clock with its event list
  4. L4: A deadline reached: the timeslice spent, a lease expired, a cron entry due

way in: Work asking to run (submissions, new and woken threads)

  1. L1: A program started, a thread created or woken, a job description sent by a user or another program
  2. L2: The door it comes through: an RPC to the Borgmaster, a request to the Kubernetes API server, a fork or a wakeup in the kernel
  3. L3: Admission: quota checked before anything is scheduled; a job without quota is rejected at once (the long-term scheduler's job)

way out: Dispatch (the chosen work starts)

  1. L1: The core runs the thread; the machine runs the task (start-up takes a median of about 25 s in Borg)
  2. L2: The agent starts the task's processes in a container (on a core: the context switch loads the thread)
  3. L3: The master prepares the order for the machine's agent and applies its answer
  4. L5: The chosen thread or task

way out: Pre-emption and eviction (work taken off)

  1. L1: The resource freed for the waiting work
  2. L2: SIGTERM first if the task asked, then SIGKILL; on a core, the context switch out
  3. L4: The victims go back into the pending queue
  4. L5: Victims chosen from the lowest priority up

way out: Reports to people (UIs, events, mailed output)

  1. L1: Text on a screen or in a mailbox for the job's owner
  2. L2: Sigma's web UI; cron's mail
  3. L7: The choice to show debugging information to every user

way out: Throttling and out-of-memory kills (the machine's own enforcement)

  1. L1: Cycles withheld; memory returned
  2. L2: The agent kills tasks from the lowest priority up when memory runs out
  3. L6: Compressible resources (CPU, disk bandwidth) can be taken back by lowering quality; non-compressible ones (memory, disk space) only by killing

Sources (36) published science

Lozi, Lepers, Funston, Gaud, Quéma & Fedorova 2016, The Linux Scheduler: a Decade of Wasted Cores, EuroSys '16 doi:10.1145/2901318.2901326
Scheduling (computing) (Wikipedia, via Wikimedia Enterprise snapshot 2026-12-01)
Corbato, Merwin-Daggett, Daley 1962, An experimental time-sharing system, AFIPS Spring Joint Computer Conference, doi:10.1145/1460833.1460871 (behind its links)
Verma, Pedrosa, Korupolu, Oppenheimer, Tune, Wilkes 2015, Large-scale cluster management at Google with Borg, EuroSys, doi:10.1145/2741948.2741964 (behind its links)
Burns, Grant, Oppenheimer, Brewer, Wilkes 2016, Borg, Omega, and Kubernetes: lessons learned from three container-management systems over a decade, ACM Queue 14(1), doi:10.1145/2898442.2898444 (behind its links)
Bouron, Chevalley, Lepers, Zwaenepoel, Gaud, Quema 2018, The battle of the schedulers: FreeBSD ULE vs. Linux CFS, USENIX ATC (HAL open copy; sections read: abstract, introduction, section 2 on CFS and ULE) (behind its links)
Liu, Layland 1973, Scheduling algorithms for multiprogramming in a hard-real-time environment, Journal of the ACM 20(1), doi:10.1145/321738.321743 (sections read: abstract, sections 1-5 and 7) (behind its links)
Tirmazi, Barker, Deng, Haque, Qin, Hand, Harchol-Balter, Wilkes 2020, Borg: the next generation, EuroSys, doi:10.1145/3342195.3387517 (sections read: abstract, introduction, Borg overview, trace comparison, alloc sets, job terminations, scheduler load) (behind its links)
Hindman, Konwinski, Zaharia, Ghodsi, Joseph, Katz, Shenker, Stoica 2011, Mesos: a platform for fine-grained resource sharing in the data center, NSDI (authors' open copy at usenix.org; sections read: abstract, introduction, section 3 architecture and fault tolerance) (behind its links)
Schwarzkopf, Konwinski, Abd-El-Malek, Wilkes 2013, Omega: flexible, scalable schedulers for large compute clusters, EuroSys, doi:10.1145/2465351.2465386 (open copy from research.google; sections read: abstract, sections 1-3, the shared-state design, the conflict measures, Table 1 comparing monolithic, partitioned, two-level and shared-state designs) (behind its links)
Ousterhout, Wendell, Zaharia, Stoica 2013, Sparrow: distributed, low latency scheduling, SOSP, doi:10.1145/2517349.2522716 (sections read: abstract, introduction, design overview) (behind its links)
Burrows M. The Chubby lock service for loosely-coupled distributed systems. OSDI 2006 (Google research open copy); read: section 2.4 Locks and sequencers (behind its links)
Kubernetes documentation, Nodes (kubernetes.io, CC BY 4.0, read 2026-12-05) (behind its links)
Kubernetes documentation, CronJob (kubernetes.io, CC BY 4.0, read 2026-12-05) (behind its links)
Brooker 2019, Timeouts, retries, and backoff with jitter (Amazon Builders' Library) (behind its links)
Humphries, Natu, Chaugule, Weisse, Rhoden, Don, Rizzo, Rombakh, Turner, Kozyrakis 2021, ghOSt: fast and flexible user-space delegation of Linux scheduling, SOSP, doi:10.1145/3477132.3483542 (sections read: abstract, sections 1-2) (behind its links)
Harchol-Balter, Downey 1997, Exploiting process lifetime distributions for dynamic load balancing, ACM Transactions on Computer Systems (authors' open copy at cs.cmu.edu; sections read: abstract, introduction, section 2 on the lifetime distribution) (behind its links)
Reeves 1997, What really happened on Mars? -- Authoritative Account (email of 15 December 1997 by the Mars Pathfinder flight software cognizant engineer, JPL; UNC course copy) (behind its links)
Kubernetes documentation, Pod Priority and Preemption (kubernetes.io, CC BY 4.0, read 2026-12-05) (behind its links)
Jones 1997, What really happened on Mars Rover Pathfinder (account of David Wilner's keynote at the IEEE Real-Time Systems Symposium, December 1997; Cornell CS614 course copy) (behind its links)
Cron (Wikipedia, via Wikimedia Enterprise snapshot 2026-12-01) (behind its links)
Gray C, Cheriton DR. Leases: an efficient fault-tolerant mechanism for distributed file cache consistency. SOSP 1989. doi:10.1145/74851.74870; read: sections 1-2, 5 and the conclusion (behind its links)
Gray J. Queues Are Databases. Microsoft Research MSR-TR-95-56, HPTS 95 position paper, December 1995 (arXiv:cs/0701158, 2007); read in full (the portal said SHORT TEXT: the file holds all 12 pages) (behind its links)
Kubernetes documentation, Leases (kubernetes.io, CC BY 4.0, read 2026-12-05) (behind its links)
Priority inversion (Wikipedia, via Wikimedia Enterprise snapshot 2026-12-01) (behind its links)
Job scheduler (Wikipedia, via Wikimedia Enterprise snapshot 2026-12-01) (behind its links)
Completely Fair Scheduler (Wikipedia, via Wikimedia Enterprise snapshot 2026-12-01) (behind its links)
Waldspurger 1995, Lottery and stride scheduling: flexible proportional-share resource management, MIT PhD thesis (DSpace@MIT; sections read: abstract, chapter 2 on tickets, ticket transfers and inflation) (behind its links)
Ghodsi, Zaharia, Hindman, Konwinski, Shenker, Stoica 2011, Dominant resource fairness: fair allocation of multiple resource types, NSDI (open copy at usenix.org; sections read: abstract, introduction) (behind its links)
Mu'alem, Feitelson 2001, Utilization, predictability, workloads, and user runtime estimates in scheduling the IBM SP2 with backfilling, IEEE Transactions on Parallel and Distributed Systems, doi:10.1109/71.932708 (authors' open copy at cs.huji.ac.il; sections read: abstract, introduction, backfilling algorithms, user estimates; the PDF's text drops some letters, so quotes are from the abstract) (behind its links)
Kubernetes documentation, Kubernetes Scheduler (kubernetes.io, CC BY 4.0, read 2026-12-05) (behind its links)
Diaz-Ramirez, Mejia-Alvarez, Leyva 2013, Comprehensive comparison of schedulability tests for uniprocessor rate-monotonic scheduling, Journal of Applied Research and Technology, doi:10.1016/s1665-6423(13)71551-7 (sections read: abstract, introduction, definitions of sufficient and exact tests, the LL condition, the exact tests) (behind its links)
Linux kernel documentation, EEVDF Scheduler (docs.kernel.org, read 2026-12-06) (behind its links)
Linux kernel documentation, Extensible Scheduler Class (sched_ext) (docs.kernel.org, read 2026-12-06; sections read: overview, switching and debugging) (behind its links)
Fischer, Lynch, Paterson 1985, Impossibility of distributed consensus with one faulty process, Journal of the ACM, doi:10.1145/3149.214121 (sections read: abstract, introduction, the model; the shelf copy is short text, the first pages) (behind its links)
Vavilapalli and others 2013, Apache Hadoop YARN: yet another resource negotiator, SoCC, doi:10.1145/2523616.2523633 (abstract only: the portal reached no body; booked for a shelf stub) (behind its links)