Reading procfs, sysfs and cgroupfs Why two memory dashboards disagree The container's dashboard shows plenty of machine memory at the instant its workload is killed. Ari puts the two observations on one timeline, then writes the accounting boundary beside each of them. Each unit on this gauge is one million forty-eight thousand five hundred seventy-six bytes. The workload was charged one hundred eighty of those binary units at the reference point and four hundred forty during the incident. A host-level availability estimate measures a different pool. These readings can both be accurate. Some filesystem paths expose live kernel state. Reading them produces a view at that instant, so successive reads need not describe one atomic snapshot. Process view in context Procfs exposes processes and kernel counters. Sysfs organizes devices and attributes, while control groupfs describes resource groups, their controllers and their limits. Sysfs presents devices and their relationships and attributes. A block device name alone may hide a virtual layer, so trace its device mapping before attributing physical latency. Linux load averages smooth runnable tasks and certain uninterruptible waits across several windows. They are counts rather than CPU percentages and are best interpreted with queue and pressure metrics. Tmpfs uses memory-backed storage that can be limited and may use swap. Ramfs lacks equivalent size management, so an unchecked writer can consume host memory. A dashboard inside a container reports host-wide available memory. The workload is killed even while that host still has headroom. Read the number's scope: a process view, a physical host view and a resource group's accounted usage describe different boundaries. A process can hit a local limit while other groups have space. Put a boundary around each number A reader opens a procfs or sysfs path in its current view. VFS selects the operation registered for that pseudo-file. The handler formats the relevant counters or device attribute at read time. Record units, scope and sampling time before comparing a second read. Imagine two alerts labeled memory available. One uses host-wide available memory as an estimate of room for new work. The other subtracts a group's accounted usage from its hard limit. The second expression ignores reclaimability and possible parent constraints, while the first ignores local policy. Give them distinct names and record both inputs so the responder can see which decision each indicator supports. Read the measurements Write down the full path, unit, collection time and resource group for each number. A cumulative count of out-of-memory events and a current memory gauge cannot be compared as if both were instantaneous sizes. Take two counter samples to learn whether a new event occurred during the failure. An apparent jump can be created by moving the collector from host context to container context. Mark agent version, collection scope, kernel interface and units on the time axis. A genuine memory incident should have corroborating pressure, reclaim or application impact at the same scope. A machine with room and a group at its limit Which counter change distinguishes a fresh out-of-memory event from an old event displayed again? Record the workload's group path and compare the relevant event counter before and after the test. Keep the current charge, limit and host headroom beside that delta. A cumulative count on its own does not date the event. If local events are flat, check effective ancestor limits, process termination status and kernel events for the same timestamp. Check the competing explanation Tracefs exposes tracing controls and observations. Debugfs offers kernel-specific diagnostics with weaker interface stability. Prefer bounded, authorized observations on the affected subsystem. Control groupfs exposes membership, controller settings, events and accounting. Read the effective hierarchy, since an ancestor limit may bind more tightly than a child’s nominal setting. A dashboard reads machine-wide available memory from a container. It shows headroom immediately before that container receives an OOM kill. Record the process’s control group, its memory.current, memory.max and event deltas, and keep the node view as context. A metric needs a scope, a unit and a timestamp before two dashboards can be compared. Read the next event as a delta After reducing the charged working set, the group reports two hundred five of the same binary units. Procfs exposes process-specific mappings, descriptors and limits. Select the correct PID and namespace. Diagnostic collection should minimize fields because some process data may contain sensitive values. Ari waits through another equal load window to check the event delta. Scope, units and time belong on every memory comparison. Apply the diagnosis Now move the workload into a different group without changing its binary. Which reports should change? Host totals might barely move, whereas the accounting bucket and applicable limits can change immediately. If the chart follows the host after the worker moves, investigate the collector's view before changing the workload.