This is Gentoo's testing wiki. It is a non-operational environment and its textual content is outdated.

Please visit our production wiki at https://wiki.gentoo.org

Kernel/概要

From Gentoo Wiki (test)
< Kernel
Jump to:navigation Jump to:search
This page is a translated version of the page Kernel/Overview and the translation is 41% complete.

この文書では Gentoo が Portage を通じて提供しているすべてのカーネルソースを概説します。

はじめに

Gentoo Linux のあらゆる側面と同様に、Gentoo カーネルチームの掲げる理念は、最大限の選択の自由をユーザーに与えることにあります。emerge -s sources の出力を眺めてみると分かることですが、選ぶことのできるカーネルは実に多様です。この文書では、Gentoo が提供しているそれぞれのパッチセットの目的について簡単な説明を試みるとともに、その他に利用できるカーネルについても解説していきます。

サポートが提供されるカーネルパッケージ

Genkernel

genkernel は、ごく一般的なオプションやドライバを含んだカーネルや、initramfsを作成するツールです。カーネルを手作業でコンパイルすることに抵抗を感じる人によくおすすめされています。

詳しい情報は、Genkernel についての記事を参照してください。

汎用: gentoo-sources

大抵のユーザーには、sys-kernel/gentoo-sources がおすすめです。gentoo-sources は Linux 4.x を基にして、セキュリティ問題やカーネルのバグの修正、そして稀に見られるシステムアーキテクチャとの互換性を高めるため、少々のパッチを当てたものです。

Gentoo カーネルチームの労力の大半が sys-kernel/gentoo-sources パッケージに注がれています。チームには卓越した開発者たちが関わっており、著名なカーネルハッカーである Greg Kroah-Hartmann の後援を受けて作業を行っています。彼は udev のメンテナーで、Linux 公式カーネルの USB・PCI サブシステムを取りまとめています。

サーバー向け: hardened-sources

sys-kernel/hardened-sources は、Linux の公式カーネルに基づき、Gentoo をサーバーシステム上で動かすユーザーを対象にしたカーネルです。SELinuxgrsecurity のサポートなどを含む、 Gentoo Hardened のさまざまなサブプロジェクトのためのパッチとともに、安定性やセキュリティの強化を提供します。詳しくは、Hardened project here on the wiki をご覧ください。

Important
このカーネルでは、セキュリティを強固にするため、強力なパッチを提供しています。使用の前にintroduction to Hardened Gentoo article を一読してください。

ck-sources

sys-kernel/ck-sourcesはCon Kolivas's氏によるパッチセットです。このパッチセットは、システムのレスポンスと反応速度が向上するよう設計されており、サーバー用途からデスクトップ用途まで、あらゆる作業向けに設定が可能です。またこのパッチセットでは、新しいスケジューラであるMuQSSが導入されており、負荷がかかった状況でもシステムのレスポンスを維持しスムーズに動作するようになっています。サポートと情報については http://kernel.kolivas.orgないしirc.oftc.netのチャンネル#ckにて。

git-sources

sys-kernel/git-sources パッケージは、開発中であるカーネルツリーの一日の開発状況をそのまま反映するもので、カーネルの開発やテストに興味があるユーザーに向きます。バグ報告は Linux Kernel Bug Tracker や LKML (Linux Kernel Mailing List) に送信してください。

アーキテクチャ依存カーネル

sys-kernel/mips-sourcessys-kernel/xbox-sources は、その名の通り、特定のアーキテクチャにおいて最適な動作をするようにパッチが当てられています。この文書で言及されている他のパッチセットに含まれる、ハードウェアや機能を拡張するパッチも取り込んでいます。

サポートされないカーネルパッケージ

