[Discuss] Interesting ZFS bug

markw at mohawksoft.com markw at mohawksoft.com
Fri Oct 4 09:30:13 EDT 2024


Yes, ZFS is aggressively syncing the file system. Do you have a cache or
intent long on SSD?


> https://github.com/openzfs/zfs/issues/11140
>
> Briefly: Flatpak uses fsync extensively. For reasons nobody is entirely
> sure about, this causes ZFS to thrash *hard* which I discovered earlier
> this week as I finally got around to switching my Calibre install from
> Debian's packages (which are woefully out of date). A flatpak
> installation that would take at most about 30 seconds on Btrfs or ext4
> takes an hour on ZFS.
>
> For me at least, the workaround is to bracket flatpak install/upgrade
> commands with disabling and enabling dataset sync:
>
> sudo zfs set sync=disabled zfsroot/zfs/home
> flatpak upgrade
> sudo zfs set sync=standard zfsroot/zfs/home
>
> --
> \m/ (--) \m/
> _______________________________________________
> Discuss mailing list
> Discuss at lists.blu.org
> https://lists.blu.org/mailman/listinfo/discuss
>




More information about the Discuss mailing list