Optimiser un filesystem ext3

09.07.2008 0

Voici quelques paramètres que l’on peut optimiser sur un filesystem ext3

livecd ~ # tune2fs -O has_journal -o journal_data_writeback /dev/md1
tune2fs 1.40.8 (13-Mar-2008)

livecd ~ # tune2fs -O dir_index /dev/md1
tune2fs 1.40.8 (13-Mar-2008)

livecd ~ # e2fsck -D -f /dev/md1
e2fsck 1.40.8 (13-Mar-2008)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 3A: Optimizing directories
Pass 4: Checking reference counts
Pass 5: Checking group summary information

/dev/md1: ***** FILE SYSTEM WAS MODIFIED *****
/dev/md1: 11/12214272 files (9.1% non-contiguous), 814557/48833536 blocks

livecd ~ # tune2fs -l /dev/md1
tune2fs 1.40.8 (13-Mar-2008)
Filesystem volume name:
Last mounted on:
Filesystem UUID: 92eff78c-4a42-418b-9c5b-1f945c6369af
Filesystem magic number: 0xEF53
Filesystem revision #: 1 (dynamic)
Filesystem features: has_journal ext_attr resize_inode dir_index filetype sparse_super large_file
Filesystem flags: signed_directory_hash
Default mount options: journal_data_writeback
Filesystem state: clean
Errors behavior: Continue
Filesystem OS type: Linux
Inode count: 12214272
Block count: 48833536
Reserved block count: 2441676
Free blocks: 48018979
Free inodes: 12214261
First block: 0
Block size: 4096
Fragment size: 4096
Reserved GDT blocks: 1012
Blocks per group: 32768
Fragments per group: 32768
Inodes per group: 8192
Inode blocks per group: 512
Filesystem created: Wed Jul 9 14:03:13 2008
Last mount time: n/a
Last write time: Wed Jul 9 14:06:14 2008
Mount count: 0
Maximum mount count: 33
Last checked: Wed Jul 9 14:06:14 2008
Check interval: 15552000 (6 months)
Next check after: Mon Jan 5 14:06:14 2009
Reserved blocks uid: 0 (user root)
Reserved blocks gid: 0 (group root)
First inode: 11
Inode size: 256
Journal inode: 8
Default directory hash: tea
Directory Hash Seed: 66d49bfa-58ee-4bcb-81e0-adf8003418ec
Journal backup: inode blocks

Ainsi que retirer dans /etc/fstab les access-time pour les fichiers et les répertoires

Références:
http://en.opensuse.org/Speeding_up_Ext3
http://www.ubuntugeek.com/how-to-increase-ext3-and-reiserfs-filesystems-performance.html


 Olivier PIERRE, freelance au Luxembourg Analyste développeur PHP/MySQL/jQuery et administrateur système Linux spécialiste Gentoo


Les messages similaires