Skip to content

PMM-15398 Build dashboards memory fix - #4550

Draft
theTibi wants to merge 1 commit into
v3from
PMM-15398-memory-used-shmem
Draft

PMM-15398 Build dashboards memory fix#4550
theTibi wants to merge 1 commit into
v3from
PMM-15398-memory-used-shmem

Conversation

@theTibi

@theTibi theTibi commented Aug 28, 2026

Copy link
Copy Markdown

Feature build for PMM-15398 — node Used memory now counts PostgreSQL shared_buffers.

Used was MemTotal - (MemFree + Buffers + Cached), and /proc/meminfo:Cached includes Shmem, so shared_buffers was subtracted out of Used and re-drawn as Cache. This build carries the corrected expressions so QA can check the OS dashboards against free on a real PostgreSQL node.

Component PRs

ci.yml

deps:
  - name: pmm
    branch: PMM-15398-memory-used-shmem

What to look at

Open OS → Node Summary → Memory Utilization for a PostgreSQL node with a large shared_buffers and compare Used against free -m on that host. Also check Memory Details → Memory Usage, Nodes Compare, and Nodes Overview → Top 5 Used Memory.

Two things worth checking explicitly:

  • The stacked panel must still sum to MemTotalUsed + Free + Buffers + Cache.
  • An RDS node must be unchanged, not blank. rds_exporter does not export SReclaimable or Shmem, and the expressions carry a zero-fallback for exactly that case.

Used reads higher than before on every node — that is the fix, not a regression.

Ticket

Feature build for percona/pmm#5855 - node Used memory now counts
Shmem and SReclaimable instead of hiding shared_buffers in Cache.

Signed-off-by: theTibi <tkorocz@gmail.com>
@JNKPercona

Copy link
Copy Markdown
Collaborator

@JNKPercona

Copy link
Copy Markdown
Collaborator

API tests have succeded: https://pmm.cd.percona.com/job/pmm3-api-tests/7192/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants