I have run a benchmark, via USB 2 on a Linux based PC, using a high speed SanDisk Extreme USB 3.0 drive, with write/read ratings of 110/190 MB/s, formatted as FAT, Ext4 and F2fs. The main source code is the same as Raspberry Pi DriveSpeed, where this and the execution file can be found in:
http://www.roylongbottom.org.uk/Raspber ... hmarks.zip
The OS is Ubuntu 13.10 with Linux 3.12.0. I downloaded the ISO for Ubuntu 14.04 but 13.10 was installed?? I downloaded f2fs-tools from:
http://www.ubuntuupdates.org/package/co ... f2fs-tools
GParted Formatted a 16 GB partition as F2fs but it appeared as an unknown file system. It was mounted as shown in the following. Even then it was not visible in Ubuntu, but the directory path could be accessed by the benchmark (using sudo).
https://wiki.archlinux.org/index.php/F2fs
The benchmark measures writing and reading speeds and execution times of writing and reading large and small files and random access. Results (fairly constant on three runs) for FAT, Ext4 and F2fs are below. Default small file sizes are 4, 8 and 16 KB. An extra test using 1, 2 and 4 KB was also run.
All have similar speeds on large files. F2fs is slow on random access, particularly on writing. FAT is slowest on writing small files and F2fs fastest but is seems that the real advantage over Ext4 becomes more apparent as the file sizes are reduced.
Next, I have to find how to run, using the F2fs partition, on the Raspberry Pi ARM based system [HELP!].
Code: Select all
16 MB Files MBytes/Second
MB Write1 Write2 Write3 Read1 Read2 Read3
FAT 28.32 28.59 28.40 39.07 39.78 39.05
Ext4 30.31 30.44 30.32 38.94 38.72 38.25
F2fs 29.64 30.01 29.58 39.56 39.66 39.40
Random Milliseconds
From MB 4 8 16 4 8 16
FAT 0.549 0.502 0.502 0.94 0.72 0.82
Ext4 0.505 0.501 0.500 0.86 0.73 0.65
F2fs 0.602 0.624 0.624 1.76 1.74 1.76
2oo Files milliseconds per file
Write Read
File KB 4 8 16 4 8 16
FAT 1.91 1.76 2.01 0.65 0.72 0.77
Ext4 0.75 0.63 0.93 0.42 0.53 0.77
F2fs 0.53 0.61 0.89 0.39 0.52 0.77
File KB 1 2 4 1 2 4
Ext4 0.98 0.81 0.67 0.41 0.52 0.41
Ext4 1.32 0.84 0.67 0.48 0.51 0.40
F2fs 0.51 0.59 0.51 0.39 0.51 0.40