Commit b55e3c1
committed
Add NUMA balancing detection and warning
NUMA balancing auto-migrates pages between NUMA nodes, which causes severe
performance degradation for bandwidth-intensive internode dispatch/combine
kernels that use RDMA and NVLink. Detect when /proc/sys/kernel/numa_balancing
is non-zero at import time and emit a clear warning telling the user how to
disable it.
Test Plan:
- Verified that `import deep_ep` emits a warning when
/proc/sys/kernel/numa_balancing contains "1"
- Verified that `import deep_ep` is silent when
/proc/sys/kernel/numa_balancing contains "0" or is absent
Signed-off-by: Yuchen Fan <functionhx@gmail.com>1 parent 60d4403 commit b55e3c1
1 file changed
Lines changed: 25 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
| 6 | + | |
| 7 | + | |
5 | 8 | | |
6 | | - | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
| |||
43 | 45 | | |
44 | 46 | | |
45 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
46 | 69 | | |
47 | 70 | | |
48 | 71 | | |
| |||
80 | 103 | | |
81 | 104 | | |
82 | 105 | | |
| 106 | + | |
83 | 107 | | |
84 | 108 | | |
85 | 109 | | |
| |||
0 commit comments