codebytere

#52299: feat: expose MemAvailable as process.getSystemMemoryInfo().available

Merged
Created: Jul 9, 2026, 4:48:12 PM
Merged: Jul 17, 2026, 9:45:38 AM
4 comments
Target: main

Description of Change

On Linux the returned free is /proc/meminfo MemFree - free pages only, excluding page cache and other reclaimable memory. Any long-uptime machine reads a few percent "free" with no real memory pressure, so free / total is useless as a pressure signal and apps end up parsing /proc/meminfo themselves.

Chromium already parses MemAvailable into base::SystemMemoryInfo::available; we just never exposed it. This adds it to the returned object as available, the kernel's estimate of memory available for allocation without swapping.

Checklist

Release Notes

Notes: Added available to process.getSystemMemoryInfo() on Linux, exposing proc/meminfo MemAvailable.

Backports

42-x-y
In-flight
PR Number
#52378
Waiting to be merged
43-x-y
In-flight
PR Number
#52379
Waiting to be merged
44-x-y
In-flight
PR Number
#52380
Waiting to be merged

Semver Impact

Major
Breaking changes
Minor
New features
Patch
Bug fixes
None
Docs, tests, etc.

Semantic Versioning helps users understand the impact of updates:

  • Major (X.y.z): Breaking changes that may require code modifications
  • Minor (x.Y.z): New features that maintain backward compatibility
  • Patch (x.y.Z): Bug fixes that don't change the API
  • None: Changes that don't affect using facing parts of Electron