diff --git a/ethernet.service b/ethernet.service index f6bc407..6d501d2 100644 --- a/ethernet.service +++ b/ethernet.service @@ -1,14 +1,15 @@ -# 2024-01-23 +# 2024-03-04 + [Unit] -Description=Ethernet Settings +Description=Ethernet Tweak Settings After=network-online.target +After=net.service [Service] +EnvironmentFile=/etc/env/net Type=oneshot -ExecStart=ip link set ens18 mtu 1500 -ExecStart=ip link set ens18 txqueuelen 1000 -# ExecStart=ip link set ens18 mtu 9000 -# ExecStart=ip link set ens18 txqueuelen 10000 +ExecStart=ip link set ${IFACE} mtu 9000 +ExecStart=ip link set ${IFACE} txqueuelen 10000 [Install] WantedBy=multi-user.target diff --git a/multiqueue.service b/multiqueue.service index 36ce5ac..d2a20c8 100644 --- a/multiqueue.service +++ b/multiqueue.service @@ -1,12 +1,15 @@ -# 2024-11-23 +# 2024-03-04 + [Unit] -Description=Ethernet Multiqueue +Description=Ethernet Tweak Multiqueue After=network-online.target +After=nproc.service [Service] +EnvironmentFile=/etc/env/net EnvironmentFile=/etc/env/nproc Type=oneshot -ExecStart=ethtool -L ens18 combined ${NPROC} +ExecStart=ethtool -L ${IFACE} combined ${PROCESSORS} [Install] WantedBy=multi-user.target