From e4b6d17f1cbd51f57d1108af1e157ffaee7b694b Mon Sep 17 00:00:00 2001 From: Olivier Date: Sun, 10 Mar 2024 15:38:48 +0100 Subject: [PATCH] =?UTF-8?q?T=C3=A9l=C3=A9verser=20les=20fichiers=20vers=20?= =?UTF-8?q?"/"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ethernet.service | 13 +++++++------ multiqueue.service | 9 ++++++--- 2 files changed, 13 insertions(+), 9 deletions(-) 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