Skip to content

Release 0.17.8 - #131

Merged
Claptar merged 9 commits into
mainfrom
release/0.17.8
Dec 3, 2026
Merged

Claptar merged 9 commits into
mainfrom
release/0.17.8

Conversation

@Claptar

@Claptar Claptar commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Release 0.17.8: version in pyproject.toml and uv.lock, a ## 0.17.8 section in docs/changelog.md, and the release recorded in STATUS.md.

The branch is dev with #129 merged, plus #130's branch merged in, so this PR's CI covers both. #130 goes into dev once its own CI is green. After this merges, push the tag 0.17.8 from 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. dev is then brought level with main.

🤖 Generated with Claude Code

Claptar and others added 9 commits December 2, 2026 21:16
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>
Copilot AI balanced review requested due to automatic review settings December 3, 2026 23:23

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-03T23:25:25.623792Z bbe958a PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Claptar
Claptar merged commit 64599b3 into main Dec 3, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants