Linuxのファイルシステムを詳解します

FrontPage

ファイルシステム性能比較


何が速いか比較しようではないかってことでいろいろ調べようかなと。。~
#1つの環境で実測しているので、環境(CPU、memoryなど)により異なります。~

○例kernelごとの速度差について~
kernelごとの速度差というか、kernel-benchについてmblighさんが測定しているので、参考までにどうぞ~
http://ftp.kernel.org/pub/linux/kernel/people/mbli...
などなど~



測定環境

CPUIntel(R) Xeon(TM)Itanium 2UltraSPARC-IIe
ARCHia32ia64sparc
cpu MHz3200.711 × 41300.002697 × 2548 × 1
memory507884 kB8309152 kB262144 kB
kernel2.6.5-7.97-smp2.6.9-5.0.5.EL.smpSun Solaris 10 4/05
HDST3400832AS (400GB) 7200 rpmMAU3073NC 15000 rpm?

10Gをデフォルトでmkfsしたときの状態


fdiskで+10000M とやったので。。。~

File Systemext2ext3jfsxfsreiserfs(v3)reiserfs(v4)vfat(fat32)ntfsufszfs
Available95445969511788102053361022948810206840 10229984   
Used2248855296138027232840 8   
inodes1281696128169620410684102400000(※1)0(※1)0(※1)   

※1 ファイルシステムの限界を表しています。


1ディレクトリに10000ファイルを置くテスト


測定ツールはtoolにおいてます。~

~
※mkfbmtにて測定(20050920)(単位:ミリ秒)~
キャッシュによる高速化を除くため、事前にumount、mountを行ってから測定~
File Systemext2ext3jfsxfsreiserfsreiser4vfatntfsufszfs
1万create1774488411794322198 32680   
1万open1918202018 23724   
1万utime1520161831 13   
1万stat1414131313 13   
1万unlink39531104379828 1895   
1 create0.1770.4880.1180.4320.020 3.268   
1 open0.0020.0020.0020.0020.002 2.372   
1 utime0.0020.0020.0020.0020.003 0.001   
1 stat0.0010.0010.0010.0010.001 0.001   
1 unlink0.0040.0050.1100.3800.003 0.190   

I/O性能


十分メモリに乗るくらいのファイルサイズで比較~
1Gbyteのファイルに対しread,writeを行います。~
I/Oサイズごとに速度が異なることもあるので、参考になればと思います。~
ただしwriteはsync無しとsync有りの2通り~
今回はシェル+ddコマンドで仮の測定を行いました。測定方法は検討中(6/26)~
かなり予想と異なる結果なので、Bonnie等を検討中~

