Velvet Star Monitor

Standout celebrity highlights with iconic style.

updates

Should I use zfs or ext4 filesysttem on old laptop with SSD? [closed]

Writer Emily Wong

While installing Ubuntu 21.10 on a rather old laptop, I've noticed that I can Also choose ZFS as a filesystem which is apparently has become default on Ubuntu server. As far as I could read it is one of the prides of FreeBSD community as a robust and mature filesystem and is a rather newcomer to Linux ecosystem. So I'm curious about it.

I'd like to encrypt my laptop's entire SSD and I'd like have a performant system. So I'm wondering what will be the effects of using ZFS instead of good old ext4, in terms of performance, stability and battery usage?

3

1 Answer

ZFS is great on servers with lots of ram, lots of cpu, and lots of disks.

It does very well on large disks and joining multiple disks, and has nice features like software implementation of hybrid spinning rust + SSD cache raid volumes for extra performance.

If you have a single small disk with limited ram, zfs might still work well, but most of its advantages are gone, and ext4 might work as well, but with lower ram use.

For single disks over 4T, I would consider xfs over zfs or ext4. For more than 3 disks, or a spinning disk with ssd, zfs starts to look very interesting. Between 2T and 4T on a single disk, any of these would probably have similar performance.

But, as always, your specific use case affects this greatly, and there are corner cases where any of these would work better than the others. For example, zfs and xfs perform much better than ext4 when you have thousands of files in a single directory, no matter what the disk size. But this is a corner case, and not common, especially with disks smaller than 2T.

For small disks typically found in laptops, ext4 should be sufficient, and if you want encryption, the defaults you get when you enable it in the ubuntu installer probably work best with ext4 anyway.

6