Repository navigation
Release 0.17.8 - #131
Merged
Merged
Release 0.17.8#131
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>
Two fixes from the storage and engine probe on the farm's Lustre. - A sparse block reads at least 32 MiB of data and indices (SPARSE_BLOCK_BYTES), whatever --chunk says. At --chunk 1024 a narrow matrix (4.3M x 480) was read 800 KB at a time, and each read waited on the network. On one node, subset --obs of half its cells took 6.4 to 6.9 minutes on main and 1.5 to 2.1 with the floor, at the same peak memory (820 MB). subset, split and the 10x, Visium, Xenium and CellBender conversions all read through fan_out_sparse_matrix. - main turns off numpy's requests for transparent huge pages for the run, and restores them after. On a node with fragmented memory each fault of an array of 4 MiB or more waited on a failed compaction: a 2 GB write had written nothing after 55 minutes, and took 11 seconds with the requests off. A NUMPY_MADVISE_HUGEPAGE the user set is kept. Tests: the floor is read and not exceeded whatever the input; a run turns huge pages off unless the user chose, and restores the setting. The guards of what --chunk sets take the floor away, since their matrices are smaller than it. Docs: the pipelines guide (the floor, a Huge pages section), AGENTS.md, developers.md, STATUS.md. 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>
…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>
Read sparse blocks of at least 32 MiB; turn off numpy's huge pages
Sparse matrices read at least 32 MiB at a time and no numpy huge pages (#129); the Performance on cluster storage page and the Lustre probe (#130). - pyproject.toml and uv.lock at 0.17.8. - docs/changelog.md: a 0.17.8 section (Added, Changed, Fixed). - STATUS.md: 0.17.8 released; nothing in progress; the probe's list of what could make adata faster moves to the follow-ups. - The cluster-storage page names 0.17.8 for both fixes, and links the pipelines guide's Huge pages section, which #129 added. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
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. |
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.
Release 0.17.8: version in
pyproject.tomlanduv.lock, a## 0.17.8section indocs/changelog.md, and the release recorded in STATUS.md.subset,splitand the 10x, Visium, Xenium and CellBender conversions no longer read a narrow matrix a few hundred KB at a time. On Lustre,subset --obsof a 4.3M × 480 store took 1.5–2.1 min against 6.4–6.9, at the same memory.adatano longer asks numpy for huge pages. On a node with fragmented memory these stalled every large allocation in the kernel. ANUMPY_MADVISE_HUGEPAGEyou set is kept.benchmarks/lustre/probe and a cleaned summary of its results.The branch is
devwith #129 merged, plus #130's branch merged in, so this PR's CI covers both. #130 goes intodevonce its own CI is green. After this merges, push the tag0.17.8from main. Publish then builds, tests and publishes to PyPI, pushes the image and creates the GitHub release from this section, and Benchmark appends its summary.devis then brought level with main.🤖 Generated with Claude Code