OCI Cache: Garbage collection / Layer sharing #7

Open
opened 2026-02-11 19:21:08 +00:00 by thabeta · 0 comments
Owner

The current OCI implementation in chvm-lib stores layers in VM-specific directories. When multiple VMs use the same image, layers are duplicated on disk, increasing storage overhead.

Proposed Changes:

  1. Move layer storage to a global content-addressable store (CAS) indexed by digest.
  2. Implement reference counting for layers to track usage across VMs.
  3. Add a prune subcommand to remove unreferenced layers and images from the CAS.
The current OCI implementation in `chvm-lib` stores layers in VM-specific directories. When multiple VMs use the same image, layers are duplicated on disk, increasing storage overhead. **Proposed Changes:** 1. Move layer storage to a global content-addressable store (CAS) indexed by digest. 2. Implement reference counting for layers to track usage across VMs. 3. Add a `prune` subcommand to remove unreferenced layers and images from the CAS.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
geomind_code/my_hypervisor#7
No description provided.