Tuesday, March 10, 2009

Compile Linux kernel "2.6.28.7" on CentOS5.2

想玩看看EXT4,所以下載了最新版有支援EXT4的kernel於CentOS5.2上,以下是compile的雜記:

1. 於/usr/src/kernels/解開2.6.28.7的kernel source (download: www.kernel.org)
2. 將目前的kernel config 從/boot下copy到/usr/src/kernels/2.6.28.7/.config
3. 於/usr/src/kernels/2.6.28.7執行make menuconfig
-> Add EXT4
-> Remove Bluetooth
-> Remove wireless
4. 執行make bzImage
5. 執行make modules
6. 執行make modules_install
7. 執行make install
8. 檢查/boot/*, /boot/grub/grub.conf
-> 開機選用kernel 2.6.28.7開機。
2009.3.25 update:
Tested ext3 and ext4 performance on kernel 2.6.29 and result as below:
It looks like ext4 is better than ext3.
Note: To clean HD cache for each test processing by hdparm -f command.

2 comments:

Anonymous said...

I have follow the quick instruction that you mentioned. However, I ran into a failure messege at bootup says something about "Protocol version 5 requires 2.6.17 or above". Similar issue has been identified on bugzilla.redhar.com at https://bugzilla.redhat.com/show_bug.cgi?id=195768.

Would you mind showing me some further direction about how to resolve this issue?

瘋狂帽客 said...

我到是沒遇到此問題,我是在kernel 2.6.18-92.1.18.el5去compile 2.6.28.7,剛剛查了一下我系統的 autofs是v5.0,所以沒有問題。