Repository navigation
Conversation
Add a t2b-tier test that fits the same data at 25,000 and 400,000 anchors on DiskGraph, each in a new process. It reports the peak RSS of fitting and the part that fitting adds. It has no pass or fail limit. Run it with --t2b. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Change map
|
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
The child process used to generate the data and build the index before it reset the peak RSS. Fitting reused the memory that this work freed, so the reported numbers were 2 to 2.5 times too low. The test process now writes the data and builds the index once, and each child only reopens the index and fits. The job-summary write is gone, because no workflow runs this test yet. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Summary
tests/test_fitting_memory.py. It fits the same data at 25,000 and 400,000 anchors on DiskGraph. It reports the peak RSS of fitting and the part that fitting adds.AnchorTable, which large runs use.prepareand readsVmHWMaftermaterialize. Fitting reuses memory that earlier work in the same process freed. So a process that also built the data or the index hides part of the fitting peak.t2bmarker keeps it out of PR runs, so run it with--t2b.Change map
File-by-file change map
Testing Done
python -m pytest -q -rP --t2b --require-imports tests/test_fitting_memory.pyat9a95955e, twice: 1 passed in about 29 seconds each time. AfterFitting peak RSS on DiskGraph:, the runs printed:25,000 anchors 321 MiB, fitting adds 46.7 MiB; 400,000 anchors 377 MiB, fitting adds 102.0 MiB25,000 anchors 321 MiB, fitting adds 45.7 MiB; 400,000 anchors 377 MiB, fitting adds 100.8 MiBmainateb474553.--t2b, pytest deselects the test.uvx [email protected] checkanduvx [email protected] format --checkpass on the new file.Checklist
🤖 Generated with Claude Code