Linux Tips Note

Note & Tips for Linux.

カーネルのコンパイルで最新カーネルに

2006-05-26 07:17:05 | Ubuntu 5.10 Breezy
カーネルを最適化因みにわたしの今のUbuntuは、
ubuntu-nori% uname -a
Linux ubuntu-customized 2.6.16-ck11 #1 SMP Wed May 24 03:01:51 CEST 2006 i686 GNU/Linux

1)必要なライブラリ
sudo apt-get install build-essential bin86 kernel-package
sudo apt-get install libqt3-headers libqt3-mt-dev

2)カーネルソースを落としてきて配置
sudo cp linux-2.6.16.tar.bz2 /usr/src
sudo tar -xvjf linux-2.6.16.tar.bz2
#最適化ぱっち当てるので http://members.optusnet.com.au/ckolivas/kernel/ からとってくる。
sudo mv linux-2.6.16/ linux-2.6.16ck3
sudo ln -s /usr/src/linux-2.6.16ck3 linux

3)ぱっちあてる。
sudo -s -H
bzcat /home/YOUR USERNAME/patch-2.6.16-ck3.bz2| patch -p1

4)カーネルのConfigをする
sudo cp /boot/config-2.6.14-ck1 .config
sudo make xconfig

In "General Setup" activate:

-Support for paging of anonymous memory (swap)
--Support for prefetching swapped memory

In "Processor type and features":

-Processor family Choose the model of your processor.

Activate:

-Preemption Model
--Voluntary Kernel Preemption (Desktop)

-High Memory Support
--off -if you have less than 1 GB of RAM
--1GB Low Memory Support -if you have 1GB of RAM
--4GB -if you have more than 1GB of RAM

-Timer frequency
--1000 Hz

In "Device drivers" go to "Block devices" and in "IO Schedulers" leave only the "CFQ I/O scheduler" activated, which provides the best performance.

In "Kernel hacking" uncheck "Kernel debugging".

5)コンパイル及びインストール
make-kpkg clean
make-kpkg -initrd --revision=ck3 kernel_image
sudo dpkg -i

最新の画像もっと見る