Quick question about snapshot memory usage

I am on Ubuntu 24.10 with a data pool (booting from something else), and I suspect that installing zfs-auto-snapshot has made my system very slow.

So the question is does having a lot of snapshots increase memory usage, or should I look elsewhere?

Also, htop is no help in determining whether this is a good hypothesis. How can I check for myself?

thx

1 Like

If the pool is pretty full, it can get slower. Years ago this started at 80%, but I think it kicks in later now. Data written while the pool was fullish may be slow to read.

If you enabled dedup that will cause problems unless you have gobs of RAM.

Snapshots don’t affect RAM usage. They do take up storage, however, as the snapshots diverge from production–essentially, if you take a snapshot then delete a file, the file still exists in the snapshot, therefore you’re taking up all the space that your production takes, plus the space that the deleted file takes.

They also, if you accumulate too many, will slow down some ZFS operations pretty badly. General use of the production filesystem isn’t affected enough to notice, but if you accumulate 100 or so snapshots per dataset (and this is a per-dataset issue, not really a per-pool issue) you’ll wind up with zfs list -t snap and similar operations taking for-bloody-ever to complete, until you prune the snapshots back down to a reasonable number.