diff options
| author | Pjotr Prins <pjotr.public01@thebird.nl> | 2026-11-21 12:04:20 +0000 |
|---|---|---|
| committer | Pjotr Prins <pjotr.public01@thebird.nl> | 2026-11-21 12:04:20 +0000 |
| commit | 3a526efb4cd3721adadf17cbf4a8dc1c5cbd8dec (patch) | |
| tree | 4a7db1b91af38912b180e16435b890cdb6f1921c /src/json_errors.rs | |
| parent | 64f1268be9a06462fe9685107c949dbbad84212d (diff) | |
| download | genenetwork4-3a526efb4cd3721adadf17cbf4a8dc1c5cbd8dec.tar.gz | |
gemma: a warm request is ravanan's walk, not Slurm's scheduler
Measured where a warm request's time actually goes, because it was easy to
blame the scheduler. It is not the scheduler: over 683 jobs slurmrestd reports
a queue delay of 0 s (median; p90 1 s, max 1 s) and run times of 1-4 s, with
the container's tuned 5 s interval already invisible to backfill. What cost
time was ravanan's own overhead, paid once per invocation:
- ~4 s per invocation just to evaluate a manifest: leaving GUIX_PACKAGE_PATH
set makes guix autoload guix-bioinformatics' whole module tree (one ABI
mismatch warning per module). The artifact workflows' manifests name only
`(gnu packages)` specs, so run_artifact now clears the variable for its
child: 12.0 s -> 7.9 s for the same cached run.
- ~7 s to walk a fully cached 40-step workflow (no jobs at all).
- pangemma ran *two* invocations per request (store, then mapping) even when
both were cached, so it paid all of that twice.
So the artifacts are memoized: a small pointer file under
<ravanan cache>/artifacts/ records where a workflow left its outputs, keyed on
the inputs' path, size and mtime (a regenerated panel file misses; a stale
pointer whose files are gone is ignored and rebuilt). Ravanan's store remains
the data cache and the mapping workflow's own key is unchanged -- this only
avoids asking ravanan to tell us something we already know.
Warm BXD.8 trait 10001, before -> after:
gemma 8.3 s -> 4.2 s
pangemma 21.1 s -> 4.1 s
and a request for a new trait is now the same for both engines (9.5 s: the 20
GWA jobs, cached K), where gemma's was 13.5 s.
Still on the table, not done here: merging the kinship and GWA steps into one
job per chromosome (20 steps instead of 40, halving the walk) at the cost of
the K-sharing across traits, a Slurm sched_interval of 1 s in the container,
and pruning ravanan's store -- 87 GB now, of which 72 GB is per-step logs.
Diffstat (limited to 'src/json_errors.rs')
0 files changed, 0 insertions, 0 deletions
