chmatse / SSDcronTRIM

Intelligent cron job script which automatically decides how often to trim one or more SSD partitions
GNU General Public License v3.0
26 stars 7 forks source link

Why not just use fstrim in cron? #10

Closed owenthewizard closed 6 years ago

owenthewizard commented 7 years ago

Like the title says, what advantages does this have over a simple fstrim -a in cron.weekly or cron.monthly? Is the disk usage <--> trim frequency correlation really that important that a weekly or monthly frequency does not suffice?

cryptk commented 6 years ago

One advantage is that this script is capable of doing some basic "sanity" tests (is the disk actually an SSD? do we have the fstrim tool?

More advanced people who understand how to schedule cron jobs themselves likely would not need this... I think this is more for people who don't really know how to do their own system maintenance, and they want a tool that they can just run and have it take care of it for them.