mirror of
https://github.com/ergosteur/ergo-proxmox-scripts.git
synced 2026-10-28 13:00:37 -04:00
sriov-enp4s0.service allocates VFs on the ixgbe ports at boot and applies persistent VF MACs via set-ixgbe-vfmacs-enp4s0.sh, so guests keep stable addresses across host reboots. The VF MAC assignments are currently all commented out. nic-performance-tweaks.service raises ring buffers and txqueuelen on the uplinks and vmbr0. unused/ holds the equivalent pair for the retired enp130s0 adapter. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
17 lines
509 B
Desktop File
17 lines
509 B
Desktop File
[Unit]
|
|
Description=NIC performance tuning for enp4s0f0np0, enp4s1f12np12 and vmbr0
|
|
After=network-online.target
|
|
Wants=network-online.target
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
ExecStart=/usr/sbin/ethtool -G enp4s1f12np12 rx 4096 tx 4096
|
|
ExecStart=/sbin/ip link set enp4s1f12np12 txqueuelen 10000
|
|
ExecStart=/usr/sbin/ethtool -G enp4s0f0np0 rx 4096 tx 4096
|
|
ExecStart=/sbin/ip link set enp4s0f0np0 txqueuelen 10000
|
|
ExecStart=/sbin/ip link set vmbr0 txqueuelen 10000
|
|
RemainAfterExit=true
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|