Stefan Seyfried wrote:
On 13.02.22 19:04, Andrei Borzenkov wrote:
40G is a bit tight and suitable for the basic installation only. I seem to remember that 40G root size was the default until some time ago. Colleagues of mine stepped into that trap when they had to update SLES12-SPx (unpatched after installation) to SP(x+1) on a system that had been installed in a stupid "use all defaults => next => next => next => finish" installation. The only luck they had was that they could rollback, remove all previous snapshots and then update in smaller batches :-) IMHO 100GB root partition size is the absolute minimum when using BTRFS, unless you are really running a rolling tumblewed installation and update at least once per week to keep the snapshots relatively small.
I find that for most users ~40G is a pretty decent amount of space for the root partition. Considering that we must have something between 15-20% of that space free for performance reasons, we still have 32-34G, give or take, of space for the system plus snapshots. Now, IMHO, the default Snapper configuration is what doesn't make much sense, for the average user: | # limit for number cleanup | NUMBER_MIN_AGE="1800" | NUMBER_LIMIT="50" | NUMBER_LIMIT_IMPORTANT="10" This will limit "number" snapshots to _50_, plus 10 important snapshots. At the moment I use only 6 as a limint and 4 important ones. I'd say experimenting a little bit to find a nice balance here is worth one's while. | # create hourly snapshots | TIMELINE_CREATE="yes" Now what to say about this one, for the average users. If anyone has a use case for a domestic PC/laptop for taking snapshots of the system every hour I'm all ears. I disabled this one in my system. | # cleanup hourly snapshots after some time | TIMELINE_CLEANUP="yes" Since I disabled "timeline" snapshot creation, I disabled this one so its unit service don't even bother to get fired up only to find out that there is no work to be done. | # limits for timeline cleanup | TIMELINE_MIN_AGE="1800" | TIMELINE_LIMIT_HOURLY="10" | TIMELINE_LIMIT_DAILY="10" | TIMELINE_LIMIT_WEEKLY="0" | TIMELINE_LIMIT_MONTHLY="10" | TIMELINE_LIMIT_YEARLY="10" Again, if anyone has any reason for keeping snapshots more than a year, please tell us. Another thing I like doing is to every week or two delete all snapshots and manually take one. Sometimes I left only the one(s) I took manually. Of course if you setup good numbers that work for you, you can just left things rolling without worrying much about it. All this rant is about regular users. For packagers/developers/testers and whatnots a bigger / root file system plus a nice /etc/snapper/configs/root tweaking will make things smoother for sure. I hope this is usefull for someone. Take care, Luciano.