f2fs for dietpi

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
megusta
Posts: 14
Joined: Sun Dec 30, 2018 1:16 pm

f2fs for dietpi

Post by megusta »

What do you think about it, if we change the default filesystem of dietpi? Currently it is installed by default on Google Pixel 3 and since Kernel 4.19 they improved the performance especially if you use Database
User avatar
MichaIng
Site Admin
Posts: 2293
Joined: Sat Nov 18, 2017 6:21 pm

Re: f2fs for dietpi

Post by MichaIng »

@megusta
Many thanks for your suggestion.

Also BTRFS has been improved with later kernel and supports swap files then, not sure if it was kernel 4.19 or 5.X though.

But for now we will leave it as shipped by the pre-images, especially since different SBCs come with different kernel versions, so it's easier to stay with the most compatible file system.

If we'd do the change, then per-SBC and it requires that we change our image creation procedure to now use pre-installed images but create them from scratch. This is a larger tasks that I aim to start testing the next months.
User avatar
WarHawk
Posts: 608
Joined: Thu Jul 20, 2017 8:55 am

Re: f2fs for dietpi

Post by WarHawk »

I wonder if BTRFS as the main partition on the sd card would be better than ext4...

(well it would need the kernel to support BTRFS out of the box, not sure if it does)

https://www.difference.wiki/btrfs-vs-ext4/
Btrfs has many good features. Copy-on-Write, snapshots, extensive checksums, scrubbing, duplication, self-healing data, and many more useful improvements ensure data integrity. Btrfs lacks the RAID-Z features of ZFS, so RAID is still in the experimental state with Btrfs. However, for pure data storage, Btrfs is the winner over Ext4, but time will tell.
https://www.makeuseof.com/tag/ext4-btrf ... tch-linux/
https://btrfs.wiki.kernel.org/index.php/Status
megusta
Posts: 14
Joined: Sun Dec 30, 2018 1:16 pm

Re: f2fs for dietpi

Post by megusta »

Big disadvantage if you use snapshots you normally doesn't see the real free space, only with btrfs tools. Also you must control your free space and don't feel over 70%, else you will crash the system. Raid is also a problem
I don't know if that is a good idea for beginners.
Post Reply