Это ядро работает действительно быстрее чем оригинальное в ArchLinux. Установка возможна двумя способами: готовые ядра, оптимизированные под определённые процессоры, и компиляция своего ядра. Главная фишка этого ядра, в наличии очень полезных патчей и хаков.

Установка из репозитариев

Для того, что бы установить это ядро из репозитаривев, добавим в файл /etc/pacman.conf такие строки:

[pfkernel]
Server = http://dl.dropbox.com/u/11734958/$arch

Теперь, что бы узнать какие сборки уже существует, выполним:

sudo pacman -Sy
sudo pacman -Ss pf-kernel

Вывод должен быть приблизительно такой:

[phan@phan13.ru ~]$ pacman -Ss pf-kernel
pfkernel/kernel26-pf 2.6.39-pf3 (base)
    Linux kernel and modules with pf-kernel patch [-ck patchset (BFS included), TuxOnIce, BFQ], aufs2 and squashfs-lzma.
pfkernel/kernel26-pf-atom 2.6.39-pf3 (base)
    Linux kernel and modules with pf-kernel patch [-ck patchset (BFS included), TuxOnIce, BFQ], aufs2 and squashfs-lzma. Intel Atom optimized.
pfkernel/kernel26-pf-core2 2.6.39-pf3 (base)
    Linux kernel and modules with pf-kernel patch [-ck patchset (BFS included), TuxOnIce, BFQ], aufs2 and squashfs-lzma. Intel Core2 optimized.
pfkernel/kernel26-pf-k7 2.6.39-pf3 (base)
    Linux kernel and modules with pf-kernel patch [-ck patchset (BFS included), TuxOnIce, BFQ], aufs2 and squashfs-lzma. AMD K7 optimized.
pfkernel/kernel26-pf-p3 2.6.39-pf3 (base)
    Linux kernel and modules with pf-kernel patch [-ck patchset (BFS included), TuxOnIce, BFQ], aufs2 and squashfs-lzma. Intel Pentium3 optimized.
pfkernel/kernel26-pf-p4 2.6.39-pf3 (base)
    Linux kernel and modules with pf-kernel patch [-ck patchset (BFS included), TuxOnIce, BFQ], aufs2 and squashfs-lzma. Intel Pentium4 optimized.
pfkernel/kernel26-pf-pm 2.6.39-pf3 (base)
    Linux kernel and modules with pf-kernel patch [-ck patchset (BFS included), TuxOnIce, BFQ], aufs2 and squashfs-lzma. Intel Pentium-M optimized.
pfkernel/linux-pf 3.2.6-1 (base)
    Linux kernel and modules with pf-kernel patch [-ck patchset (BFS included), TuxOnIce, BFQ] and aufs3
pfkernel/linux-pf-atom 3.2.6-1 (base)
    Linux kernel and modules with pf-kernel patch [-ck patchset (BFS included), TuxOnIce, BFQ] and aufs3 Intel Atom optimized.
pfkernel/linux-pf-core2 3.2.6-1 (base)
    Linux kernel and modules with pf-kernel patch [-ck patchset (BFS included), TuxOnIce, BFQ] and aufs3 Intel Core2 optimized.
pfkernel/linux-pf-k7 3.2.6-1 (base)
    Linux kernel and modules with pf-kernel patch [-ck patchset (BFS included), TuxOnIce, BFQ] and aufs3 AMD K7 optimized.
pfkernel/linux-pf-k8 3.2.6-1 (base)
    Linux kernel and modules with pf-kernel patch [-ck patchset (BFS included), TuxOnIce, BFQ] and aufs3 AMD K8 optimized.
pfkernel/linux-pf-p3 3.2.6-1 (base)
    Linux kernel and modules with pf-kernel patch [-ck patchset (BFS included), TuxOnIce, BFQ] and aufs3 Intel Pentium3 optimized.
pfkernel/linux-pf-p4 3.2.6-1 (base)
    Linux kernel and modules with pf-kernel patch [-ck patchset (BFS included), TuxOnIce, BFQ] and aufs3 Intel Pentium4 optimized.
pfkernel/linux-pf-pm 3.2.6-1 (base)
    Linux kernel and modules with pf-kernel patch [-ck patchset (BFS included), TuxOnIce, BFQ] and aufs3 Intel Pentium-M optimized.
aur/kernel26-pf 2.6.39-pf3 (84)
    Linux kernel and modules with pf-kernel patch [-ck patchset (BFS included), TuxOnIce, BFQ], aufs2 and squashfs-lzma.
