You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the choice of FS in block_volume_format should be user configurable, as that piece of code cannot know what FS is better for each particular usage. but we have what we have...
but for the case of openwrt rootfs_data partitions, it is arguably making the wrong choice:
it chooses f2fs for partitions larger than 100MB. this is extremely wasteful: a 100MB f2fs partition has an overhead of about 40%! so you only get 60 usable megs out of your 100 megs, it's crazy. if auto switching is used at all, IMHO it should not cause overheads higher than 10%, so that would move the switch point to around 400 or 500 megs.
it is well known that f2fs suffers from corruption when subject to unclean shutdowns. it may be an acceptable risk for some battery-powered devices (which are unlikely to power off unexpectedly) such as phones, especially when benchmarks are given more importance than user's data by manufacturers, but it is a bad choice for devices that are typically always shutdown uncleanly, like openwrt routers. we probably do not see many corruption events only because the usual openwrt install writes so little to the disk; but then see next point...
the performance advantages (in time and write amplification/wear) of f2fs are noticeable when the FS is being written to heavily. there is no advantage to using f2fs (and real disadvantages) if you write little to it. this probably calls into question whether f2fs should be used automatically at all.
to recap: maybe always choose ext4. but if not, the cutoff point of 100MB should be raised significantly.
The text was updated successfully, but these errors were encountered:
the choice of FS in
block_volume_format
should be user configurable, as that piece of code cannot know what FS is better for each particular usage. but we have what we have...but for the case of openwrt
rootfs_data
partitions, it is arguably making the wrong choice:it chooses f2fs for partitions larger than 100MB. this is extremely wasteful: a 100MB f2fs partition has an overhead of about 40%! so you only get 60 usable megs out of your 100 megs, it's crazy. if auto switching is used at all, IMHO it should not cause overheads higher than 10%, so that would move the switch point to around 400 or 500 megs.
it is well known that f2fs suffers from corruption when subject to unclean shutdowns. it may be an acceptable risk for some battery-powered devices (which are unlikely to power off unexpectedly) such as phones, especially when benchmarks are given more importance than user's data by manufacturers, but it is a bad choice for devices that are typically always shutdown uncleanly, like openwrt routers. we probably do not see many corruption events only because the usual openwrt install writes so little to the disk; but then see next point...
the performance advantages (in time and write amplification/wear) of f2fs are noticeable when the FS is being written to heavily. there is no advantage to using f2fs (and real disadvantages) if you write little to it. this probably calls into question whether f2fs should be used automatically at all.
to recap: maybe always choose ext4. but if not, the cutoff point of 100MB should be raised significantly.
The text was updated successfully, but these errors were encountered: