Tiny Core Base > Raspberry Pi
how to format a partition to xfs on piCore-9.0.3?
bmarkus:
--- Quote from: skyp on September 10, 2017, 12:28:43 PM ---I find at least 20 percent quicker to write an xfs partition on my SD card than ext3/4....
--- End quote ---
Interesting point, thank you for bringing up the topic. I will take a look to see is it worth to change to xfs for mmcblk0p2.
How did you benchmark it?
skyp:
I've done some tests. It's a cheap Kingstone 8GB micro SD. mmcblk0p3 is formatted to xfs. As you can see, the significant difference interrestingly appeares only in write times. It's a big savior to my project because I need to capture high rate audio streams to the card without overloads. This little boost helped me out...
--- Code: ---tc@box:~$ sudo dd if=/dev/zero of=/mnt/mmcblk0p2/test bs=500K count=1024
1024+0 records in
1024+0 records out
524288000 bytes (500.0MB) copied, 87.098434 seconds, 5.7MB/s
tc@box:~$ sync; echo 3 | sudo tee /proc/sys/vm/drop_caches
3
tc@box:~$ sudo dd if=/dev/zero of=/mnt/mmcblk0p3/test bs=500K count=1024
1024+0 records in
1024+0 records out
524288000 bytes (500.0MB) copied, 68.906372 seconds, 7.3MB/s
tc@box:~$ sync; echo 3 | sudo tee /proc/sys/vm/drop_caches
3
tc@box:~$ sudo dd if=/mnt/mmcblk0p2/test of=/dev/null bs=500K count=1024
1024+0 records in
1024+0 records out
524288000 bytes (500.0MB) copied, 24.768939 seconds, 20.2MB/s
tc@box:~$ sync; echo 3 | sudo tee /proc/sys/vm/drop_caches
3
tc@box:~$ sudo dd if=/mnt/mmcblk0p3/test of=/dev/null bs=500K count=1024
1024+0 records in
1024+0 records out
524288000 bytes (500.0MB) copied, 24.112068 seconds, 20.7MB/s
--- End code ---
Btw I tested another even cheaper noname 2GB card with 3.6/4.4 MB/s results...
bmarkus:
Lets see my test result.
ext4 partition on SD card in RPi3 card slot:
--- Code: ---# dd if=/dev/zero of=test bs=500k count=1024
1024+0 records in
1024+0 records out
524288000 bytes (524 MB, 500 MiB) copied, 60.9158 s, 8.6 MB/s
--- End code ---
xfs partition on SD card in RPi3 card slot:
--- Code: ---# dd if=/dev/zero of=test bs=500k count=1024
1024+0 records in
1024+0 records out
524288000 bytes (524 MB, 500 MiB) copied, 39.0545 s, 13.4 MB/s
--- End code ---
RAM disk (root fs):
--- Code: ---# dd if=/dev/zero of=test bs=500k count=1024
1024+0 records in
1024+0 records out
524288000 bytes (524 MB, 500 MiB) copied, 1.95662 s, 268 MB/s
--- End code ---
Now the interesting result, ext4 on SD card in USB external card reader:
--- Code: ---# dd if=/dev/zero of=test bs=500k count=1024
1024+0 records in
1024+0 records out
524288000 bytes (524 MB, 500 MiB) copied, 34.2842 s, 15.3 MB/s
--- End code ---
A different SD card was used, but both cards has the same rating, Class 10. Ther must be some difference due to card differences but I think more is the poor performance of internal SD card handling.
And finally an USB stick with ext4:
--- Code: ---# dd if=/dev/zero of=test bs=500k count=1024
1024+0 records in
1024+0 records out
524288000 bytes (524 MB, 500 MiB) copied, 179.612 s, 2.9 MB/s
--- End code ---
Result is interesting, but lets see a real life test, building xfsprogs on ext4 and xfs partition on the same card.
--- Code: ---ext4: 8m 15s
xfs: 7m 36s
--- End code ---
XFS benefits for write intensive applications, like databases under high load would be much higher. All together I'm considering to move to XFS as a default file system. Now only one test left. BTRFS ;)
bmarkus:
btrfs:
--- Code: ---# dd if=/dev/zero of=test bs=512k count=1024
1024+0 records in
1024+0 records out
536870912 bytes (537 MB, 512 MiB) copied, 35.761 s, 15.0 MB/s
--- End code ---
bmarkus:
xfstools build time on btrfs:
--- Code: ---btrfs: 7m 30s
--- End code ---
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version