~
read測定~
time dd of=/dev/null if=testfile bs=1K count=1048576~
time dd of=/dev/null if=testfile bs=2K count=524288~
time dd of=/dev/null if=testfile bs=4K count=262144~
time dd of=/dev/null if=testfile bs=8K count=131072~
time dd of=/dev/null if=testfile bs=16K count=65536~
time dd of=/dev/null if=testfile bs=32K count=32768~
time dd of=/dev/null if=testfile bs=64K count=16384~
time dd of=/dev/null if=testfile bs=128K count=8192~
time dd of=/dev/null if=testfile bs=256K count=4096~
time dd of=/dev/null if=testfile bs=512K count=2048~
time dd of=/dev/null if=testfile bs=1M count=1024~
time dd of=/dev/null if=testfile bs=2M count=512~
time dd of=/dev/null if=testfile bs=4M count=256~
time dd of=/dev/null if=testfile bs=8M count=128~
time dd of=/dev/null if=testfile bs=16M count=64~
time dd of=/dev/null if=testfile bs=32M count=32~
time dd of=/dev/null if=testfile bs=64M count=16~
time dd of=/dev/null if=testfile bs=128M count=8~
time dd of=/dev/null if=testfile bs=256M count=4~
time dd of=/dev/null if=testfile bs=512M count=2~
time dd of=/dev/null if=testfile bs=1024M count=1~
~
write~
time dd if=/dev/zero of=testfile bs=1K count=1048576 && time sync~
time dd if=/dev/zero of=testfile bs=2K count=524288 && time sync~
time dd if=/dev/zero of=testfile bs=4K count=262144 && time sync~
time dd if=/dev/zero of=testfile bs=8K count=131072 && time sync~
time dd if=/dev/zero of=testfile bs=16K count=65536 && time sync~
time dd if=/dev/zero of=testfile bs=32K count=32768 && time sync~
time dd if=/dev/zero of=testfile bs=64K count=16384 && time sync~
time dd if=/dev/zero of=testfile bs=128K count=8192 && time sync~
time dd if=/dev/zero of=testfile bs=256K count=4096 && time sync~
time dd if=/dev/zero of=testfile bs=512K count=2048 && time sync~
time dd if=/dev/zero of=testfile bs=1M count=1024 && time sync~
time dd if=/dev/zero of=testfile bs=2M count=512 && time sync~
time dd if=/dev/zero of=testfile bs=4M count=256 && time sync~
time dd if=/dev/zero of=testfile bs=8M count=128 && time sync~
time dd if=/dev/zero of=testfile bs=16M count=64 && time sync~
time dd if=/dev/zero of=testfile bs=32M count=32 && time sync~
time dd if=/dev/zero of=testfile bs=64M count=16 && time sync~
time dd if=/dev/zero of=testfile bs=128M count=8 && time sync~
time dd if=/dev/zero of=testfile bs=256M count=4 && time sync~
time dd if=/dev/zero of=testfile bs=512M count=2 && time sync~
time dd if=/dev/zero of=testfile bs=1024M count=1 && time sync~
READ性能(単位はMB/s)
File Systemext2ext3jfsxfsreiserfs(v3)reiserfs(v4)vfatntfsufszfs
1Kbyte441.4442.9442.1365.2441.5 459.8   
2Kbyte787.7746.9788.3658.9777.9 802.5   
4Kbyte1410.51367.21454.51194.91406.6 1444.3   
8Kbyte2178.72124.52251.01954.22228.3 2188.0   
16Kbyte3020.62951.03115.12782.63065.7 3029.6   
32Kbyte3593.03518.93737.13447.83613.9 3580.4   
64Kbyte3893.53820.94039.13835.23887.6 3893.5   
128Kbyte3893.53792.64002.73893.53840.4 3878.8   
256Kbyte4129.03878.84163.64015.73985.2 3969.0   
512Kbyte4249.03923.44277.24047.44029.2 3953.7   
1Mbyte4079.73220.13564.32900.83409.4 3292.6   
2Mbyte1646.31670.51680.31607.51595.2 1592.5   
4Mbyte1488.41452.51554.11464.91465.3 1454.5   
8Mbyte1490.51450.41492.81464.91461.8 1446.3   
16Mbyte1492.71448.41500.31462.91454.6 1448.4   
32Mbyte1486.21440.21464.41450.41468.2 1450.4   
64Mbyte1464.91424.21466.31446.31436.7 1442.3   
128Mbyte1426.21404.71423.01420.21408.9 1410.5   
256Mbyte1345.61336.81339.51347.41326.8 1335.1   
512Mbyte1226.31219.01216.31223.41205.5 1209.0   
1Gbyte1027.11027.11016.91027.11012.9 1011.9   
WRITE性能(async)(単位はMB/s)
File Systemext2ext3jfsxfsreiserfs(v3)reiserfs(v4)vfatntfsufszfs
1Kbyte253.7117.7164.6211.0213.7 141.8   
2Kbyte366.1172.7164.6322.4341.0 193.2   
4Kbyte512.5236.4166.3464.2474.1 236.7   
8Kbyte634.1281.6384.3599.2590.0 265.4   
16Kbyte728.3312.9724.3711.1725.6 284.5   
32Kbyte762.5319.0761.0759.6724.5 289.8   
64Kbyte831.8331.9774.5833.9735.1 300.4   
128Kbyte854.0336.8761.0859.1730.6 302.9   
256Kbyte863.4338.7767.8879.7740.1 304.1   
512Kbyte869.3336.8772.8887.3738.8 305.3   
1Mbyte873.0336.1772.3891.2736.9 305.8   
2Mbyte873.0339.6768.4891.2737.4 306.2   
4Mbyte872.2336.0773.4892.0742.1 306.5   
8Mbyte873.7340.2772.2892.0728.1 306.4   
16Mbyte876.7340.3770.6894.3741.6 306.3   
32Mbyte877.5340.1772.5895.1741.1 307.0   
64Mbyte878.2338.4768.8900.6739.8 307.2   
128Mbyte876.0339.6775.7901.4742.0 306.5   
256Mbyte877.5338.7774.2901.4745.0 306.6   
512Mbyte877.5338.5776.6899.8742.9 306.7   
1Gbyte878.2388.1801.6902.2745.8 306.6   
WRITE性能(sync)(単位はMB/s)

File Systemext2ext3jfsxfsreiserfs(v3)reiserfs(v4)vfatntfsufszfs
1Kbyte52.743.750.750.647.7 43.6   
2Kbyte55.344.254.654.450.9 46.3   
4Kbyte57.347.756.356.851.9 46.3   
8Kbyte58.648.562.158.059.9 51.6   
16Kbyte59.049.462.358.764.2 52.0   
32Kbyte59.149.359.359.166.3 50.7   
64Kbyte59.350.159.959.267.9 49.9   
128Kbyte59.450.061.359.468.9 49.5   
256Kbyte59.449.861.359.368.7 49.6   
512Kbyte59.249.361.159.667.5 52.6   
1Mbyte59.249.561.459.666.2 51.0   
2Mbyte58.949.861.359.665.7 49.9   
4Mbyte59.049.961.859.665.7 49.3   
8Mbyte59.350.062.459.665.6 50.8   
16Mbyte59.550.262.859.666.9 52.4   
32Mbyte59.450.063.259.666.2 50.8   
64Mbyte59.349.864.159.766.6 49.5   
128Mbyte59.449.964.859.766.9 48.7   
256Mbyte59.350.062.859.766.2 52.4   
512Mbyte59.549.763.259.766.1 51.9   
1Gbyte59.549.462.459.766.8 50.6   

コメントをかく


「http://」を含む投稿は禁止されています。

利用規約をご確認のうえご記入下さい

関連ソフト/文書

Firefox3 Meter  Use OpenOffice.org

管理人/副管理人のみ編集できます