L
Member
When a Linux evaluation reports increased latency or lower throughput on a multi-socket or large-core machine, it is easy to label the result as a scheduler or resource-policy failure without separating NUMA locality effects. The useful first split is whether the workload is paying for remote memory access, NUMA hinting faults, and page migration, or whether the policy layer is actually delaying placement, throttling quotas, or refusing scheduling requests. Those paths can produce similar tail-latency symptoms, but they require different evidence and different fixes.
A practical diagnostic sequence is to capture per-NUMA memory placement and access behavior alongside policy events. Check numastat or per-node memory counters for imbalanced resident memory, use perf to look at numa-hint faults, minor faults, migrations, and remote-node access indicators where the platform PMUs expose them, and compare application threads against the CPUs and memory nodes they are using. In parallel, inspect cgroup CPU statistics, throttling counters, cpuset constraints, and scheduler traces to see whether tasks were descheduled, quota-capped, confined to a subset of nodes, or rejected by an external policy. If remote accesses and hinting faults rise while throttling counters do not, the issue is likely memory topology rather than policy; if throttled time or policy refusals rise without NUMA imbalance, the opposite conclusion is better supported.
The evaluation should also avoid changing too many variables at once. Run the same workload with default NUMA balancing, with balancing disabled where appropriate, and with explicit placement such as pinned nodes or numactl-backed memory policy, while keeping cgroup and quota settings constant. A clear improvement from locality-aware placement, with no corresponding change in throttling, points to NUMA balancing cost or remote memory traffic. Conversely, if changing CPU quotas or cpuset boundaries removes the stall while NUMA counters remain unchanged, the policy configuration is the dominant factor. Reporting these two hypotheses separately makes the result reproducible and prevents a topology-specific finding from being misclassified as a generic scheduler regression.
A practical diagnostic sequence is to capture per-NUMA memory placement and access behavior alongside policy events. Check numastat or per-node memory counters for imbalanced resident memory, use perf to look at numa-hint faults, minor faults, migrations, and remote-node access indicators where the platform PMUs expose them, and compare application threads against the CPUs and memory nodes they are using. In parallel, inspect cgroup CPU statistics, throttling counters, cpuset constraints, and scheduler traces to see whether tasks were descheduled, quota-capped, confined to a subset of nodes, or rejected by an external policy. If remote accesses and hinting faults rise while throttling counters do not, the issue is likely memory topology rather than policy; if throttled time or policy refusals rise without NUMA imbalance, the opposite conclusion is better supported.
The evaluation should also avoid changing too many variables at once. Run the same workload with default NUMA balancing, with balancing disabled where appropriate, and with explicit placement such as pinned nodes or numactl-backed memory policy, while keeping cgroup and quota settings constant. A clear improvement from locality-aware placement, with no corresponding change in throttling, points to NUMA balancing cost or remote memory traffic. Conversely, if changing CPU quotas or cpuset boundaries removes the stall while NUMA counters remain unchanged, the policy configuration is the dominant factor. Reporting these two hypotheses separately makes the result reproducible and prevents a topology-specific finding from being misclassified as a generic scheduler regression.