Skip to content

cpuq v0.17.0

Choose a tag to compare

@github-actions github-actions released this 15 Oct 07:21
· 96 commits to main since this release
  • cpuq cap [--mem SIZE] [--time DURATION] [--output SIZE] [--pids N] -- PROGRAM: one program under
    limits, for a test runner that starts thousands. Exit 122, 124 or 121 when stopped for memory,
    time or output; PROGRAM's own status otherwise. Inside a cpuq job on Linux, the kernel enforces
    the memory limit on a cgroup of PROGRAM's own: born there by clone3, stopped within
    milliseconds, everything it started with it. Elsewhere, memory is read once a second from
    PROGRAM's own process tree. About half a millisecond a call.
  • Each Linux job runs in a delegated systemd scope of its own, its command in job/, with
    CPUQ_CGROUP naming the scope (cgroups, on by default; cpu_weights still only adds the
    weight).
  • A job's command line is no longer changed by systemd-run: systemd 254 and later expanded $VAR
    and ${VAR} in it before the command's shell saw it, so ${x%/job} failed under
    cpu_weights.