Worker memory metric uses freeMem, overstating usage on Linux #30

Open
opened 2026-09-08 20:57:32 -04:00 by jared · 0 comments
Owner

Overview

os.freemem() excludes page cache/buffers, so a healthy box with 8 GB and lots of cache shows e.g. "7.2 GB / 8 GB (90% used)" on the Workers tab and dashboard. Operators read this as memory pressure.

Suggested fix

Report MemAvailable from /proc/meminfo when present (fall back to freemem), and show disk usage for / alongside, which is the metric most people actually look for.

## Overview `os.freemem()` excludes page cache/buffers, so a healthy box with 8 GB and lots of cache shows e.g. "7.2 GB / 8 GB (90% used)" on the Workers tab and dashboard. Operators read this as memory pressure. ## Suggested fix Report `MemAvailable` from `/proc/meminfo` when present (fall back to `freemem`), and show disk usage for `/` alongside, which is the metric most people actually look for.
jared added the buguxfrontendworkerpriority/low labels 2026-09-08 20:57:32 -04:00
Sign in to join this conversation.