aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorficus <ficus@robocracy.org>2012-11-23 19:14:51 +0100
committerficus <ficus@robocracy.org>2012-11-23 19:14:51 +0100
commit2c2bfbecdb58042acb89fa4b2831d56a534c908a (patch)
treeaf77cfda99a158b634fb920cddeacf00937d98ec /config
parentaa3e1e573d52a8e7a1d15f601ef365325869c26e (diff)
downloadtorouter-live-2c2bfbecdb58042acb89fa4b2831d56a534c908a.tar.gz
torouter-live-2c2bfbecdb58042acb89fa4b2831d56a534c908a.zip
basic bufferbloat mitigations
Diffstat (limited to 'config')
-rw-r--r--config/includes.chroot/etc/rc.local12
-rw-r--r--config/package-lists/debian.list.chroot1
2 files changed, 13 insertions, 0 deletions
diff --git a/config/includes.chroot/etc/rc.local b/config/includes.chroot/etc/rc.local
new file mode 100644
index 0000000..2bf955e
--- /dev/null
+++ b/config/includes.chroot/etc/rc.local
@@ -0,0 +1,12 @@
+
+# Don't stop for errors
+set +e
+
+# bufferbloatery
+ifconfig eth0 txqueuelen 50
+ifconfig eth1 txqueuelen 50
+ifconfig uap0 txqueuelen 16
+ethtool -G eth0 tx 64
+ethtool -G eth1 tx 64
+
+exit 0
diff --git a/config/package-lists/debian.list.chroot b/config/package-lists/debian.list.chroot
index bd81b67..3f4312d 100644
--- a/config/package-lists/debian.list.chroot
+++ b/config/package-lists/debian.list.chroot
@@ -50,3 +50,4 @@ uboot-mkimage
dctrl-tools
tsocks
user-setup
+ethtool