LESSON 24.08 · 5 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW
Resource quotas and cleanup
Watch quotas stop runaway commands, then see what each cleanup leaves behind.
Pro lesson. Stage 1 is free to watch. Pro opens all 5 stages, 3 controls and 3 checks, in this lesson and every other.
Go Pro · $8.25/moEXPLAINER · 24.08 · SANDBOX BAYQUOTA 2 CORES · 512 MB · 8 EPISODES FIT
01
Stage 1 of 5 · Set the quotas
A cgroup holds the episode's processes, and each quota caps one resource. 8 episodes fit on one worker.
Explain it simply
The dashed box is one episode's sandbox. A cgroup, a group of processes the kernel limits together, holds every process the agent starts. Each ochre mark is a quota, a hard cap on one resource. With these quotas, 8 episodes share the worker's 16 cores, the grid of cells.
The sandbox quotas are 2 cores, 512 MB memory, 1,024 MB disk and 64 processes. It also has 180 s and 4,000 tokens. 8 episodes fit on the 16-core worker.
use, writingquotaover quota, failed, left behindresult, cleanthis episode's cgroup
Toy: one episode on a 16-core worker, ticks of 1/40 s
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
The episodes per worker is the smallest worker-to-quota ratio.
PRO LESSON · YOU WATCHED STAGE 1 OF 5
Unlock the full explainer
- 4 more stages and 3 live controls
- 2 mix-up cards and 3 predict-then-reveal checks
- Watch it as a narrated video, in three voices
- Every Pro lesson and capstone · 656 in total
$99 a year, or $15 a month. Cancel any time.