Skip to content

epic: GC improvements #3787

@mjudeikis

Description

@mjudeikis

Demo Objective

We want to demonstrate a larger kcp instance where each workspace uses less memory.

Goal

Reduce the per-workspace memory footprint in the current kcp implementation so that memory usage scales more gracefully with the number of workspaces.

This epic is scoped to garbage collection (GC) behavior and explicitly does not change cross-workspace ownership semantics.

Background

Today, the GC implementation creates multiple goroutines per workspace, so memory usage grows linearly with the number of workspaces.
GC also does not support cross-workspace ownership because ownership is currently restricted to a single workspace.

Objectives

  • Make GC memory usage scale better with the number of workspaces (e.g., by reducing per-workspace goroutines and related overhead).
  • Preserve existing ownership semantics for now; cross-workspace ownership will be handled in a separate effort.

Tasks

Demo Steps

No response

Action Items

  • Scope of the current demo is necessary to fit in the prototype boundaries
  • Contribute to the final demo script and recording

Stories

Metadata

Metadata

Assignees

Labels

epicRepresents a larger feature with multiple stories

Type

Projects

Status

New

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions