You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: desktop/l2/CPU_and_IRQ_optimization.md
+200-3Lines changed: 200 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,7 @@ On this architecture, each physical core is split into two logical processors (S
26
26
-**8 MSI-X vectors** distributed across cores 16-23
27
27
-**Current distribution**: Interrupts are clustered on cores 14, 15, 16, 17, 18, 20, 22, 23
28
28
-**Issue**: Competing with storage I/O and userland processes
29
+
-**Note**: LRO and GRO features are disabled due to compatibility issues with the Atlantic driver
29
30
30
31
#### WiFi Interfaces (4x Intel iwlwifi)
31
32
-**wlp35s0**: 16 MSI-X vectors, mostly on CPU 21
@@ -56,6 +57,11 @@ On this architecture, each physical core is split into two logical processors (S
56
57
- Heavy network processing concentrated on cores 14, 15, 21, 23
57
58
- No dedicated cores for network processing
58
59
60
+
### 4. **Network Hardware Offload Limitations**
61
+
-**Atlantic NIC LRO/GRO Issues**: The Atlantic driver has compatibility issues with Large Receive Offload (LRO) and Generic Receive Offload (GRO) features
62
+
-**Impact**: Reduced CPU efficiency for packet processing, requiring software-based packet handling
63
+
-**Mitigation**: Optimized interrupt coalescing and ring buffer settings to compensate for disabled hardware offloads
64
+
59
65
## Proposed Optimization Strategy
60
66
61
67
### Phase 1: Core Isolation and Dedication
@@ -79,7 +85,7 @@ On this architecture, each physical core is split into two logical processors (S
79
85
#### Userland Processing Cores (8-23)
80
86
**Remaining cores for system services and userland:**
81
87
-**Cores 8,20,9,21,10,22,11,23**: Userland processes, system services
82
-
-**Services**: hostapd, DHCP (Kea), DNS (PowerDNS), IPv6 RA (radvd)
88
+
-**Services**: hostapd, DHCP (Kea), DNS (PowerDNS), IPv6 RA (radvd), CrowdSec
83
89
-**Slice**: system.slice and network-services.slice
**Note:** All services inherit CPU affinity and resource limits from their assigned slice. Only the two main parent slices (network-services and system) need explicit CPU affinity settings. **Network cores (0,12,1,13,2,14,3,15,4,5,6,7) are isolated by `isolcpus` and can only be used for IRQ affinity, not for systemd slice CPU affinity.** Kernel-level components like nftables and CAKE (QoS) are not managed by systemd slices; their performance is influenced by CPU isolation, IRQ affinity, and kernel boot parameters, not by systemd.
0 commit comments