Index: trunk/debs/wikimedia-base/debian/postinst |
— | — | @@ -81,7 +81,7 @@ |
82 | 82 | fi |
83 | 83 | |
84 | 84 | # Optimize TCP |
85 | | - if ! grep -q "^### START: Added by wikimedia-base" /etc/sysctl.conf || dpkg --compare-versions "$2" lt "0.17" |
| 85 | + if ! grep -q "^### START: Added by wikimedia-base" /etc/sysctl.conf || dpkg --compare-versions "$2" lt "0.18" |
86 | 86 | then |
87 | 87 | cat /usr/share/doc/wikimedia-base/sysctl.conf >> /etc/sysctl.conf |
88 | 88 | sysctl -p /usr/share/doc/wikimedia-base/sysctl.conf |
Index: trunk/debs/wikimedia-base/debian/changelog |
— | — | @@ -1,3 +1,9 @@ |
| 2 | +wikimedia-base (0.18) feisty; urgency=low |
| 3 | + |
| 4 | + * Decrease default TCP keepalive parameters in sysctl.conf |
| 5 | + |
| 6 | + -- Mark Bergsma <mark@wikimedia.org> Thu, 6 Sep 2007 14:04:31 +0000 |
| 7 | + |
2 | 8 | wikimedia-base (0.17) feisty; urgency=low |
3 | 9 | |
4 | 10 | * Set /proc/sys/vm/swappiness to 10 in sysctl.conf |
Index: trunk/debs/wikimedia-base/sysctl.conf |
— | — | @@ -19,4 +19,9 @@ |
20 | 20 | |
21 | 21 | # Swapping makes things too slow and should be done rarely |
22 | 22 | vm.swappiness = 10 |
| 23 | + |
| 24 | +# The default TCP keepalive time of 2H is too long |
| 25 | +net.ipv4.tcp_keepalive_time = 300 |
| 26 | +net.ipv4.tcp_keepalive_intvl = 1 |
| 27 | +net.ipv4.tcp_keepalive_probes = 2 |
23 | 28 | ### END: Added by wikimedia-base |