#!/bin/sh # The docker command the agent harness uses on the node. # A task container gets its own block of 8 cores out of cores 32-255, so a test run inside sizes itself to 8 cores. # Cores 0-31 are kept for the speed measurements. The training pool's task states are mounted read-only at /patches. # No sudo here: on 2026-12-01 the `sudo` in front of every `docker exec` used about 75 cores by itself. The login # user reads the docker socket through an ACL instead (tools/fix_sudo.sh). if [ "$1" = run ]; then shift b=$(( ($$ % 28) * 8 + 32 )) exec /usr/bin/docker run --cpuset-cpus "$b-$((b + 7))" -v /data/train/mini/pool_patches:/patches:ro "$@" fi exec /usr/bin/docker "$@"