Archive for March 2008

Flushing cache gently

A problem occuring when flushing cache is that the site will run live for all pages at one time. To avoid this, flushing should be done gently, using: ?View Code DOS1 2 3 4 5 for X in 0 1 2 3 4 5 6 7 8 9 a b c d e f do [...]

Recompiling a kernel on Debian Etch

First of all, install some packages: ?View Code BASH1 apt-get install ssh make build-essential ncurses-dev kernel-package fakeroot bzip2 In order to recompile the kernel we must download the most recent version first. We can find it at kernel.org. For convience we shall unpack the source files in /usr/src ?View Code BASH1 tar xjf linux-2.6.21.3.tar.bz2 Next [...]

Small ads script.

I made a script so I could manually rotate some ads on our forum. You can find this script in the attachment. So, what does this script? First some ads are defined. This is done with an <<< EOF .. EOF; structure, so I can just paste the HTML code. Then there is specified an [...]

Accessing barracuda ’secret’ menu

By going the the advanced and adding ?View Code BASH1 &amp;expert=1 to the URL, some secret menu in the barracuda 340 gets enabeld.

Tuning TCP 4

The issues all point to one problem: the number of ports in use. On the default linux kernel, an established connection gets, after it has been used, in some idle state. This is to ensure that no lost packages will reach a newly established connection to a different client. The time after which such a [...]

Tuning TCP 3

Resulting in my current sysctl.conf file: ?View Code BASH1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 kernel.sysrq = 0 net.ipv4.tcp_fin_timeout = 30 net.ipv4.tcp_keepalive_time = 1200 net.ipv4.tcp_window_scaling = 1 net.ipv4.tcp_sack = 0 net.ipv4.tcp_timestamps = 0 net.ipv4.tcp_syncookies = [...]

Tuning TCP 2

More information on tuning TCP: Linux Kernel Tuning Using System Control Forums.theplanet.com #1 Forums.theplanet.com #2 Commands to modify the /proc/sys settings: ?View Code BASH1 2 3 pico /etc/sysctl.conf sysctl -p sysctl -w net.ipv4.route.flush=1

Tuning TCP

It looks like our webservers are dealing with misconfigured network connections. I’ve been reading some documentation here, here and here. Evidently, the debian etch kernel is not propperly configured for high traffic servers. I had to edit the /etc/sysctl.conf file, and appended the following lines: ?View Code BASH1 2 3 4 5 6 7 8 [...]