Benchmark using mongo2 (http://www.namesys.com/) Hardware: Duron 700 mhz, Ram 128 MB, ATA66 IDE drive 20 GB Software: Slackware 8.0, kernels are stock 2.4.14 + patch ext3-2.4-0.9.15-2414 and stock 2.2.19 + patch ext3-0.0.07a e2fsprogs 1.25, mkreiserfs 3.x.0j ext3 bultin and reiserfs-3.6 (only for 2.4.14) in module xfs: 2.4.16 + patch xfs-2.4.16-all-i386 jfs: 2.4.16 + patch jfs-1.0.10 Configuration: the test partition is /dev/hda10, 3.6 GB. hdparm -d1 -c1 -m8 -u1 /dev/hda ext3, jo : mke2fs -j -i 4096 mount -o data=journal ext3, od : mke2fs -j -i 4096 mount ext3, wb : mke2fs -j -i 4096 mount -o data=writeback reisersfs: mkreiserfs mount -t reiserfs xfs : mkfs.xfs -l size=8192b mount jfs : mkfs.jfs -s 32 mount -t jfs ext2 : mke2fs -i 4096 mount Block size is 4 KB for all filesystems. Journal size is 32 MB for all journaled filesystems. The defaults value are 32 MB for ext3 and reiserfs, 4800 KB for xfs, and around 14 MB (0.4% of the total space) for jfs. Increasing log size to 32 MB for xfs increases its performance. During the bench, nothing else is running except syslogd, klogd, inetd, atd and the kernel :). The test partition is umounted and reformatted between each test. How to read the results: files = number of files created base_siez = median size of the files, dirs = numbers of directories created (subtract 1 for reiserfs, jfs) Create time, copy time,... etc are times in seconds. Lower is better. MONGO_SINGLE_PROCESS = one instance of the bench MONGO_MULTI_PROCESS (2 processes) = two simultaneous instances of the bench %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% MONGO_SINGLE_PROCESS BENCHMARK RESULTS (time in sec.) Parameters: files=403770, base_size=100 bytes, dirs=746 |-------------------------------------------------------------- | Create Copy Slink Read Stats Rename Delete | time time time time time time time ---------------|-------------------------------------------------------------- ext3/2.2.19, od| 418.34 616.88 1041.3 2119 1634.48 1509.08 212.61 ---------------|-------------------------------------------------------------- ext3/2.2.19, wb| 378.19 615.28 951.43 2108.77 1610.83 1437.93 194.02 ---------------|-------------------------------------------------------------- ext3/2.4.14, jo| 530.49 678.61 890.51 742.43 152.78 1142.88 176.88 ---------------|-------------------------------------------------------------- ext3/2.4.14, od| 484.4 527.26 888.35 723.06 153.25 1143.85 173.33 ---------------|-------------------------------------------------------------- ext3/2.4.14, wb| 388.18 661.32 890.63 725.4 151.98 1168.44 176.77 ---------------|-------------------------------------------------------------- reiserfs/2.4.14| 50.38 152.84 111.41 607.87 219.86 89.43 96.33 ---------------|-------------------------------------------------------------- xfs/2.4.16 | 266.55 555.66 234.79 1050.91 479.3 224 468.83 ---------------|-------------------------------------------------------------- jfs/2.4.16 | 674.36 624.18 204.17 1281.9 407.27 285.44 414.76 ---------------|-------------------------------------------------------------- ext2/2.4.14 | 239.68 392.58 582.5 694.53 150.46 508.32 130.27 ---------------|-------------------------------------------------------------- ext3/2.4.17, wb| 427.25 534.54 910.51 750.19 158.74 1043.37 178.29 ---------------|-------------------------------------------------------------- reiserfs/2.4.17| 51 148.92 108.97 583.01 212.37 81.96 106.35 ---------------|-------------------------------------------------------------- reiserfs/2.4.16| 52.65 150.27 112.79 582.5 205.56 81.67 98.21 ---------------|-------------------------------------------------------------- ext3-wb /2.4.16| 367.56 573.29 910.97 746.08 150.19 1074.56 177.86 ---------------|-------------------------------------------------------------- ext3-od /2.4.16| 430.69 538.3 1008.74 747.87 148.72 1085.47 178.31 ---------------|-------------------------------------------------------------- ext2/2.4.16 | 244.07 396.96 577.52 697.52 140.84 504.4 131.4 ---------------|-------------------------------------------------------------- Parameters: files=68532, base_size=1000 bytes, dirs=242 |-------------------------------------------------------------- | Create Copy Slink Read Stats Rename Delete | time time time time time time time ---------------|-------------------------------------------------------------- ext3/2.2.19, od| 34.02 76.98 23.78 201.8 26.83 13.99 11.87 ---------------|-------------------------------------------------------------- ext3/2.2.19, wb| 32.33 76.85 19.8 201 26.46 13.2 11.19 ---------------|-------------------------------------------------------------- ext3/2.4.14, jo| 54.83 89.72 17.13 230.69 6.66 10.7 11.09 ---------------|-------------------------------------------------------------- ext3/2.4.14, od| 34.99 73.03 16.66 230.96 6.65 12.13 10.55 ---------------|-------------------------------------------------------------- ext3/2.4.14, wb| 29.82 87.12 16.67 230.83 6.52 10.1 10.52 ---------------|-------------------------------------------------------------- reiserfs/2.4.14| 36.68 108.39 15.15 345.76 5.53 5.93 13.13 ---------------|-------------------------------------------------------------- xfs/2.4.16 | 49.27 111.35 32.39 263.58 71.58 36.38 59.98 ---------------|-------------------------------------------------------------- jfs/2.4.16 | 124.4 148.15 28.98 351.27 78.54 52.12 63.69 ---------------|-------------------------------------------------------------- ext2/2.4.14 | 21.2 67.84 11.96 176.31 2.41 4.56 8.36 ---------------|-------------------------------------------------------------- ext3/2.4.17, wb| 38.7 71.04 16.51 228.85 6.32 10.17 10.87 ---------------|-------------------------------------------------------------- reiserfs/2.4.17| 53.73 108.12 15.12 330.31 5.39 5.53 14.85 ---------------|-------------------------------------------------------------- reiserfs/2.4.16| 38.61 111.98 15.7 342.57 5.36 5.91 13.33 ---------------|-------------------------------------------------------------- ext3-wb /2.4.16| 28.59 84.55 18.14 229.39 6.23 11.14 10.71 ---------------|-------------------------------------------------------------- ext3-od /2.4.16| 33.93 67.31 17.51 229.61 6.23 11.05 10.47 ---------------|-------------------------------------------------------------- ext2/2.4.16 | 20.74 71.86 11.99 186.87 5.51 4.64 8.34 ---------------|-------------------------------------------------------------- Parameters: files=7584, base_size=10000 bytes, dirs=44 |-------------------------------------------------------------- | Create Copy Slink Read Stats Rename Delete | time time time time time time time ---------------|-------------------------------------------------------------- ext3/2.2.19, od| 20.74 42.09 1.43 104.08 0.51 0.75 5.57 ---------------|-------------------------------------------------------------- ext3/2.2.19, wb| 20.32 42.99 1.33 102.84 0.69 0.99 5.57 ---------------|-------------------------------------------------------------- ext3/2.4.14, jo| 34.83 54.51 1.58 109.58 0.86 0.86 5.62 ---------------|-------------------------------------------------------------- ext3/2.4.14, od| 18.83 42.47 1.39 110.17 0.87 0.83 5.55 ---------------|-------------------------------------------------------------- ext3/2.4.14, wb| 17.92 48.75 1.42 110.79 0.85 0.72 5.53 ---------------|-------------------------------------------------------------- reiserfs/2.4.14| 20 61.84 1.26 180.13 0.64 0.72 1.51 ---------------|-------------------------------------------------------------- xfs/2.4.16 | 15.39 37.99 2.06 106.32 0.87 1.88 5.39 ---------------|-------------------------------------------------------------- jfs/2.4.16 | 18.1 40.03 2.6 104.96 0.36 3.42 5.46 ---------------|-------------------------------------------------------------- ext2/2.4.14 | 14.01 40.65 1.11 100.76 0.18 0.68 5.51 ---------------|-------------------------------------------------------------- ext3/2.4.17, wb| 26.57 41.42 1.61 120.35 0.86 0.78 1.39 ---------------|-------------------------------------------------------------- reiserfs/2.4.17| 24.73 43.94 1.31 148.63 0.45 0.75 1.47 ---------------|-------------------------------------------------------------- reiserfs/2.4.16| 20.24 56.55 1.34 173.38 0.45 0.74 1.36 ---------------|-------------------------------------------------------------- ext3-wb /2.4.16| 17.61 49.76 1.54 120.24 0.81 0.78 1.44 ---------------|-------------------------------------------------------------- ext3-od /2.4.16| 19.13 41.1 1.59 120.44 0.82 0.78 1.33 ---------------|-------------------------------------------------------------- ext2/2.4.16 | 13.66 44.79 1.08 116.79 0.65 0.5 1.24 ---------------|-------------------------------------------------------------- Parameters: files=1398, base_size=100000 bytes, dirs=32 |-------------------------------------------------------------- | Create Copy Slink Read Stats Rename Delete | time time time time time time time ---------------|-------------------------------------------------------------- ext3/2.2.19, od| 17.43 40.73 0.36 106.48 0.25 0.45 3.27 ---------------|-------------------------------------------------------------- ext3/2.2.19, wb| 18.25 40.9 0.34 107.25 0.27 0.27 3.04 ---------------|-------------------------------------------------------------- ext3/2.4.14, jo| 35.92 53.73 0.37 103.9 0.42 0.24 3.7 ---------------|-------------------------------------------------------------- ext3/2.4.14, od| 17.57 40.46 0.35 104.03 0.43 0.26 3.79 ---------------|-------------------------------------------------------------- ext3/2.4.14, wb| 17.18 44.3 0.35 104.24 0.42 0.25 3.76 ---------------|-------------------------------------------------------------- reiserfs/2.4.14| 15.76 49.9 0.2 148.87 0.09 0.21 0.46 ---------------|-------------------------------------------------------------- xfs/2.4.16 | 13.98 32.74 0.34 101.47 0.36 0.28 1.07 ---------------|-------------------------------------------------------------- jfs/2.4.16 | 14.48 37.08 0.77 98.01 0.07 0.74 1.06 ---------------|-------------------------------------------------------------- ext2/2.4.14 | 13.86 40.71 0.28 102.57 0.03 0.32 3.66 ---------------|-------------------------------------------------------------- ext3/2.4.17, wb| 24.61 41.24 0.37 121.88 0.34 0.15 0.31 ---------------|-------------------------------------------------------------- reiserfs/2.4.17| 22.89 32.05 0.23 98.9 0.03 0.2 0.33 ---------------|-------------------------------------------------------------- reiserfs/2.4.16| 15.94 46.46 0.25 136.98 0.03 0.21 0.31 ---------------|-------------------------------------------------------------- ext3-wb /2.4.16| 16.87 47.93 0.38 121.53 0.34 0.2 0.29 ---------------|-------------------------------------------------------------- ext3-od /2.4.16| 19 37.44 0.38 121.48 0.34 0.18 0.31 ---------------|-------------------------------------------------------------- ext2/2.4.16 | 13.62 44.46 0.32 120.61 0.03 0.18 0.2 ---------------|-------------------------------------------------------------- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% MONGO_MULTI_PROCESS (2 processes) BENCHMARK RESULTS (time in sec.) Parameters: files=807540, base_size=100 bytes, dirs=1489 |-------------------------------------------------------------- | Create Copy Slink Read Stats Rename Delete | time time time time time time time ---------------|-------------------------------------------------------------- ext3/2.2.19, wb| 720.11 * ---------------|-------------------------------------------------------------- ext3/2.4.14, od| 950.36 * ---------------|-------------------------------------------------------------- ext3/2.4.14, wb| 785.47 * ---------------|-------------------------------------------------------------- reiserfs/2.4.14| 108.84 340.06 223.05 1705.35 567.57 192.29 257.97 ---------------|-------------------------------------------------------------- xfs/2.4.16 | 610.53 * ---------------|-------------------------------------------------------------- jfs/2.4.16 | 1358.99 * ---------------|-------------------------------------------------------------- ext2/2.4.14 | 485.39 * ---------------|-------------------------------------------------------------- * run out of spaces, so copy time, slink time ... are not accurate and hence not reported. Parameters: files=137064, base_size=1000 bytes, dirs=482 |-------------------------------------------------------------- | Create Copy Slink Read Stats Rename Delete | time time time time time time time ---------------|-------------------------------------------------------------- ext3/2.2.19, wb| 65.27 180.55 40.9 493.8 61.56 28.48 34.61 ---------------|-------------------------------------------------------------- ext3/2.4.14, od| 74.8 194.15 37.15 555.59 64.31 30.92 45.28 ---------------|-------------------------------------------------------------- ext3/2.4.14, wb| 65.86 217.38 39.02 580.93 64.04 26.46 44.53 ---------------|-------------------------------------------------------------- reiserfs/2.4.14| 85.4 267.79 31.82 1136.46 112.76 26.74 48.69 ---------------|-------------------------------------------------------------- xfs/2.4.16 | 117.3 308.6 84.59 645.13 174.56 81.11 265.34 ---------------|-------------------------------------------------------------- jfs/2.4.16 | 257.98 374.62 87.26 1121.92 198.15 130.1 371.75 ---------------|-------------------------------------------------------------- ext2/2.4.14 | 45.25 167.31 26.93 500.73 66.11 19.3 41.12 ---------------|-------------------------------------------------------------- Parameters: files=15168, base_size=10000 bytes, dirs=86 |-------------------------------------------------------------- | Create Copy Slink Read Stats Rename Delete | time time time time time time time ---------------|-------------------------------------------------------------- ext3/2.2.19, wb| 44.46 101.76 3.3 282.95 5.61 1.69 25.95 ---------------|-------------------------------------------------------------- ext3/2.4.14, od| 41.21 102.55 2.72 273.52 2.26 1.53 28.01 ---------------|-------------------------------------------------------------- ext3/2.4.14, wb| 39.91 122.29 2.74 271.71 2.07 1.39 27.36 ---------------|-------------------------------------------------------------- reiserfs/2.4.14| 44.59 151.07 2.53 518.28 1.7 1.18 4.38 ---------------|-------------------------------------------------------------- xfs/2.4.16 | 34.19 105.04 4.67 216.66 2.12 5.27 16.27 ---------------|-------------------------------------------------------------- jfs/2.4.16 | 39.37 143.06 5.38 420.12 2.19 11.2 30.9 ---------------|-------------------------------------------------------------- ext2/2.4.14 | 31.15 109.93 2.16 260.43 1.73 0.91 28.14 ---------------|-------------------------------------------------------------- Parameters: files=2796, base_size=100000 bytes, dirs=62 |-------------------------------------------------------------- | Create Copy Slink Read Stats Rename Delete | time time time time time time time ---------------|-------------------------------------------------------------- ext3/2.2.19, wb| 40.36 101.51 0.55 254.22 0.78 0.48 16.01 ---------------|-------------------------------------------------------------- ext3/2.4.14, od| 38.64 95.4 0.56 263.68 1.05 0.26 19.16 ---------------|-------------------------------------------------------------- ext3/2.4.14, wb| 38.66 119.04 0.58 257.83 1.08 0.41 18.96 ---------------|-------------------------------------------------------------- reiserfs/2.4.14| 35.12 131.76 0.5 466.59 0.34 0.37 1.03 ---------------|-------------------------------------------------------------- xfs/2.4.16 | 31.26 91.43 0.51 207.88 0.95 0.43 2.35 ---------------|-------------------------------------------------------------- jfs/2.4.16 | 31.41 107.85 1.39 363.09 0.55 2.45 6.45 ---------------|-------------------------------------------------------------- ext2/2.4.14 | 32.35 111.47 0.49 250.46 0.8 0.5 19.77 ---------------|--------------------------------------------------------------