Rtpreempt howto
Yang honggang <eagle.rtlinux@gmail.com>
-------------------------
Ref: https://rt.wiki.kernel.org/index.php/RT_PREEMPT_HOWTO#Getting_the_Sources
-------------------------------------------------------------------------------
1.
$ Tar-jxf linux-3.10.6.tar.xz
2. Patch
$ Linux-3.10.6 CD
$ Xzcat ../patch-3.10.6-rt3.patch.xz | patch-p1
3. config
$ Make defconfig
$ Make menuconfig
(X) fully preemptible kernel (RT) // config_preempt_rt_full
...
4. Make
$ Make-J8
# Make modules_install
# Make install
5. Reboot
# Reboot
6.
$ Uname-R
3.10.6-rt3i
$ CAT/sys/kernel/realtime
1
$ PS ax
PID tty stat Time Command
1? SS 0: 00 init [2]
2? S 0: 00 [kthreadd]
3? S 0: 00 [ksoftirqd/0]
4? S 0: 00 [kworker/0: 0]
5? S <0: 00 [kworker/0: 0 h]
6? S 0: 00 [kworker/16.0: 0]
7? S 0: 00 [posixcputmr/0]
8? S 0: 00 [kcmosdelayd]
9? S 0: 00 [migration/0]
10? S 0: 00 [rcu_preempt]
11? S 0: 00 [rcu_bh]
12? S 0: 00 [rcu_sched]
13? S 0: 00 [migration/1]
14? S 0: 00 [ksoftirqd/1]
15? S 0: 00 [posixcputmr/1]
16? S 0: 00 [kworker/1:0]
17? S <0: 00 [kworker/1: 0 h]
18? S 0: 00 [migration/2]
19? S 0: 00 [ksoftirqd/2]
20? S 0: 00 [posixcputmr/2]
21? S [kworker/]
22? S <0: 00 [kworker/2: 0 h]
23? S 0: 00 [migration/3]
24? S 0: 00 [ksoftirqd/3]
25? S 0: 00 [posixcputmr/3]
26? S 0: 00 [kworker/3: 0]
27? S <0: 00 [kworker/3: 0 h]
28? S <0: 00 [khelper]
29? S <0: 00 [netns]
30? S [kworker/: 1]
351? S <0: 00 [writeback]
353? S <0: 00 [bioset]
355? S <0: 00 [kblockd]
357? S 0: 00 [IRQ/9-acpi]
502? S <0: 00 [ata_sff]
513? S 0: 00 [khubd]
522? S <0: 00 [MD]
531? S [kworker/]
532? S <0: 00 [Jun 80211]
631? S <0: 00 [rpciod]
657? S 0: 00 [kswapd0]
723? S 0: 00 [fsnotify_mark]
737? S <0: 00 [nfsiod]
742? S <0: 00 [crypto]
776? S [kworker/]
778? S 0: 00 [kworker/2:1]
780? S [kworker/]
786? S [kworker/: 2]
829? S 0: 00 [IRQ/41-ahci]
...