os.freemem() leaves out the page cache, so a healthy Linux box looks full:
the production worker (CT 153, 512 MB) has 4 MB free but 449 MB
available, and showed as 99% used instead of about 12%.
- worker: heartbeat metadata adds availableMem from MemAvailable in
/proc/meminfo (falls back to os.freemem()); freeMem stays for old
servers.
- Workers tab and dashboard compute used memory from availableMem when
present, from freeMem for workers that predate it.
- Unit tests for the meminfo parsing and the fallback.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>