
The Linux kernel exposes memory and swap statistics through /proc/meminfo. The file is useful for investigating memory pressure, but low free memory alone does not prove that a server is short of RAM.
Display memory statistics
cat /proc/meminfo
free -hKey fields
- MemTotal: Total usable RAM reported by the kernel.
- MemFree: Currently unused physical memory.
- MemAvailable: Estimated memory that can be made available to applications without swapping; this field may be absent on older kernels.
- Buffers and Cached: Memory associated with kernel buffers and file caching.
- SwapTotal and SwapFree: Total and unused swap capacity.
- Dirty and Writeback: Data awaiting or undergoing writeback.
- Slab: Kernel object caches.
- CommitLimit and Committed_AS: Memory commitment accounting, not actual physical consumption.
- HugePages_Total, HugePages_Free and Hugepagesize: Explicit huge-page pool statistics.
Investigate memory pressure
Compare MemAvailable, swap activity and workload trends. For SAP, correlate these with application and database memory consumption instead of dropping caches or increasing swap simply because MemFree is small.
vmstat 1 5


