Została mi rzucona rękawica!
Test został powtórzony, tym będę kompilował najnowszy kernel 2.6.26, czyli aktualne gentoo-sources z moim plikiem konfiguracyjnym.
No to wykonujemy te same operacje co poprzednio.
PuddleFrog / # dd if=/dev/zero of=poligon bs=1MB count=1024
1024+0 przeczytanych recordów
1024+0 zapisanych recordów
skopiowane 1024000000 bajtów (1,0 GB), 52,3484 s, 19,6 MB/s
PuddleFrog / # losetup /dev/loop1 poligon
PuddleFrog / # mkfs.reiserfs /dev/loop1
mkfs.reiserfs 3.6.19 (2003 www.namesys.com)
A pair of credits:
Jeremy Fitzhardinge wrote the teahash.c code for V3. Colin Plumb also
contributed to that.
The Defense Advanced Research Projects Agency (DARPA, www.darpa.mil) is the
primary sponsor of Reiser4. DARPA does not endorse this project; it merely
sponsors it.
Guessing about desired format.. Kernel 2.6.26-gentoo is running.
Format 3.6 with standard journal
Count of blocks on the device: 250000
Number of blocks consumed by mkreiserfs formatting process: 8219
Blocksize: 4096
Hash function used to sort names: “r5″
Journal Size 8193 blocks (first block 18)
Journal Max transaction length 1024
inode generation number: 0
UUID: 4c034a21-f58d-4b88-b93c-2456ada3cae5
ATTENTION: YOU SHOULD REBOOT AFTER FDISK!
ALL DATA WILL BE LOST ON ‘/dev/loop1′!
Continue (y/n):y
Initializing journal – 0%….20%….40%….60%….80%….100%
Syncing..ok
Tell your friends to use a kernel based on 2.4.18 or later, and especially not a
kernel based on 2.4.9, when you use reiserFS. Have fun.
ReiserFS is successfully created on /dev/loop1.
PuddleFrog / # mount /dev/loop1 /mnt/2/ -o noatime
PuddleFrog / # cd /mnt/2/
PuddleFrog 2 # mkdir linux
PuddleFrog 2 # cd linux/
I kopiujemy źródła testowe.
PuddleFrog linux # time rsync -a –progress /usr/src/poligon/ ./
real 0m31.896s
user 0m3.848s
sys 0m9.109s
Niech rozpocznie się kompilacja!
PuddleFrog linux # time make all
real 11m23.384s
user 9m31.488s
sys 1m21.317s
Niezbyt przerażający czas.
Teraz to samo, tylko że z opcją notail
PuddleFrog linux # cd /
PuddleFrog / # umount /dev/loop1
PuddleFrog / # mkfs.reiserfs /dev/loop1
mkfs.reiserfs 3.6.19 (2003 www.namesys.com)
A pair of credits:
Jeremy Fitzhardinge wrote the teahash.c code for V3. Colin Plumb also
contributed to that.
Lycos Europe (www.lycos-europe.com) had a support contract with us that
consistently came in just when we would otherwise have missed payroll, and that
they kept doubling every year. Much thanks to them.
Guessing about desired format.. Kernel 2.6.26-gentoo is running.
Format 3.6 with standard journal
Count of blocks on the device: 250000
Number of blocks consumed by mkreiserfs formatting process: 8219
Blocksize: 4096
Hash function used to sort names: “r5″
Journal Size 8193 blocks (first block 18)
Journal Max transaction length 1024
inode generation number: 0
UUID: 0b557a9e-15a8-423c-a8af-4c547088b9fc
ATTENTION: YOU SHOULD REBOOT AFTER FDISK!
ALL DATA WILL BE LOST ON ‘/dev/loop1′!
Continue (y/n):y
Initializing journal – 0%….20%….40%….60%….80%….100%
Syncing..ok
Tell your friends to use a kernel based on 2.4.18 or later, and especially not a
kernel based on 2.4.9, when you use reiserFS. Have fun.
ReiserFS is successfully created on /dev/loop1.
PuddleFrog / # mount /dev/loop1 /mnt/2/ -o noatime,notail
PuddleFrog / # cd /mnt/2/
PuddleFrog 2 # mkdir linux
PuddleFrog 2 # cd linux/
Kopiowanie źródeł.
PuddleFrog linux # time rsync -a –progress /usr/src/poligon/ ./
real 0m35.273s
user 0m3.832s
sys 0m9.297s
Czas kopiowania dłuższy o 4 sekundy. No to kompilujemy.
PuddleFrog linux # time make all
real 11m20.217s
user 9m29.816s
sys 1m22.133s
jak widać istnieje różnica trzech sekund.
w sumie kompilacja trwała 680 sekund.
te 3 sekundy to mniej niż 0.5 %
podczas testu na komputerze był tworzony ten tekst, więc uznaję błąd pomiarowy za 1 procent. Mimo iż kompilacja przebiegła szybciej, to podobny czas zajęło kopiowanie źródeł, są to jednak różnice na tyle bagatelne, że na czytanie tych testów zużyłeś więcej czasu niż kiedykolwiek zyskasz.
Podtrzymuję to co powiedziałem, w mojej opinii, dodanie opcji notail nie zwiększa wydajności, a ponieważ rzekome problemy z aplikacjami są mitem, nie widzę sensu jej użytkowania.
Panie MeMeK, co teraz?