You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

FreeBSD上Prometheus对应node_memory_SReclaimable_bytes的等价指标查询

FreeBSD 对应 Linux node_memory_SReclaimable_bytes 的 Prometheus 指标

FreeBSD 没有与 Linux node_memory_SReclaimable_bytes 完全一一对应的单一指标,但可以通过现有暴露的指标组合出近似的可回收内存值,核心原因是两者内存模型存在差异:

  • Linux 的 SReclaimable 主要包含可回收的内核slab内存和可释放的页缓存;
  • FreeBSD 的可回收内存分散在以下几个已暴露的指标中:
    • node_memory_cache_bytes:对应页缓存,这部分内存完全可回收;
    • node_memory_inactive_bytes:最近未被访问的内存页,系统内存紧张时可被回收;
    • node_memory_laundry_bytes:正在写入磁盘、等待回收的内存页,属于inactive内存的子集。

如果要近似模拟 node_memory_SReclaimable_bytes 的含义,可以使用以下PromQL表达式:

node_memory_cache_bytes + node_memory_inactive_bytes + node_memory_laundry_bytes

额外补充几个FreeBSD与Linux内存指标的对应关系,方便你参考:

  • node_memory_size_bytes → Linux node_memory_MemTotal_bytes
  • node_memory_free_bytes → Linux node_memory_MemFree_bytes
  • node_memory_wired_bytes → Linux node_memory_Mlocked_bytes(固定在物理内存,不可交换/回收)

内容的提问来源于stack exchange,提问作者Kevin

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.13 05:05:56