From 47c8bd67b0852f699fa2d4d6780bb4444762e3d2 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 6 Mar 2023 21:17:25 +0100 Subject: vidhar: cake tuning --- hosts/vidhar/dns/default.nix | 1 + hosts/vidhar/network/dsl.nix | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'hosts/vidhar') diff --git a/hosts/vidhar/dns/default.nix b/hosts/vidhar/dns/default.nix index ade884e7..11e6f55f 100644 --- a/hosts/vidhar/dns/default.nix +++ b/hosts/vidhar/dns/default.nix @@ -26,6 +26,7 @@ in { root-hints = "${pkgs.dns-root-data}/root.hints"; trust-anchor-file = "${pkgs.dns-root-data}/root.key"; trust-anchor-signaling = false; + ip-dscp = 20; num-threads = 12; so-reuseport = true; diff --git a/hosts/vidhar/network/dsl.nix b/hosts/vidhar/network/dsl.nix index 7a1dab58..403b0fad 100644 --- a/hosts/vidhar/network/dsl.nix +++ b/hosts/vidhar/network/dsl.nix @@ -66,14 +66,14 @@ in { text = '' ethtool -K telekom tso off gso off gro off - tc qdisc replace dev "${pppInterface}" root cake pppoe-ptm nat bandwidth 35mbit + tc qdisc replace dev "${pppInterface}" root cake pppoe-ptm nat diffserv4 wash bandwidth 35mbit modprobe ifb ip link del "ifb4${pppInterface}" || true ip link add name "ifb4${pppInterface}" type ifb tc qdisc del dev "${pppInterface}" ingress || true tc qdisc add dev "${pppInterface}" handle ffff: ingress - tc qdisc replace dev "ifb4${pppInterface}" root cake pppoe-ptm bandwidth 93mbit + tc qdisc replace dev "ifb4${pppInterface}" root cake pppoe-ptm diffserv4 bandwidth 93mbit ip link set "ifb4${pppInterface}" up tc filter add dev "${pppInterface}" parent ffff: matchall action mirred egress redirect dev "ifb4${pppInterface}" ''; -- cgit v1.2.3