/[gentoo]/xml/htdocs/doc/en/handbook/hb-install-filesystems.xml
Gentoo

Diff of /xml/htdocs/doc/en/handbook/hb-install-filesystems.xml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.12 Revision 1.13
1<?xml version='1.0' encoding="UTF-8"?> 1<?xml version='1.0' encoding="UTF-8"?>
2<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-filesystems.xml,v 1.12 2012/10/28 10:29:03 swift Exp $ --> 2<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-filesystems.xml,v 1.13 2013/02/23 18:38:22 swift Exp $ -->
3<!DOCTYPE included SYSTEM "/dtd/guide.dtd"> 3<!DOCTYPE included SYSTEM "/dtd/guide.dtd">
4 4
5<included> 5<included>
6 6
7<version>10</version> 7<version>11</version>
8<date>2012-10-28</date> 8<date>2013-02-23</date>
9 9
10<section id="filesystemsdesc"> 10<section id="filesystemsdesc">
11<title>Filesystems</title> 11<title>Filesystems</title>
12<body> 12<body>
13 13
14<p test="contains('x86 Alpha',func:keyval('arch'))"> 14<p test="contains('x86 Alpha',func:keyval('arch'))">
15The Linux kernel supports various filesystems. We'll explain ext2, ext3, ext4, 15The Linux kernel supports various filesystems. We'll explain ext2, ext3, ext4,
16ReiserFS, XFS and JFS as these are the most commonly used filesystems on Linux 16ReiserFS, XFS and JFS as these are the most commonly used filesystems on Linux
17systems. 17systems.
18</p> 18</p>
19 19
20<p test="func:keyval('arch')='IA64'"> 20<p test="func:keyval('arch')='IA64'">
21The Linux kernel supports various filesystems. We'll explain vfat, ext2, ext3, 21The Linux kernel supports various filesystems. We'll explain vfat, ext2, ext3,
22ext4, ReiserFS, XFS and JFS as these are the most commonly used filesystems on 22ext4, ReiserFS, XFS and JFS as these are the most commonly used filesystems on
23Linux systems. 23Linux systems.
89happens to be in an inconsistent state. If you intend to install Gentoo on a 89happens to be in an inconsistent state. If you intend to install Gentoo on a
90very small disk (less than 4GB), then you'll need to tell ext2 to reserve enough 90very small disk (less than 4GB), then you'll need to tell ext2 to reserve enough
91inodes when you create the filesystem. The <c>mke2fs</c> application uses the 91inodes when you create the filesystem. The <c>mke2fs</c> application uses the
92"bytes-per-inode" setting to calculate how many inodes a file system should have. 92"bytes-per-inode" setting to calculate how many inodes a file system should have.
93By running <c>mke2fs -T small /dev/&lt;device&gt;</c> the number of inodes will 93By running <c>mke2fs -T small /dev/&lt;device&gt;</c> the number of inodes will
94generally quadruple for a given file system as its "bytes-per-inode" reduces from 94generally quadruple for a given file system as its "bytes-per-inode" reduces from
95one every 16kB to one every 4kB. You can tune this even further by using 95one every 16kB to one every 4kB. You can tune this even further by using
96<c>mke2fs -i &lt;ratio&gt; /dev/&lt;device&gt;</c>. 96<c>mke2fs -i &lt;ratio&gt; /dev/&lt;device&gt;</c>.
97</p> 97</p>
98 98
99<p> 99<p>
100<b>ext3</b> is the journaled version of the ext2 filesystem, providing metadata 100<b>ext3</b> is the journaled version of the ext2 filesystem, providing metadata
101journaling for fast recovery in addition to other enhanced journaling modes like 101journaling for fast recovery in addition to other enhanced journaling modes like
102full data and ordered data journaling. It uses an HTree index that enables high 102full data and ordered data journaling. It uses an HTree index that enables high
103performance in almost all situations. In short, ext3 is a very good and 103performance in almost all situations. In short, ext3 is a very good and
104reliable filesystem. Ext3 is the recommended all-purpose all-platform
105filesystem. If you intend to install Gentoo on a 104reliable filesystem. If you intend to install Gentoo on a
106very small disk (less than 4GB), then you'll need to tell ext3 to reserve enough 105very small disk (less than 4GB), then you'll need to tell ext3 to reserve enough
107inodes when you create the filesystem. The <c>mke2fs</c> application uses the 106inodes when you create the filesystem. The <c>mke2fs</c> application uses the
108"bytes-per-inode" setting to calculate how many inodes a file system should have. 107"bytes-per-inode" setting to calculate how many inodes a file system should have.
109By running <c>mke2fs -j -T small /dev/&lt;device&gt;</c> the number of inodes will 108By running <c>mke2fs -j -T small /dev/&lt;device&gt;</c> the number of inodes will
110generally quadruple for a given file system as its "bytes-per-inode" reduces from 109generally quadruple for a given file system as its "bytes-per-inode" reduces from
111one every 16kB to one every 4kB. You can tune this even further by using 110one every 16kB to one every 4kB. You can tune this even further by using
112<c>mke2fs -j -i &lt;ratio&gt; /dev/&lt;device&gt;</c>. 111<c>mke2fs -j -i &lt;ratio&gt; /dev/&lt;device&gt;</c>.
113</p> 112</p>
114 113
115<p test="contains('x86 Alpha MIPS AMD64 arm IA64 SPARC HPPA PPC PPC64',func:keyval('arch'))"> 114<p test="contains('x86 Alpha MIPS AMD64 arm IA64 SPARC HPPA PPC PPC64',func:keyval('arch'))">
116<b>ext4</b> is a filesystem created as a fork of ext3 bringing new features, 115<b>ext4</b> is a filesystem created as a fork of ext3 bringing new features,
117performance improvements and removal of size limits with moderate changes 116performance improvements and removal of size limits with moderate changes
118to the on-disk format. It can span volumes up to 1 EB and with maximum file 117to the on-disk format. It can span volumes up to 1 EB and with maximum file
119size of 16 TB. Instead of the classic ext2/3 bitmap block allocation ext4 uses 118size of 16 TB. Instead of the classic ext2/3 bitmap block allocation ext4 uses
120<uri link="http://en.wikipedia.org/wiki/Extent_%28file_systems%29">extents</uri>, 119<uri link="http://en.wikipedia.org/wiki/Extent_%28file_systems%29">extents</uri>,
121which improve large file performance and reduce fragmentation. Ext4 also provides 120which improve large file performance and reduce fragmentation. Ext4 also provides
122more sophisticated block allocation algorithms (delayed allocation and multiblock 121more sophisticated block allocation algorithms (delayed allocation and multiblock
123allocation) giving the filesystem driver more ways to optimise the layout of data 122allocation) giving the filesystem driver more ways to optimise the layout of data
124on the disk. The ext4 filesystem is a compromise between production-grade code 123on the disk. The ext4 filesystem is a compromise between production-grade code
125stability and the desire to introduce extensions to an almost decade old 124stability and the desire to introduce extensions to an almost decade old
126filesystem. 125filesystem. Ext4 is the recommended all-purpose all-platform filesystem.
127</p> 126</p>
128 127
129</body> 128</body>
130<body test="not(func:keyval('arch')='SPARC')"> 129<body test="not(func:keyval('arch')='SPARC')">
131 130
132<p test="not(func:keyval('arch')='PPC')"> 131<p test="not(func:keyval('arch')='PPC')">
133<b>JFS</b> is IBM's high-performance journaling filesystem. JFS is a light, 132<b>JFS</b> is IBM's high-performance journaling filesystem. JFS is a light,
134fast and reliable B+tree-based filesystem with good performance in various 133fast and reliable B+tree-based filesystem with good performance in various
135conditions. 134conditions.
136</p> 135</p>
137 136
138<p> 137<p>
139<b>ReiserFS</b> is a B+tree-based journaled filesystem that has good overall 138<b>ReiserFS</b> is a B+tree-based journaled filesystem that has good overall
140performance, especially when dealing with many tiny files at the cost of more 139performance, especially when dealing with many tiny files at the cost of more
141CPU cycles. ReiserFS appears to be less maintained than other filesystems. 140CPU cycles. ReiserFS appears to be less maintained than other filesystems.

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

  ViewVC Help
Powered by ViewVC 1.1.13