Маленькие файлы
Файловая система создавалась следующим образом:
- Код: Выделить всё
# mkfs.ext4 -O uninit_groups,flex_bg,large_file,dir_index -E stride=4,stripe-width=24 -N 19660800 -G 512 /dev/tw_raid/test
ext4-1 (readahead 96 Кбайт):
- Код: Выделить всё
# bonnie++ -d /mnt/test -s 0 -u root -n 100:356663:14860:30 -Z /dev/urandom
------Sequential Create------ --------Random Create--------
-Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
/sec %CP /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP
6623 62 2198 8 15271 80 6251 64 6591 20 16032 73
630ms 67466us 12540us 636ms 170ms 7404us
ext4-2 (readahead 128 Кбайт):
- Код: Выделить всё
# bonnie++ -d /mnt/test -s 0 -u root -n 100:356663:14860:30 -Z /dev/urandom
------Sequential Create------ --------Random Create--------
-Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
/sec %CP /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP
6449 63 2539 8 15839 84 6005 62 6463 21 15326 70
607ms 59656us 8943us 403ms 120ms 20101us
ext4-3 (readahead 8 Мбайт):
- Код: Выделить всё
# bonnie++ -d /mnt/test -s 0 -u root -n 100:356663:14860:30 -Z /dev/urandom
------Sequential Create------ --------Random Create--------
-Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
/sec %CP /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP
5982 57 3325 10 15682 82 3151 29 3623 17 8006 36
699ms 57713us 19350us 394ms 60495us 14739us
Очень маленькие файлы
Файловая система создавалась следующим образом:
- Код: Выделить всё
# mkfs.ext4 -I 128 -O uninit_groups,flex_bg,dir_index -E stride=4,stripe-width=24 -N 19660800 -G 512 /dev/tw_raid/test
ext4-1 (readahead 4 Кбайт):
- Код: Выделить всё
# bonnie++ -d /mnt/test/ -s 0 -u root -n 800:2048:200:100 -Z /dev/urandom
------Sequential Create------ --------Random Create--------
-Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
/sec %CP /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP
12537 78 1836 7 18333 82 14388 89 4424 16 21182 88
502ms 161ms 507ms 521ms 174ms 407ms
ext4-2 (readahead 96 Кбайт):
- Код: Выделить всё
# bonnie++ -d /mnt/test/ -s 0 -u root -n 800:2048:200:100 -Z /dev/urandom
------Sequential Create------ --------Random Create--------
-Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
/sec %CP /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP
12491 81 1857 6 19152 84 14710 91 4569 16 20467 85
661ms 172ms 361ms 273ms 147ms 520ms
ext4-3 (readahead 128 Кбайт):
- Код: Выделить всё
# bonnie++ -d /mnt/test/ -s 0 -u root -n 800:2048:200:100 -Z /dev/urandom
------Sequential Create------ --------Random Create--------
-Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
/sec %CP /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP
14524 92 1849 7 19769 88 14063 87 4384 15 19672 81
230ms 174ms 191ms 354ms 133ms 483ms
Файлы больше среднего
Файловая система создавалась следующим образом:
- Код: Выделить всё
# mkfs.ext4 -O uninit_groups,flex_bg,large_file,dir_index -E stride=4,stripe-width=24 -N 19660800 -G 512 /dev/tw_raid/xfs_test
ext4-1 (readahead 96 Кбайт):
- Код: Выделить всё
# bonnie++ -d /mnt/test/ -s 16384 -n 0 -u root -Z /dev/urandom
------Sequential Output------ --Sequential Input- --Random-
-Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--
K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP /sec %CP
257 99 177994 65 38306 14 1134 94 282348 54 3511 97
45379us 577ms 597ms 60070us 66602us 30725us
ext4-2 (readahead 128 Кбайт):
- Код: Выделить всё
# bonnie++ -d /mnt/test/ -s 16384 -n 0 -u root -Z /dev/urandom
------Sequential Output------ --Sequential Input- --Random-
-Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--
K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP /sec %CP
263 99 147140 52 39641 14 1032 99 304949 56 3785 106
35289us 414ms 2221ms 17617us 72387us 23769us
ext4-3 (readahead 8 Мбайт):
- Код: Выделить всё
# bonnie++ -d /mnt/test/ -s 16384 -n 0 -u root -Z /dev/urandom
------Sequential Output------ --Sequential Input- --Random-
-Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--
K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP /sec %CP
251 99 163932 57 66552 25 1059 97 342372 63 +++++ +++
47377us 405ms 605ms 45741us 174ms 23865us
Файловая система монтировалась во всех случаях следующим образом:
- Код: Выделить всё
# mount -t ext4 -o rw,nosuid,nodev,noatime,nodiratime,data=writeback,journal_async_commit,commit=10 /dev/tw_raid/test /mnt/test
P.S. Ядро Linux версии 2.6.28.















