Repository navigation
Conversation
Hashing chunk groups onto workers lets two groups share one worker, e.g. two channels of a plane-chunk slab, whose planes then evict each other. With ?sticky=1 a group keeps the worker it was first given and new groups go to the worker with the fewest.
Packed channels share one decoded chunk, so the sticky key now uses the channel chunk, as the worker's cache does. The group table keeps the 4096 most recently used groups; a retired group no longer counts toward its worker.
Collaborator
Author
|
Closing this for the time being. Bench results were not really convincing enough. |
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.
Context
Follow-up to #68 (stacked on it). Chunk groups (bricks whose footprint starts in the same chunk, per channel) are hashed onto workers, so two groups can share a worker and evict each other's planes. With 4 channels on 8 workers that happens most of the time.
Changes & Tests
?sticky=1: a group keeps the worker it was first given, new groups go to the worker with the fewest groups. Off = current hash.Preview: compare
?bench=1with and without&sticky=1on the yeast gallery dataset, a bioformats2raw dataset from IDR, and Fly-eFISH (128³ chunks, regression check). Look at bytes, time to converge and the Memory section of?debug=1.Generated by Claude Code