Skip to content

Swap alert persists after memory pressure is gone #7802

@DavidePrincipi

Description

@DavidePrincipi

The alert logic does not correlate swap usage with current RAM pressure or reclaim activity. Instead it considers only used swap relative value. When used swap reaches 80% an alert is raised, however swap space is released by the kernel lazily, long after the memory peak.

Steps to reproduce

  • Put a node under memory stress condition. In production systems this may happen during overnight backups.
  • Wait until alert is raised and memory pressure is released

Expected behavior

When memory pressure is relieved and the system returns to normal operation, the alert should be cleared even if swap is still partially in use.

Actual behavior

The alert remains active even though memory usage has returned to normal levels, resulting in a false positive condition. Used swap space is reclaimed after a while.

The screenshot shows the alert still active while memory usage is already at normal level.

Image

The alert logic should consider additional signals (e.g. RAM pressure, swap-in activity, or sustained swap growth) instead of relying solely on swap usage percentage.

Components

Core 3.16.0

Metadata

Metadata

Labels

No labels
No labels

Type

Projects

Status

In Progress

Relationships

None yet

Development

No branches or pull requests

Issue actions