mirror of
https://github.com/moghtech/komodo.git
synced 2026-07-11 04:22:47 -05:00
[PR #1489] feat: break out cache/buffers and ZFS ARC from used memory #24829
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/moghtech/komodo/pull/1489
Author: @ChanningHe
Created: 6/20/2026
Status: 🔄 Open
Base:
2.3.0← Head:feat/memory-breakdown📝 Commits (1)
6fabe42feat: break out cache/buffers and ZFS ARC from used memory📊 Changes
8 files changed (+406 additions, -19 deletions)
View changed files
📝
bin/core/src/monitor/record.rs(+4 -0)➕
bin/periphery/src/stats/mem.rs(+149 -0)📝
bin/periphery/src/stats/mod.rs(+10 -5)📝
client/core/rs/src/entities/stats.rs(+34 -1)📝
client/core/ts/src/types.ts(+44 -1)📝
ui/public/client/types.d.ts(+44 -1)📝
ui/src/resources/server/stats/current/ram.tsx(+19 -4)📝
ui/src/resources/server/stats/historical.tsx(+102 -7)📄 Description
On hosts with a big page cache or ZFS ARC, used memory looks almost full and the memory alerts keep firing, even though that memory is reclaimable. ZFS is the worst case since
MemAvailabledoesn't count the ARC. There are also a few open issues about this.Periphery now reports memory broken out into used, cache/buffers, ZFS ARC and swap, and keeps reclaimable memory out of "used" so the alerts track real pressure.
Notes for review:
bin/periphery/src/stats.rswas moved tostats/mod.rsto make room for the newstats/mem.rs(the /proc parsing and calculation).historical.tsxhas the largest diff — the memory chart went from a single line to a stacked composition.Screenshot:


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.