Skip to content

Container tasks: the container's /tmp is the root disk unless some manifest entry is a file directly in /tmp (staged directories mount only themselves) #1270

Closed

Description

@scttfrdmn

What happens. containerMountDirs (pkg/taskproto/wrapper.go ~L670, via manifestMountDirs) bind-mounts exactly the parent directories of manifest inputs and outputs. If every entry is a directory under /tmp, e.g. /tmp/in/ and /tmp/out/, then only those subdirectories are mounted. The container's own /tmp is then its overlay root, capped by the default 20 GiB root disk, not the host tmpfs (½ RAM) that the staging model and its sizing advice assume.

Measured (cookbook plink2-real, AMD r8a.4xlarge, spawn 0.139.1): PLINK 2 died twice with No space left on device writing its intermediate kg.pgen to /tmp on a 128 GiB box. Staging the task's own script as a file at /tmp/p2-task.sh made spawn mount /tmp, and the same run then completed. Separately, a proteomics leg's df /tmp reported the root disk, not tmpfs.

Why it bites now. spawn#1246's user-data squeeze pushes spec authors to collapse many file entries into one staged directory. That silently moves the task's scratch from tmpfs to the root disk.

Fix ideas: always mount the host /tmp into container tasks; or mount the common /tmp ancestor whenever any manifest path is under it; or at least document the rule and print the effective /tmp backing in command.log.

Activity

  1. added a commit that references this issue on Oct 24, 2026
    e026fb1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions