FrontPage
何が速いか比較しようではないかってことでいろいろ調べようかなと。。~
#1つの環境で実測しているので、環境(CPU、memoryなど)により異なります。~
○例kernelごとの速度差について~
kernelごとの速度差というか、kernel-benchについてmblighさんが測定しているので、参考までにどうぞ~
http://ftp.kernel.org/pub/linux/kernel/people/mbli...
などなど~
fdiskで+10000M とやったので。。。~
※1 ファイルシステムの限界を表しています。
測定ツールはtoolにおいてます。~
~
※mkfbmtにて測定(20050920)(単位:ミリ秒)~
キャッシュによる高速化を除くため、事前にumount、mountを行ってから測定~
十分メモリに乗るくらいのファイルサイズで比較~
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~
何が速いか比較しようではないかってことでいろいろ調べようかなと。。~
#1つの環境で実測しているので、環境(CPU、memoryなど)により異なります。~
○例kernelごとの速度差について~
kernelごとの速度差というか、kernel-benchについてmblighさんが測定しているので、参考までにどうぞ~
http://ftp.kernel.org/pub/linux/kernel/people/mbli...
などなど~
CPU | Intel(R) Xeon(TM) | Itanium 2 | UltraSPARC-IIe |
ARCH | ia32 | ia64 | sparc |
cpu MHz | 3200.711 × 4 | 1300.002697 × 2 | 548 × 1 |
memory | 507884 kB | 8309152 kB | 262144 kB |
kernel | 2.6.5-7.97-smp | 2.6.9-5.0.5.EL.smp | Sun Solaris 10 4/05 |
HD | ST3400832AS (400GB) 7200 rpm | MAU3073NC 15000 rpm | ? |
fdiskで+10000M とやったので。。。~
File System | ext2 | ext3 | jfs | xfs | reiserfs(v3) | reiserfs(v4) | vfat(fat32) | ntfs | ufs | zfs |
Available | 9544596 | 9511788 | 10205336 | 10229488 | 10206840 | 10229984 | ||||
Used | 22488 | 55296 | 1380 | 272 | 32840 | 8 | ||||
inodes | 1281696 | 1281696 | 20410684 | 10240000 | 0(※1) | 0(※1) | 0(※1) |
※1 ファイルシステムの限界を表しています。
測定ツールはtoolにおいてます。~
~
※mkfbmtにて測定(20050920)(単位:ミリ秒)~
キャッシュによる高速化を除くため、事前にumount、mountを行ってから測定~
File System | ext2 | ext3 | jfs | xfs | reiserfs | reiser4 | vfat | ntfs | ufs | zfs |
1万create | 1774 | 4884 | 1179 | 4322 | 198 | 32680 | ||||
1万open | 19 | 18 | 20 | 20 | 18 | 23724 | ||||
1万utime | 15 | 20 | 16 | 18 | 31 | 13 | ||||
1万stat | 14 | 14 | 13 | 13 | 13 | 13 | ||||
1万unlink | 39 | 53 | 1104 | 3798 | 28 | 1895 | ||||
1 create | 0.177 | 0.488 | 0.118 | 0.432 | 0.020 | 3.268 | ||||
1 open | 0.002 | 0.002 | 0.002 | 0.002 | 0.002 | 2.372 | ||||
1 utime | 0.002 | 0.002 | 0.002 | 0.002 | 0.003 | 0.001 | ||||
1 stat | 0.001 | 0.001 | 0.001 | 0.001 | 0.001 | 0.001 | ||||
1 unlink | 0.004 | 0.005 | 0.110 | 0.380 | 0.003 | 0.190 |
十分メモリに乗るくらいのファイルサイズで比較~
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~
File System | ext2 | ext3 | jfs | xfs | reiserfs(v3) | reiserfs(v4) | vfat | ntfs | ufs | zfs |
1Kbyte | 441.4 | 442.9 | 442.1 | 365.2 | 441.5 | 459.8 | ||||
2Kbyte | 787.7 | 746.9 | 788.3 | 658.9 | 777.9 | 802.5 | ||||
4Kbyte | 1410.5 | 1367.2 | 1454.5 | 1194.9 | 1406.6 | 1444.3 | ||||
8Kbyte | 2178.7 | 2124.5 | 2251.0 | 1954.2 | 2228.3 | 2188.0 | ||||
16Kbyte | 3020.6 | 2951.0 | 3115.1 | 2782.6 | 3065.7 | 3029.6 | ||||
32Kbyte | 3593.0 | 3518.9 | 3737.1 | 3447.8 | 3613.9 | 3580.4 | ||||
64Kbyte | 3893.5 | 3820.9 | 4039.1 | 3835.2 | 3887.6 | 3893.5 | ||||
128Kbyte | 3893.5 | 3792.6 | 4002.7 | 3893.5 | 3840.4 | 3878.8 | ||||
256Kbyte | 4129.0 | 3878.8 | 4163.6 | 4015.7 | 3985.2 | 3969.0 | ||||
512Kbyte | 4249.0 | 3923.4 | 4277.2 | 4047.4 | 4029.2 | 3953.7 | ||||
1Mbyte | 4079.7 | 3220.1 | 3564.3 | 2900.8 | 3409.4 | 3292.6 | ||||
2Mbyte | 1646.3 | 1670.5 | 1680.3 | 1607.5 | 1595.2 | 1592.5 | ||||
4Mbyte | 1488.4 | 1452.5 | 1554.1 | 1464.9 | 1465.3 | 1454.5 | ||||
8Mbyte | 1490.5 | 1450.4 | 1492.8 | 1464.9 | 1461.8 | 1446.3 | ||||
16Mbyte | 1492.7 | 1448.4 | 1500.3 | 1462.9 | 1454.6 | 1448.4 | ||||
32Mbyte | 1486.2 | 1440.2 | 1464.4 | 1450.4 | 1468.2 | 1450.4 | ||||
64Mbyte | 1464.9 | 1424.2 | 1466.3 | 1446.3 | 1436.7 | 1442.3 | ||||
128Mbyte | 1426.2 | 1404.7 | 1423.0 | 1420.2 | 1408.9 | 1410.5 | ||||
256Mbyte | 1345.6 | 1336.8 | 1339.5 | 1347.4 | 1326.8 | 1335.1 | ||||
512Mbyte | 1226.3 | 1219.0 | 1216.3 | 1223.4 | 1205.5 | 1209.0 | ||||
1Gbyte | 1027.1 | 1027.1 | 1016.9 | 1027.1 | 1012.9 | 1011.9 |
File System | ext2 | ext3 | jfs | xfs | reiserfs(v3) | reiserfs(v4) | vfat | ntfs | ufs | zfs |
1Kbyte | 253.7 | 117.7 | 164.6 | 211.0 | 213.7 | 141.8 | ||||
2Kbyte | 366.1 | 172.7 | 164.6 | 322.4 | 341.0 | 193.2 | ||||
4Kbyte | 512.5 | 236.4 | 166.3 | 464.2 | 474.1 | 236.7 | ||||
8Kbyte | 634.1 | 281.6 | 384.3 | 599.2 | 590.0 | 265.4 | ||||
16Kbyte | 728.3 | 312.9 | 724.3 | 711.1 | 725.6 | 284.5 | ||||
32Kbyte | 762.5 | 319.0 | 761.0 | 759.6 | 724.5 | 289.8 | ||||
64Kbyte | 831.8 | 331.9 | 774.5 | 833.9 | 735.1 | 300.4 | ||||
128Kbyte | 854.0 | 336.8 | 761.0 | 859.1 | 730.6 | 302.9 | ||||
256Kbyte | 863.4 | 338.7 | 767.8 | 879.7 | 740.1 | 304.1 | ||||
512Kbyte | 869.3 | 336.8 | 772.8 | 887.3 | 738.8 | 305.3 | ||||
1Mbyte | 873.0 | 336.1 | 772.3 | 891.2 | 736.9 | 305.8 | ||||
2Mbyte | 873.0 | 339.6 | 768.4 | 891.2 | 737.4 | 306.2 | ||||
4Mbyte | 872.2 | 336.0 | 773.4 | 892.0 | 742.1 | 306.5 | ||||
8Mbyte | 873.7 | 340.2 | 772.2 | 892.0 | 728.1 | 306.4 | ||||
16Mbyte | 876.7 | 340.3 | 770.6 | 894.3 | 741.6 | 306.3 | ||||
32Mbyte | 877.5 | 340.1 | 772.5 | 895.1 | 741.1 | 307.0 | ||||
64Mbyte | 878.2 | 338.4 | 768.8 | 900.6 | 739.8 | 307.2 | ||||
128Mbyte | 876.0 | 339.6 | 775.7 | 901.4 | 742.0 | 306.5 | ||||
256Mbyte | 877.5 | 338.7 | 774.2 | 901.4 | 745.0 | 306.6 | ||||
512Mbyte | 877.5 | 338.5 | 776.6 | 899.8 | 742.9 | 306.7 | ||||
1Gbyte | 878.2 | 388.1 | 801.6 | 902.2 | 745.8 | 306.6 |
File System | ext2 | ext3 | jfs | xfs | reiserfs(v3) | reiserfs(v4) | vfat | ntfs | ufs | zfs |
1Kbyte | 52.7 | 43.7 | 50.7 | 50.6 | 47.7 | 43.6 | ||||
2Kbyte | 55.3 | 44.2 | 54.6 | 54.4 | 50.9 | 46.3 | ||||
4Kbyte | 57.3 | 47.7 | 56.3 | 56.8 | 51.9 | 46.3 | ||||
8Kbyte | 58.6 | 48.5 | 62.1 | 58.0 | 59.9 | 51.6 | ||||
16Kbyte | 59.0 | 49.4 | 62.3 | 58.7 | 64.2 | 52.0 | ||||
32Kbyte | 59.1 | 49.3 | 59.3 | 59.1 | 66.3 | 50.7 | ||||
64Kbyte | 59.3 | 50.1 | 59.9 | 59.2 | 67.9 | 49.9 | ||||
128Kbyte | 59.4 | 50.0 | 61.3 | 59.4 | 68.9 | 49.5 | ||||
256Kbyte | 59.4 | 49.8 | 61.3 | 59.3 | 68.7 | 49.6 | ||||
512Kbyte | 59.2 | 49.3 | 61.1 | 59.6 | 67.5 | 52.6 | ||||
1Mbyte | 59.2 | 49.5 | 61.4 | 59.6 | 66.2 | 51.0 | ||||
2Mbyte | 58.9 | 49.8 | 61.3 | 59.6 | 65.7 | 49.9 | ||||
4Mbyte | 59.0 | 49.9 | 61.8 | 59.6 | 65.7 | 49.3 | ||||
8Mbyte | 59.3 | 50.0 | 62.4 | 59.6 | 65.6 | 50.8 | ||||
16Mbyte | 59.5 | 50.2 | 62.8 | 59.6 | 66.9 | 52.4 | ||||
32Mbyte | 59.4 | 50.0 | 63.2 | 59.6 | 66.2 | 50.8 | ||||
64Mbyte | 59.3 | 49.8 | 64.1 | 59.7 | 66.6 | 49.5 | ||||
128Mbyte | 59.4 | 49.9 | 64.8 | 59.7 | 66.9 | 48.7 | ||||
256Mbyte | 59.3 | 50.0 | 62.8 | 59.7 | 66.2 | 52.4 | ||||
512Mbyte | 59.5 | 49.7 | 63.2 | 59.7 | 66.1 | 51.9 | ||||
1Gbyte | 59.5 | 49.4 | 62.4 | 59.7 | 66.8 | 50.6 |
コメントをかく