emerge -s sourcesを実行すると出てくるその他のsys-kernel/*-sourcesについてご紹介します。各々については下記にて説明します。これらのカーネルは、Gentooカーネルチームはサポートしておらず、好意によってのみされています。特に優劣はありませんから、アルファベット順で見ていくことにします。

aufs-sources

sys-kernel/aufs-sourcesは通常のカーネルソースに加え、aufs3のサポートと3.1系カーネルための公式なgenpatchset(gentoo-sourcesにはある)が追加されています。aufs3ファイルシステムを利用しようとしている場合に有用なカーネルです。詳細はSourceforge もしくは genpatches homepageを参照のこと。

pf-sources

sys-kernel/pf-sourcesは様々なカーネルパッチを一つにまとめたものです。例えばsys-kernel/ck-sourcesからBFSパッチセットや、sys-kernel/tuxonice-sourcesパッチ、LinuxIMQBFQ I/O schedulerなどです。

openvz-sources

OpenVZは、Linux上に構築されたサーバー仮想化ソリューションです。 OpenVZは、単一の物理サーバーに隔離された安全な仮想プライベートサーバー(VPS)または仮想環境を作成し、サーバーの利用効率を高め、アプリケーションが競合しないようにします。 詳細については、http://www.openvz.orgを参照してください。

tuxonice-sources

The sys-kernel/tuxonice-sources (formerly sys-kernel/suspend2-sources) are patched with both genpatches which includes the patches found in gentoo-sources, and the patches found in TuxOnIce which are an improved implementation of suspend-to-disk for the Linux kernel, formerly known as suspend2.

このカーネルは、ラップトップを一時停止して別の場所で作業を再開できることにしばしば頼るラップトップユーザーにおすすめです。

usermode-sources

usermode-sources are the User Mode Linux kernel patches and can be found in the sys-apps/usermode-utilities package. These kernel patches are designed to allow Linux to recursively run within Linux. User Mode Linux is intended for testing and virtual server support. For more information about this amazing tribute to the stability and scalability of Linux, see http://user-mode-linux.sourceforge.net.

For more information on UML and Gentoo, read the Gentoo User-mode Linux Guide

vanilla-sources

Many Linux users will probably be familiar with the sys-kernel/vanilla-sources package. These kernels are copies of the official kernel sources released on http://www.kernel.org/. Please note that the Gentoo kernel team does not patch vanilla-sources at all; they are for people who wish to run a completely unmodified Linux kernel. The Gentoo kernel team recommends sys-kernel/gentoo-sources instead.

カーネルのバージョンは、このパッケージの下で見つけることができます:3.x、4.x.

Previously provided kernel packages

aa-sources

aa-sources was a heavily modified kernel with all kinds of patches. The upstream maintainer stopped releasing kernel patchsets and subsequently this package has been removed.

alpha-sources

alpha-sources was a 2.4 kernel with patches applied to improve hardware compatibility for the Alpha architecture. These patches have been developed and are now included in the mainline kernel. Alpha users can run any recent kernel with no need for extra patches.

Architecture dependent kernels

cell-sources was a 2.6 kernel designed to run on the Sony PlayStation 3 game console.

development-sources

development-sources, the official 2.6 kernel from kernel.org, can now be found under the vanilla-sources package.

gentoo-dev-sources

gentoo-dev-sources, a 2.6 kernel patched with bug, security, and stability fixes, can now be found under the gentoo-sources package.

grsec-sources

The grsec-sources kernel source used to be patched with the latest grsecurity updates (grsecurity version 2.0 and up) which included, amongst other security-related patches, support for PaX. Grsecurity patches are included in the hardened-sources kernel, so this package is no longer available in Portage.

hardened-dev-sources

hardened-dev-sources can now be found under the hardened-sources package.

hppa-sources

hppa-sourcesは2.6カーネルで、HPPAアーキテクチャのハードウェア互換性を改善するためにパッチが適用されていました。 これらのパッチは開発され、メインラインカーネルに含まれています。 HPPAユーザーは、余分なパッチを必要とせずに最新のカーネルを実行できるようになりました。

mm-sources

The mm-sources were based on vanilla-sources and contained Andrew Morton's patch set. They included the experimental and bleeding-edge features that were going to be included in the official kernel (or were going to be rejected because they set systems on fire!). They were known to be always moving at a fast pace and could change radically from one week to the other; kernel hackers often used mm-sources as a testing ground for highly experimental stuff. They have since been removed from the Portage tree.

rsbac-dev-sources

The rsbac-dev-sources kernels can now be found under the sys-kernel/rsbac-sources package.

rsbac-sources

Back in the days of 2.6-based kernels sys-kernel/rsbac-sources contained patches to use Rule Set Based Access Controls (RSBAC). It was removed due to lack of maintainers, but has has magically reappeared with the 3.10 kernel series. Use hardened-sources if additional security features are needed.

selinux-sources

selinux-sources, a 2.4 kernel including lots of security enhancements, has been obsoleted by security development in the 2.6 kernel tree. SELinux functionality can be found in the hardened-sources package.

sh-sources

sh-sources was a 2.6 kernel with patches applied to improve hardware compatibility for the SuperH architecture. These patches have been developed and included in the mainline kernel. SuperH users can now run any recent kernel with no need for extra patches.

sparc-sources

sparc-sources was a 2.4 kernel with patches applied to improve hardware compatibility for the SPARC architecture. These patches have been developed and included in the mainline kernel. SPARC users can now run any recent kernel with no need for extra patches.

uclinux-sources

The uclinux-sources are meant for CPUs without MMUs as well as embedded devices. For more information, see http://www.uclinux.org. Lack of security patches as well as hardware to test on were the reasons this package is no longer found in the Portage tree.

win4lin-sources

win4lin-sources were patched to support the userland win4lin tools that allowed Linux users to run many Microsoft Windows (TM) applications at almost native speeds. These kernel sources were removed due to security issues.

xen-sources

xen-sources was a 2.6-based kernel that allowed running multiple operating systems on a single physical system. A user could create virtual environments in which one or more guest operating systems could run on a Xen-powered host operating system.

The xen-sources patches were incorporated into the mainline Linux kernel as of version 3.0.

For more information on working with Xen and Gentoo, read the Xen article here on the wiki.

zen-sources

The sys-kernel/zen-sources package is designed for desktop systems. It includes code not found in the mainline kernel. The Zen kernel has patches that add new features, support additional hardware, and contains various tweaks for desktops. The Zen 3.8 kernel series is currently masked in the Portage tree. For more information on the Zen kernel please visit Zen Kernel Live Sources website.

See also

  • Kernel upgrade guide
  • The Gentoo Handbook
    This page is based on a document formerly found on our main website gentoo.org.
    The following people contributed to the original document: Brandon Low, Daniel Drake, Carl Anderson, Jorge Paulo, Benny Chuang, Gregorio Guidi, Shyam Mani, Joshua Saddler
    They are listed here because wiki history does not allow for any external attribution. If you edit the wiki article, please do not add yourself here; your contributions are recorded on each article's associated history page.