From abff42d28834eba17472f769a6a72ece26e593a6 Mon Sep 17 00:00:00 2001 From: shinyobjectz Date: Fri, 4 Dec 2026 18:43:15 -0800 Subject: [PATCH] Farm: a composition's bundle cached on each container's own disk 12-05, run 6: a job's 32 CPU parts missed the shared bundle cache on the volume at once, each wrote the same file and committed it, and parts that read it mid-commit got zeros ("bundle.js: String contained internal null bytes"). Up to 23 of a cut's 32 parts went back to the 10 GPUs, and other jobs' frame-0 probes waited behind them. --- sdk/cloud/deploy/modal/farm.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sdk/cloud/deploy/modal/farm.py b/sdk/cloud/deploy/modal/farm.py index 04f551bb..5d4edb9f 100644 --- a/sdk/cloud/deploy/modal/farm.py +++ b/sdk/cloud/deploy/modal/farm.py @@ -173,7 +173,11 @@ CPU_ENV = {"VK_DRIVER_FILES": "/usr/share/vulkan/icd.d/lvp_icd.json", "__EGL_VEN # NVIDIA's shader cache and Cycles' kernels on the farm's volume, so a GPU's start reuses what an earlier one compiled CACHES = {"__GL_SHADER_DISK_CACHE": "1", "__GL_SHADER_DISK_CACHE_PATH": f"{ROOT}/cache/nvidia", "__GL_SHADER_DISK_CACHE_SKIP_CLEANUP": "1", - "__GL_SHADER_DISK_CACHE_SIZE": str(4 << 30), "XDG_CACHE_HOME": f"{ROOT}/cache/xdg"} + "__GL_SHADER_DISK_CACHE_SIZE": str(4 << 30), "XDG_CACHE_HOME": f"{ROOT}/cache/xdg", + # but a composition's bundle on this container's own disk (12-05, Dutch run 6: a job's 32 parts each missed the + # shared cache at once, wrote the same file and committed it, and parts that read it mid-commit got zeros: + # "bundle.js: String contained internal null bytes", up to 23 of a cut's 32 parts sent back to the 10 GPUs) + "RAEA_BUNDLE_CACHE": "/tmp/raea-bundles"} # the scene reader's models, loaded once a container (/v1/scene) @@ -197,7 +201,7 @@ def life(): def run(cmd, cwd=None, env=None, timeout=6 * 3600): t = time.time() - for d in (CACHES["__GL_SHADER_DISK_CACHE_PATH"], CACHES["XDG_CACHE_HOME"]): + for d in (CACHES["__GL_SHADER_DISK_CACHE_PATH"], CACHES["XDG_CACHE_HOME"], CACHES["RAEA_BUNDLE_CACHE"]): os.makedirs(d, exist_ok=True) build = os.environ.get("RAEA_FARM_BUILD") if build and cmd[0] == "raea":