Am 17.07.19 um 22:54 schrieb Peter Grandi: >>> [...] Many filesystems have a "free list" optimized for the >>> forward mapping fast "find a free block", not the reverse >>> mapping "check whether a block is free". A good option would >>> have been to not do 'fstrim'/'blkdiscard' and put TRIM in >>> 'fsck' (apparently that happens under MacOS X and 'e2fsck' >>> also allows that). > >> how often do you reboot at all and then check your filesystems >> versus blocks freed /data deleted? > > System design is all about tradeoffs: in this case between > having complicated and subtle code to list unused block segments > in the kernel or have it in 'fsck' (which can take weeks to > complete...), which must be regularly used to audit the > filesystem structure anyhow. > > I am aware that the opinion that "reboot at all and then check > your filesystems" (and presumably other maintenance operations) > should be or can be performed rarely is very popular among many > sysadmins, being very low cost; to an extreme example I have > seen systems in semi production use for which hardware and > software went EOL in 2007 and untouched since then, and still > "work". But some people get away with it, some don't that's not the point, i use Fedora in producton and so kernel updates and reboots are regulary but at the same time i have de-duplication backups which are UNMAP aware on the layer below which makes with a daily "fstrim -av" a large difference how the backups are growing, espeially the ones with some month retention time you don't want all the temporary crap deleted hourd ago in your daily, weekly, monthly backups - nor do you want to reboot a fsck daly because someone will seek and kill you - period