storage: describe the SPACE fixture's lazy attached shape

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
pingqiuandClaude Opus 5.5 committed 2026-11-30 13:45:51 -08:00
1 parent 65795f4206
commit 691a95750e
1 file changed
+6 -4
@@ -9,10 +9,12 @@ import (
"testing"
)
// spaceVolume attaches a layer over a 1 TiB-shaped volume (262,144 chunks,
// every one named by HEAD), reads it whole so every chunk is present, and
// runs one cut. It returns the heap growth per chunk from before the store
// was created to after the cut, with the layer still attached.
// spacePerChunk attaches a lazy fresh-from-HEAD layer over a 1 TiB-shaped
// volume (262,144 chunks, every one named by HEAD and absent locally: none
// is read), writes one block and runs one cut. It returns the heap growth
// per chunk from before the store was created to after the cut, with the
// layer still attached. It measures that attached, lazy shape, not a volume
// whose chunks are all present locally.
func spacePerChunk(t *testing.T, shadow bool) float64 {
t.Helper()
const n, bs = 262144, 512