Repository navigation
Docs: performance on cluster storage, and the Lustre probe behind it - #130
Conversation
Times today's adata on big h5ad files across Lustre, node-local /tmp and NFS, with 1/4 and 1/16 slices for the slopes, and compares read, write and text engines: h5py, a zarr view of HDF5 chunks (zarr-python and obstore), zarrs, and DuckDB's h5db and anndata extensions. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
What the first runs on the farm showed the probe needed. - Profiles with pyinstrument (measure.py --profile), which samples from inside the process: py-spy needs ptrace, and LSF nodes refuse it. Job A gains export dataframe var. - Job E (job_chunks.sh, PARTS=chunks): one command at several --chunk sizes, rounds in alternating order. WHAT picks export dataframe obs or subset --obs; ADATA and TAG run another build of adata under its own step names. - Job F (ceiling.py, job_ceiling.sh, PARTS=ceiling): what one node reads and writes with plain byte ranges, buffered against O_DIRECT at several depths, read-ahead hints, several processes and two files at once. - Job C (io_write.py): zarrs' direct I/O trials, --rounds in a shuffled order, the host and numpy's huge-page setting on each row, a work folder per job, WRITE_GB and WRITE_TAG. - submit.sh submits one part at a time (PARTS=profile, chunks, ceiling, write) after AFTER, and keeps jobs off AVOID_HOSTS or on ON_HOST. - report.py: tables for Jobs E and F, and the host in Job C's. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A reference page on what the Lustre probe measured: each command on the three stores, where its time goes, the read and write engines against the filesystem's own speed, DuckDB on the text formats, --chunk, the 32 MiB sparse floor and numpy's huge pages, what was ruled out and what could make adata faster. - benchmarks/lustre/evidence.py makes a cleaned summary of a run (benchmarks/lustre/results/2026-12.json) and the page's five charts from it. The summary keeps the numbers and drops every path: the raw results name the inputs' locations and the probe's folders. Each profile is reduced to its shares of reading, writing, compressing, text and other computing. - The charts are SVG in docs/_includes/charts, included inline so each mark's tooltip works; the page's tables carry the same numbers. Colours are the reference palette's first five slots, checked with its validator (adjacent pairs pass; three are under 3:1, hence the tables). - Linked from the Reference index, Benchmarks (and its template) and the pipelines guide. Testing moves to nav_order 8. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8c6968b60c
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…decoded
- evidence.py: a --chunk run that exited non-zero was averaged into the
sweep and the floor chart like any other, so a refusal or a failed
write ended early and read as a faster block size. It is counted now
("failed", and "chunks_failed" for a size with no successful run) and
never timed. This run had none; the charts are unchanged.
- layout.py: a categorical obs or var index was read as its categories,
which are in another order and may include unused ones, so the half and
first-quarter selections took the wrong rows and n_obs was wrong. The
categories are taken by the codes now, in row order.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The page showed Lustre alone, though the probe ran the same work on the node's /tmp and on NFS. A new section, with two charts and their tables: - Reading and writing by filesystem: h5py, zarr and DuckDB reads; h5py (uncompressed and gzip) and zarrs writes. /tmp is fastest for one stream (h5py 788 MB/s, against 446 on Lustre and 110 on NFS); NFS is where parallel reads pay (zarr with 32 in flight, 3.8 times h5py); gzip runs at 65-76 MB/s everywhere, bound by one core. - Each command on the 6.7 GB store on all three, a dot per filesystem on a log scale. Commands bound by one core take about the same anywhere; small reads cost most on Lustre; and a run its node held up (most of its time in the kernel, five times the system time of the same work elsewhere) is drawn hollow and named. The summary keeps each command's user and system time, and the writes of every tier, grouped by tier as well as host: Lustre's first write run and /tmp's shared a node. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Test Results (py3.13)3 838 tests 3 826 ✅ 5m 45s ⏱️ Results for commit 4f9af08. |
A storage and engine probe for LSF clusters, the results of running it on Lustre, and a new reference page, Performance on cluster storage, that sets out the evidence with charts. The two fixes the probe led to are in #129; this PR is the measurements and the page.
What the page shows
h5dband obstore were slower./tmp, h5py was the fastest outright..h5spend 62–74% compressing on one core;--chunksweeps: the default of 10,000 rows forexport dataframeis fine; the sparse-subset sweep is what led to Read sparse blocks of at least 32 MiB; turn off numpy's huge pages #129's 32 MiB floor.What's in it
benchmarks/lustre/: Jobs A–F, a new commit on top of the original probe.--chunksweeps that can run another build of adata;benchmarks/lustre/evidence.py: turns a run into a cleaned summary (benchmarks/lustre/results/2026-12.json) and the page's five charts.docs/reference/cluster-storage.md: the page.docs/_includes/charts, included inline so each mark has a tooltip; tables carry the same numbers.nav_order8.For reviewers
github-pages.{% include %}inside<figure markdown="0">is the one construct new to the site. The SVGs have no blank or indented lines, so kramdown should pass them through whole. It is worth a look on the Pages preview.main. The page links tobenchmarks/lustre/onmain, where they resolve oncedevreaches it.report-12022121.mdandreport-12031056.mdstay local.tests/test_docs_are_accurate.pyandtests/test_release_pipeline.pypass locally (618).🤖 Generated with Claude Code