[systemd-devel] consider dropping defrag of journals on btrfs

Phillip Susi phill at thesusis.net
Fri Feb 5 21:29:51 UTC 2021


Maksim Fomin writes:
> I would say it depends on whether defragmentation issues are feature
> of btrfs. As Chris mentioned, if root fs is snapshotted,
> 'defragmenting' the journal can actually increase fragmentation. This
> is an example when the problem is caused by a feature (not a bug) in
> btrfs. For example, my 'system.journal' file is currently 16 MB and
> according to filefrag it has 1608 extents (consequence of snapshotted
> rootfs?). It looks too much, if I am not missing some technical

Holy smokes!  How did btrfs manage to butcher that poor file that badly?
It shouldn't be possible for it to be *that* bad.  I mean, that's only
an average of 10kb per fragment!


More information about the systemd-devel mailing list