|
Installing a WEB-100 Enabled System at SLAC
|
At the time of writing the required kernel is 2.4.19. Install the files in the /usr/src area as shown,
cd /usr/src
tar xzf linux-2.4.19.tar.gz
ln -s linux-2.4.19 linuxNext copy the existing configuration for the starting point of the new kernel,
cd /usr/src/linux
tar xzf ../web100-*
patch -p3 < web100/web100-*
make mrproper
cp ../linux-2.4/configs/kernel-2.4.18-i386-smp.config .configAnd configure
make menuconfig
Select the following under different kernel options:
Code maturity level options --->
[*] Prompt for development and/or incomplete code/drivers
Processor type and features --->
[*] Symmetric multi-processing support (Select for SMPs only)
Networking options --->
[*] Web100 networking enhancements (NEW)
[*] Web100: TCP statistics (NEW)
[*] Web100: default winscale sysctl variable (NEW)
(7) Web100: default winscale initial value (NEW)
Turn on the benign parts of Net100 by editing the top level Makefile to add -DWEB100_NET100 to the CFLAGS define: CFLAGS := .... -DWEB100_NET100
Compile the patched kernel and modules and install the neccessary things in the neccessary places,
make depFinally, modify the lilo configuration in /etc/lilo.conf. Make the default to be the new kernel
make bzImage
cp arch/i386/boot/bzImage /boot/vmlinuz-2.4.19-web100
make modules
make modules_install
mkinitrd /boot/initrd-2.4.19-web100.img 2.4.19-web100
default=linux-web100and add a new image describing the new kernel
image=/boot/vmlinuz-2.4.19-web100
label=linux-web100
initrd=/boot/initrd-2.4.19-web100.img
read-only
root=/dev/sdb1
Run lilo on the new lilo configuration
/sbin/lilo -v
At the time of writing, the latest version of OpenAFS is 1.2.9, amend the following if there is a later version. Copy over /afs/slac/package/OpenAFS/src/openafs-1.2.9-src.tar.gz
tar zxf openafs-1.2.9-src.tar.gz
cd openafs-1.2.9
./configure --enable-transarc-paths
make dest
mkdir /usr/vice/ ; mkdir /usr/vice/etc
cp -r i386_linux24/dest/root.client/usr/vice/etc/* /usr/vice/etc/.
lynx -dump http://www/comp/unix/linux/go-taylor | shEnable the SCS /usr/local.
Sometimes, shutting down AFS causes a hang. You may need to do a hard reboot.
# increase Linux TCP buffer limits
net.core.rmem_max = 33554432
net.core.wmem_max = 33554432
net.core.rmem_default = 65536
net.core.wmem_default = 65536
net.ipv4.tcp_rmem = 4096 87380 33554432
net.ipv4.tcp_wmem = 4096 65536 33554432
net.ipv4.tcp_mem = 33554432 33554432 33554432
# flush old route information
net.ipv4.route.flush = 1
# web100 tuning
net.ipv4.web100_default_wscale = 7
net.ipv4.web100_no_metrics_save = 1
net.ipv4.web100_sbufmode = 1
net.ipv4.web100_rbufmode = 1
# net100 tuning
net.ipv4.WAD_FloydAIMD = 1
net.ipv4.WAD_IFQ = 1
./configure --prefix=/usr
make
make install
Created July 23, 2002. Last updated April 21, 2003.
URL:
http://www-iepm.slac.stanford.edu/
Comments to
iepm-l@slac.stanford.edu