Skip to content

Commit f87da75

Browse files
committed
Remove duplicative content
1 parent edbdd11 commit f87da75

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

articles/virtual-network/virtual-network-optimize-network-bandwidth.md

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ To enhance network performance, consider implementing the following optimization
9898
- **Network buffer settings**: Adjust kernel parameters to maximize read and write memory buffers. Add these configurations to `/etc/sysctl.d/99-azure-network-buffers.conf`:
9999

100100
```plaintext
101-
/etc/sysctl.d/99-azure-network-buffers.conf
102101
net.core.rmem_max = 2147483647
103102
net.core.wmem_max = 2147483647
104103
net.ipv4.tcp_rmem = 4096 67108864 1073741824
@@ -110,41 +109,35 @@ net.ipv4.tcp_wmem = 4096 67108864 1073741824
110109
- Ensure the BBR module is loaded by adding it to `/etc/modules-load.d/99-azure-tcp-bbr.conf`:
111110

112111
```plaintext
113-
/etc/modules-load.d/99-azure-tcp-bbr.conf
114112
tcp_bbr
115113
```
116114

117115
```plaintext
118-
/etc/sysctl.d/99-azure-congestion-control.conf
119116
net.ipv4.tcp_congestion_control = bbr
120117
```
121118

122119
- **Queue discipline (qdisc)**: Packet processing in Azure is generally improved by setting the default qdisc to `fq`. Add this configuration to `/etc/sysctl.d/99-azure-qdisc.conf`:
123120

124121
```plaintext
125-
/etc/sysctl.d/99-azure-qdisc.conf
126122
net.core.default_qdisc = fq
127123
```
128124

129125
- Create a udev rule in `/etc/udev/rules.d/99-azure-qdisc.rules` to ensure the qdisc is applied to network interfaces:
130126

131127
```plaintext
132-
/etc/udev/rules.d/99-azure-qdisc.rules
133128
ACTION=="add|change", SUBSYSTEM=="net", KERNEL=="enP*", PROGRAM="/sbin/tc qdisc replace dev \$env{INTERFACE} root noqueue"
134129
ACTION=="add|change", SUBSYSTEM=="net", KERNEL=="eth*", PROGRAM="/sbin/tc qdisc replace dev \$env{INTERFACE} root fq“
135130
```
136131

137132
- **IRQ scheduling**: Depending on your workload, you may wish to restrict the irqbalance service from scheduling IRQs on certain nodes. Update `/etc/default/irqbalance` with the following configuration:
138133

139-
```plaintext
140-
/etc/default/irqbalance
134+
```bash
141135
IRQBALANCE_BANNED_CPULIST=0-2
142136
```
143137

144138
- **udev rules**: Add rules to optimize queue length and manage device flags efficiently. Create the following rule in `/etc/udev/rules.d/99-azure-txqueue-len.rules`:
145139

146140
```plaintext
147-
/etc/udev/rules.d/99-azure-txqueue-len.rules
148141
SUBSYSTEM=="net", ACTION=="add|change", KERNEL=="eth*", ATTR{tx_queue_len}="10000“
149142
```
150143

0 commit comments

Comments
 (0)