Gentoo Archives: gentoo-user-de

From: Cyrill Helg <helgc@×××××××.ch>
To: gentoo-user-de@l.g.o
Subject: Re: [gentoo-user-de] optimale Blockgröße für Dateisysteme berechnen
Date: Sun, 06 Aug 2006 10:47:20
Message-Id: 200608061245.47880.helgc@ee.ethz.ch
In Reply to: [gentoo-user-de] optimale Blockgröße für Dateisysteme berechnen by Andreas Baier
1 Hallo
2
3 Aus der Manpage:
4
5 -b block-size
6 Specify the size of blocks in bytes. Valid block size vales are 1024, 2048
7 and 4096 bytes per block. If omitted, mke2fs block-size is
8 heuristically determined by the file system size and the expected usage of
9 the filesystem (see the -T option). If block-size is nega-tive, then mke2fs
10 will use heuristics to determine the appropriate block size, with the
11 constraint that the block size will be at least block-size bytes. This is
12 useful for certain hardware devices which require that the blocksize be a
13 multiple of 2k.
14
15 und die -T option sagt:
16
17 -T fs-type
18 Specify how the filesystem is going to be used, so that mke2fs can choose
19 optimal filesystem parameters for that use. The filesystem
20 types that are can be supported are defined in the configuration
21 file /etc/mke2fs.conf(5). The default configuration file contains
22 definitions for the filesystem types: small, floppy, news, largefile, and
23 largefile4.
24
25
26 cat /etc/mke2fs.conf
27 [defaults]
28 base_features = sparse_super,filetype,resize_inode,dir_index
29 blocksize = 4096
30 inode_ratio = 8192
31
32 [fs_types]
33 small = {
34 blocksize = 1024
35 inode_ratio = 4096
36 }
37 floppy = {
38 blocksize = 1024
39 }
40 news = {
41 inode_ratio = 4096
42 }
43 largefile = {
44 inode_ratio = 1048576
45 }
46 largefile4 = {
47 inode_ratio = 4194304
48 }
49
50 Das sollte dich also weiterbringen. Falls du dich interessiert was für ein
51 fs/blockgrösse usw. man bei portage verwenden sollte schau dir meinen Artikel
52 [1] an.
53
54 Viel Spass
55
56 Cyrill
57
58 [1]
59 http://people.ee.ethz.ch/~helgc/phlogspage/index.php?option=com_content&task=view&id=35&Itemid=40
60
61
62 Am Samstag, 5. August 2006 19:43 schrieb Andreas Baier:
63 > Hallo,
64 >
65 > Ich möchte einen Teil unserer Partitionen auf ein RAID 5 migrieren.
66 >
67 > Es sind 2 Partitionen um 300G mit Video/DV/Musik-Daten dabei und 10 mit
68 > anderen Daten (Arbeit, also hauptsächlich Text/Tabelle, Photos, Grafiken,
69 > Mail, Backup etc) alle zwischen 5-25G.
70 >
71 > Das Raid 5 besteht aus 4 320G Partition.
72 >
73 > Zwecks geringer Fragmentierung hatte ich mich momentan für ext3 + dir_index
74 > und journal_data auf LVM2 entschieden. Exportiert wird auf PC/Mac mittels
75 > NFS/Samba.
76 >
77 > Jetzt stellt sich die Frage, um ich durch eine optimale Blockgröße den
78 > Platten-Platz optimaler gestalten kann.
79 >
80 > Gibt es ein Tool, mit dem ich die existierenden Partitionen scannen kann,
81 > so dass ich eine optimale Plattennutzung erreiche?
82 > Habt Ihr da evtl. ein paar Tips für mich?
83 >
84 > MfG Andreas
85
86 --
87 gentoo-user-de@g.o mailing list