aur/kernel26-pf-grsec 2.6.37-pf3 (Out of Date) (4)
    Linux kernel and modules with pf-kernel and grsecurity patchset [-ck patchset (BFS included), TuxOnIce, BFQ].
aur/linux-pf 3.2.6-1 (74)
    Linux kernel and modules with pf-kernel patch [-ck patchset (BFS included), TuxOnIce, BFQ] and aufs3

Я думаю тут всё понятно. Так как я ставлю ядро на нетбук, у которого процессор – атом, то я устанавливаю linux-pf-atom:

[phan@netbook ~]$ sudo pacman -S linux-pf-atom
разрешение зависимостей...
проверка на взаимную несовместимость...
 
Цели (1): linux-pf-atom-3.2.6-1
 
Будет загружено:    39,66 MiB
Будет установлено:  56,84 MiB
 
Приступить к установке? [Y/n]

Отвечаем “y”

Дальше у вас будет стандартная установка, размещение ядра в /boot/ и так далее.
Выглядит это всё примерно так:

:: Получение пакетов с pfkernel...
 linux-pf-atom-3.2.6-1-i686                          39,7 MiB   116K/s 05:50 [############################################] 100%
(1/1) проверяется целостность пакета                                         [############################################] 100%
(1/1) загрузка файлов пакета                                                 [############################################] 100%
(1/1) проверка возможных конфликтов файлов                                   [############################################] 100%
(1/1) проверяется доступное место                                            [############################################] 100%
(1/1) установка linux-pf-atom                                                [############################################] 100%
>>> Updating module dependencies. Please wait ...
>>> Generating initial ramdisk, using mkinitcpio.  Please wait...
==> Building image from preset: 'default'
  -> -k /boot/vmlinuz-linux-pf -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-pf.img
==> Starting build: 3.2-pf
  -> Parsing hook: [base]
  -> Parsing hook: [udev]
  -> Parsing hook: [autodetect]
  -> Parsing hook: [pata]
  -> Parsing hook: [scsi]
  -> Parsing hook: [sata]
  -> Parsing hook: [filesystems]
  -> Parsing hook: [usbinput]
==> Generating module dependencies
==> Creating gzip initcpio image: /boot/initramfs-linux-pf.img
==> Image generation successful
==> Building image from preset: 'fallback'
  -> -k /boot/vmlinuz-linux-pf -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-pf-fallback.img -S autodetect
==> Starting build: 3.2-pf
  -> Parsing hook: [base]
  -> Parsing hook: [udev]
  -> Parsing hook: [pata]
  -> Parsing hook: [scsi]
  -> Parsing hook: [sata]
  -> Parsing hook: [filesystems]
  -> Parsing hook: [usbinput]
==> Generating module dependencies
==> Creating gzip initcpio image: /boot/initramfs-linux-pf-fallback.img
==> Image generation successful
Дополнительные зависимости для linux-pf-atom
    linux-docs: Kernel hackers manual - HTML documentation that comes with the Linux kernel.
    crda: to set the correct wireless channels of your country
    pm-utils: utilities and scripts for suspend and hibernate power management
    tuxonice-userui: TuxOnIce userspace user interface
    hibernate-script: set of scripts for managing TuxOnIce, hibernation and suspend to RAM
    nvidia-pf: NVIDIA drivers for linux-pf
    nvidia-beta-all: NVIDIA drivers for all installed kernels
    modprobed_db: Keeps track of EVERY kernel module that has ever been probed. Useful for make localmodconfig.

Теперь осталось только изменить файл /boot/grub/menu.lst :

sudo nano /boot/grub/menu.lst

Находим строки вида:

# (0) Arch Linux
title  Arch Linux
root   (hd0,0)
kernel /vmlinuz-linux root=/dev/disk/by-uuid/5582ea25-7266-4687-b9e6-e062076252be ro
initrd /initramfs-linux.img

И приводим её к такому виду:

# (0) Arch Linux
title  Arch Linux
root   (hd0,0)
kernel /vmlinuz-linux-pf root=/dev/disk/by-uuid/5582ea25-7266-4687-b9e6-e062076252be ro
initrd /initramfs-linux-pf.img

Внимание! root=/dev/disk/by-uuid/5582ea25-7266-4687-b9e6-e062076252be У ВАС БУДЕТ ДРУГОЙ!

В следующей статье я расскажу о компиляции pf ядра.

Если вам понравился пост, вы можете подписаться на мой RSS фид!