minimize swap usage
[debian6500.git] / master / opt / cluster / slave / etc / rc.local
CommitLineData
15d19708 1#!/bin/bash -e
4e802319 2#
3# rc.local
4#
5# This script is executed at the end of each multiuser runlevel.
6# Make sure that the script will "exit 0" on success or any other
7# value on error.
8#
9# In order to enable or disable this script just change the execution
10# bits.
11#
12# By default this script does nothing.
13
14for i in $(seq 1 25); do
15d19708
TPVT
15 echo TRC6500
16done
17
18# distribute interrupt for eth0 on core 1-6
19core=(2 4 8 10 20 40)
20l=0
21for i in $(awk '/eth0/ {sub(/:/, ""); print $1}' /proc/interrupts); do
22 echo ${core[$l]} > /proc/irq/$i/smp_affinity
23 let l++
24 [ $l -eq 6 ] && l=1
4e802319 25done
26
27exit 0