eBPF-based workload orchestration platform, built for Cloud Native ecosystem.
eBPF-based workload orchestration platform, built for Cloud Native ecosystem.
DRA chooses what and where; Gthulhu controls how it actually runs.
Gthulhu is a cloud-native runtime scheduling platform built around Kubernetes, eBPF, and Linux sched_ext.
Kubernetes can decide whether a workload may run, which node it runs on, and increasingly which GPU, NIC, CPU set, NUMA domain, or other device it receives. But those allocation decisions do not by themselves guarantee that the workload's critical Linux threads receive the CPU service, locality, responsiveness, or isolation needed to meet an SLO.
Gthulhu focuses on that execution gap.
Kueue / Workload API
admission, quota, fair sharing
│
▼
kube-scheduler / DRA
Node + device + topology allocation
│
▼
Gthulhu Runtime Plane
workload / claim → Pod/cgroup → TGID/TID
│
▼
sched_ext + eBPF
runtime policy + verification
│
▼
Delivered workload SLO
latency / throughput / jitter / utilizationThe long-term direction is Claim2Core: connect actual Kubernetes allocation to Linux task scheduling without reimplementing kube-scheduler, DRA, or Kueue. See the 2026 Claim2Core roadmap.
Demo video: https://youtu.be/Cyjrh9cW1a8
Gthulhu uses eBPF to collect scheduler behavior at process/task level and aggregate it into Kubernetes-aware metrics, including:
These metrics can be exported to Prometheus/Grafana and used by KEDA for autoscaling.
A central Manager resolves workload-level policy and distributes intent to a per-node Decision Maker. Each Decision Maker resolves local processes/tasks and exposes node-local strategies to the Gthulhu daemon.
sched_extOn Linux 6.12+ with sched_ext, Gthulhu can apply workload-aware CPU scheduling policy without patching the kernel.
Current policy primitives include:
Linux schedules tasks/threads, not only process leaders. Node policies therefore scan /proc//task/ and can match non-leader worker threads by comm.
This matters for workloads where the critical work happens in named worker threads, such as:
A node policy resolved to a worker thread is keyed by TID, so the scheduler can target the entity Linux actually dispatches.
A strategy with Priority > 0 is a boost. Priority == 0 is non-boosting.
0 as the highest preemptive level. Kernel mode does not yet provide full slice-only parity with user-space mode.These semantics reflect the merged TID-aware scheduler work in the main repository and Gthulhu/plugin.
The next architecture step is not "use ResourceSlice as another selector". The intended boundary is:
ResourceSlice = device inventory;ResourceClaim.status.allocation = workload's actual allocation;The target lineage is:
Workload / PodGroup UID
→ Pod UID
→ ResourceClaim UID + generation
→ allocated driver / pool / device
→ NUMA / PCIe / network topology
→ Pod cgroup
→ TGID / TID / starttime
→ sched_ext DSQ / BPF-map entry
→ observed runtime metrics
→ workload SLONear-term implementation order:
DRAExecutionPolicy;Gthulhu is not a GPU scheduler. sched_ext schedules Linux CPU tasks; Gthulhu does not directly schedule CUDA kernels, GPU SMs, MIG, or NIC hardware queues.
Gthulhu can improve host-side execution for GPU feeder/launch threads, tokenizers, NCCL/RDMA progress threads, DPDK pollers, packet-processing workers, data loaders, checkpoint workers, and similar tasks.
CPU DRA, cgroups, kubelet, and other resource managers remain authoritative for the CPU/resource envelope. Gthulhu must optimize inside that envelope, never outside it.
…sched_ext / CONFIG_SCHED_CLASS_EXTThe eBPF monitor does not require sched_ext. Custom CPU scheduling does.
See the installation guide for deployment details.
make dep
git submodule init
git submodule sync
git submodule update
cd scx
cargo build --release -p scx_rustland
cd ..
make buildCross-build for arm64:
make build ARCH=arm64Lint:
make lintmake testOr select a kernel version:
make test KERNEL_VERSION=6.12Gthulhu runs daily portability tests across supported Linux 6.12+ kernels.
Install schedctl from schedkit, then run:
sudo schedctl run gthulhudocker run --privileged=true --pid host --rm ghcr.io/gthulhu/gthulhu:latest /gthulhu/mainsudo bpftool prog list
sudo bpftool map list
sudo cat /sys/kernel/debug/tracing/trace_pipesched_ext.Two immediate validation paths are especially useful:
Longer term, Gthulhu is also exploring device-local execution domains, scheduling provenance/replay, shared-device interference control, device-health-aware degradation, and cooperative resource reclamation.
The name Gthulhu is inspired by Cthulhu and Golang. The many tentacles represent coordinating complex distributed runtime behavior.
The underlying framework qumun is named after the Bunun word for "heart", reflecting the scheduler's role at the heart of the operating system.
See CONTRIBUTING.md and the official contribution guide.
Useful contributor areas include Kubernetes/DRA, eBPF, sched_ext, NUMA/topology, scheduling provenance, testing, free5GC/UPF, and accelerator workloads.
Apache License 2.0.
No open issues yet, or sync has not completed.