F2FS experiences
#11
(11-25-2020, 04:48 PM)DrYak Wrote: Sorry, my bad, I should have written it more explicitly:
4KiB doesn't matter that much nowadays with regards to write amplification (read-modify-write cycles).

(i.e.: R-M-Ws will always happen upon in-place overwriting in a sub-part of an erase block).

Of course, it would matter to at least align the 4KiB block of an ext partitions with the 4KiB sectors, for read performance  (faster to read a single sector that to reads 2 sectors  and merge them).

(and given that the erase-block are a super-set of this sector layer, aligning to erase blocks to aleviate R-M-Ws will also get you aligned to sector boundary anyway).

But wouldn't a 4kB sector that is unaligned require writing two new blocks in an erase block, while an aligned sector would only require one?

It would be nice to be able to measure block erase count and total writes.  Then a benchmark could be done with aligned and unaligned fs blocks and the WAF measured.  It looks like JEDEC standard eMMC health has little detail and one would need a massive benchmark that used a significant portion of the total eMMC lifetime.  There is a Micron extension that could work.  Looks like PBP ships with a Sandisk eMMC.

Here is the command I used to measure random IO before and after aligning the partition with ext4.  It would be interesting to know how f2fs compares.

fio --randrepeat=1 --ioengine=libaio --direct=1 --gtod_reduce=1 --filename=test.fio --bs=4k --iodepth=64 --size=4G --readwrite=randrw --rwmixread=75 --name=aligned-ext4


Messages In This Thread
F2FS experiences - by zackw - 11-15-2020, 11:52 AM
RE: F2FS experiences - by DrYak - 11-15-2020, 07:02 PM
RE: F2FS experiences - by Henry - 11-16-2020, 08:57 AM
RE: F2FS experiences - by DrYak - 11-17-2020, 07:51 AM
RE: F2FS experiences - by User 18618 - 11-17-2020, 07:57 AM
RE: F2FS experiences - by zackw - 11-18-2020, 12:59 PM
RE: F2FS experiences - by xyzzy - 11-19-2020, 04:24 PM
RE: F2FS experiences - by DrYak - 11-25-2020, 01:53 PM
RE: F2FS experiences - by xyzzy - 11-25-2020, 02:27 PM
RE: F2FS experiences - by DrYak - 11-25-2020, 04:48 PM
RE: F2FS experiences - by xyzzy - 11-25-2020, 05:57 PM
RE: F2FS experiences - by z4v4l - 11-25-2020, 06:04 PM
RE: F2FS experiences - by DrYak - 11-29-2020, 11:33 AM
RE: F2FS experiences - by xyzzy - 11-30-2020, 04:31 PM
RE: F2FS experiences - by rimaille - 11-30-2020, 11:18 PM
RE: F2FS experiences - by xyzzy - 12-02-2020, 03:15 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)