Skip to content

v0.6.19: full index still peaks at 13.4G physical footprint on 16GB macOS host #320

Description

@mrm007

Retested on cass 0.6.19 on the same macOS 16 GB host. This is a recurrence of closed #294: full indexing still drives the process to a 13 GB-class footprint.

Run context:

  • cass --version: cass 0.6.19
  • Command under test: cass index --full
  • Host: macOS, 16 GB RAM
  • Retest output dir: /Users/mrm/work/cass-0.6.16-retest/20260703T210349Z
  • Monitor log: monitor.tsv

The monitor script samples top memory plus periodic vmmap -summary physical footprint. Peak observed in this run:

max top_mem:                       13G
max top_rsize:                     13G
max vmmap_physical_footprint:      13.4G
max vmmap_physical_footprint_peak: 13.4G
lowest sampled mem_free_pct:       15%

Worst sampled row:

2026-07-03T21:06:22Z	87440	02:34	2.7	19248	13G	13G	13.4G	13.4G	315392	225129192	0	0	1783112814207	1783112685295	index	15%	3615	4406	616603	20078109	23469887

Column header for that row:

ts	pid	elapsed	cpu_pct	rss_kb	top_mem	top_rsize	vmmap_physical_footprint	vmmap_physical_footprint_peak	db_bytes	wal_bytes	shm_bytes	index_bytes	lock_updated_ms	lock_last_progress_ms	lock_phase	mem_free_pct	pages_free	pages_speculative	pages_compressed	pages_swapins	pages_swapouts

Later, after lexical publish, the same run again climbed into multi-GB memory during the post-publish wedge/abort window, with samples reaching 10G-12G top memory:

2026-07-03T21:18:47Z	87440	14:58	94.3	1407568	11G	11G	11.0G	13.4G	315392	1188941392	0	340750336	1783113531425	1783113282347	index	33%	3373	719	447913	21226931	24266108
2026-07-03T21:18:53Z	87440	15:04	69.1	1287568	12G	12G	11.0G	13.4G	315392	1188941392	0	340750336	1783113534462	1783113282347	index	33%	4079	598	449821	21229964	24286716

The process eventually published the lexical index, then hit the post-publish preparing wedge and self-aborted with exit_code=70. This issue is only about the memory peak: v0.6.19 still pushes a 16 GB macOS host to the edge, and RSS alone would miss the real footprint.

Related run results:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions