Skip to content

deleting logical clusters does not free up memory #4071

Closed

Description

@SimonTheLeg

On large scale installations, larger chunks of memory are being retained after logicalclusters are deleted. The memory also is not fully re-used on the creation of new logicalclusters. This can even lead to OOMs.

Image

The effect can also be observed over multiple days where memory is still in use

Image

Deleting the pods frees up the memory again.

Image

We should investigate where the memory is being held and how to release it properly or re-use it on the second creation run.

Activity

  1. Elbehery commented on May 13, 2026

    @Elbehery

    @SimonTheLeg I have been thinking about this since yesterday.

    Upon deleting the pods as shown above, the memory is being freed.

    Now I have two assumptions :-

    • Go GC needs hints to aggressively return the memory. iiuc u can tune this with GOMEMLIMIT , GOGC.
      • iirc Go Runtime keep the memory pages for a duration before returning it to OS buffer, in order to minimise sys-calls in case it needs to allocate memory later. I recall it is 5 mins by default.
    • Otherwise, I have a list of potential memory leaks. We would need to try each fix separately till we reach the ultimate issue.

    Before we invest into this, is it a high priority ?

    cc @mirzakopic @ntnn

  2. moved this from Backlog to In Progress in Platform Mesh & Kube Projects - Backlogon May 20, 2026
  3. self-assigned this
    on May 20, 2026
  4. mjudeikis commented on May 20, 2026

    @mjudeikis
    Contributor

    @Elbehery its quite big priority, as we seen OOM in the tests

  5. Elbehery commented on May 20, 2026

    @Elbehery

    @Elbehery its quite big priority, as we seen OOM in the tests

    Thanks @mjudeikis

    It is also quiet involving one :)

  6. moved this from New to Done in kcpon May 28, 2026
  7. Elbehery commented on May 28, 2026

    @Elbehery

    @SimonTheLeg any conclusions here ?

  8. moved this from Done to Demo'd in OpenMesh - Backlogon Jul 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

  • Status
    Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions