Memory observability tools

ToolDescription
vmstatVirtual and physical memory statistics
PSIMemory pressure stall information
swaponSwap device usage
sarHistorical statistics
slabtopKernel slab allocator statistics
numastatNUMA statistics
psProcess status
topMonitor per-process memory usage
pmapProcess address space statistics
perfMemory PMC and tracepoint analysis
drsnoopDirect reclaim tracing
wssWorking set size estimation
bpftraceTracing programs for memory analysis
pmcarchCPU cycle usage including LLC misses
tlbstatSummarizes TLB cycles
freeCache capacity statistics
cachestatPage cache statistics
oomkillShows extra info on OOM kill events
memleakShows possible memory leak code paths
mmapsnoopTraces mmap(2) calls system-wide
brkstackShows brk() calls with user stack traces
shmsnoopTraces shared memory calls with details
faultsShows page faults, by user stack trace
ffaultsShows page faults, by filename
vmscanMeasures VM scanner shrink and reclaim times
swapinShows swap-ins by process
hfaultsShows huge page faults, by process