Repository navigation
ComfyUI Base 3.22.0: the cuBLAS probe beside the venv build; the install's wall-clock timeline - #42
Merged
Merged
Conversation
…all's wall-clock timeline The last Video Replacer pod (1x B200, base 3.20.0, every row) spent 116 s in VENV, an apt install of cuda-libraries-dev-13-0 (2,251 MB, 33 packages) inside it although nothing built from source, and its stage clock could not say what ran beside what. - base_cuda_toolchain starts with the venv build in the background and is joined before pkg_post_venv, the first place a build can start; a run that ends early waits for it (never kills apt). A dry run, runtime mode and BASE_CUDA_FOREGROUND=1 keep the old order. - state/logs/<pkg>_<ts>.timeline.tsv beside timings.tsv: wall-clock spans for every stage, background stage and model file (download, then its sha256 re-read); each file's console line names its sha256 seconds. - podctl: PODCTL_TIMES=1 stamps each line with UTC time and seconds since the install began. suite/test_critical_path.py (unit). Not run on hardware. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ion check) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Paul's priority 3, install speed. The last Video Replacer pod (yswh3tkypxhxev, 1x B200 EU-RO-1, base 3.20.0, every row: 42 files, 295.5 GB) took about 5:17 from create to the App on its fresh attempt. Its 16:55 figure includes a failed first attempt and about 11 minutes with the pod stopped. Two findings fed this release:
cuda-libraries-dev-13-0(33 packages, 2,251 MB fetched one file at a time, 4,146 MiB unpacked). That install ran although nothing built from source (PKG_NO_SAGE=1).What
_base_cuda_toolchain_startstarts in the background next to the models and tools jobs._base_cuda_toolchain_joinruns beforepkg_post_venv, the first place a build can start, so every build still finds the toolkit fixed or is told why not. The venv's own install runs before the probe in either order. A run that ends early waits for the probe and never kills it: an apt stopped halfway leaves dpkg needingdpkg --configure -a. A dry run, runtime mode andBASE_CUDA_FOREGROUND=1keep the old order. The clock gainsCUDA TOOLCHAIN (in the background, beside the venv build).state/logs/<pkg>_<ts>.timeline.tsvsits besidetimings.tsv, which is unchanged. Columns arestart TAB end TAB seconds TAB whatin epoch seconds, earliest first. It covers every stage and every background stage (SYSTEM, MODELS, TOOLS VENV, CUDA TOOLCHAIN) from its start to its end, and every model file twice:download <rel>andsha256 <rel>(the re-read at the job's end). Each file's console line now ends in(sha256 Ns of it).PODCTL_TIMES=1stamps each line[HH:MM:SSZ +N.Ns]. It is off by default, so parsers read podctl's lines as before.Tests
suite/test_critical_path.py(unit tier) covers:BASE_CUDA_FOREGROUND=1, a dry run);Nothing ran on the Mac except
bash -n,py_compileandpackage.py --base/--check(house rule: suites run in CI only).Exercised on
No host. Not run on hardware: the next RunPod pod measures it.
Measurement plan (pod-runner, the D pass)
base-v3.22.0(one more offline dry install). ExportPODCTL_TIMES=1forpodctl install.install_timings.shcopiesstate/logs/*.timeline.tsv.BASE_STAGED=1andPKG_LANESset but empty (the orchestrator's yes). Only the two B300-only files (87.2 GB, the 66.3 GB long pole of the last pod) arrive after the server.The ranked levers (GHCR image and network volume not recommended, nothing paid) and their first-party sources are in the orchestrator's notes:
install-speed-ranked.mdandinstall-speed-sources.md.🤖 Generated with Claude Code