PREEMPT RT Kernel Patch

From wiki.network-crawler.de
Jump to: navigation, search

Change into the source directory:

cd /usr/src/

Get Ingo Molnar's patch and the corresponding Kernel:

wget http://people.redhat.com/mingo/realtime-preempt/older/patch-2.6.15-rt21
wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.15.tar.gz

Unpack the Kernel:

tar xfvz linux-2.6.15.tar.gz
ln -s linux-2.6.15.tar.gz

Patch it:

patch -p1 < ../patch-2.6.15-rt21

When choosing complete preemption, you don’t have to specifically enable the threaded irq handlers as they are mandatory in this preemption model. And you want to download:

wget http://switch.dl.sourceforge.net/sourceforge/schedutils/schedutils-0.7.2.tar.gz

Schedutils is a collection of tools related to realtime scheduling, working much like 'nice' and 'renice', except they change the priority and scheduler.This enables a process to run in soft realtime, as specified by POSIX1.1b. the tools are

  • getsched - prints out current scheduler/priority for a process/PID
  • resched - changes the scheduler/priority for a process/PID
  • sched - executes a program with another scheduler/priority.