The following compares performance of 2 partitions sitting on a Samsung 850 EVO 500GB:
Deletion of a file is 2,700 times slower with btrfs! Any idea?
Code:
fio --name=random-write --ioengine=posixaio --rw=randwrite --bs=4k --size=4g --numjobs=1 --iodepth=1 --runtime=60 --time_based --end_fsync=1
ext4:
WRITE: bw=340MiB/s (356MB/s), 340MiB/s-340MiB/s (356MB/s-356MB/s), io=20.0GiB (21.5GB), run=60259-60259msec
time rm random-write.0.0: real 0m0.004s, user 0m0.001s, sys 0m0.004s
btrfs:
WRITE: bw=153MiB/s (161MB/s), 153MiB/s-153MiB/s (161MB/s-161MB/s), io=9332MiB (9786MB), run=60849-60849msec
time rm random-write.0.0: real 0m11.166s, user 0m0.001s, sys 0m11.126s