On Windows the default TRIM schedule for SSDs is weekly, and the Optimize GUI lets you change that to Daily. But is this enough for Chia workloads? We know the creation of a single plot requires about 1.4TiB written. This means that on a fully virgin 1TiB SSD with little overprovisioning, the drive will have to start moving things around even before a single plot is complete, and thus eating into the WAF.
Am I missing something? Or should we schedule TRIM every few hours?
I think it actually does this kind of work on file delete as well.
You don’t need to worry about executing Trim. Windows will send an instruction to your solid-state drive every time you delete a file. The solid-state drive can then automatically erase that file’s contents.
I haven’t noticed any degradation of perf and I’ve been ignoring this panel for weeks…
You shouldnt defrag an SSD drive, it is not a spinning disk.
Defragmentation on an SSD will only cause extra wear and tear.
In a traditional HDD the head has to move across the platters to get the data, it is a physical action. So if the data on the platters is physically closer, it needs less time to get the data and the drive will perform faster.
For SSD the location of the data is irrelevant to the speed.
The Optimize-Volume cmdlet optimizes a volume, performing defragmentation, trim, slab consolidation, and storage tier processing. If no parameter is specified, then the default operation will be performed per the drive type as follows.
HDD, Fixed VHD, Storage Space. -Analyze -Defrag.
Tiered Storage Space. -TierOptimize.
SSD with TRIM support. -Retrim.
Storage Space (Thinly provisioned), SAN Virtual Disk (Thinly provisioned), Dynamic VHD, Differencing VHD. -Analyze -SlabConsolidate -Retrim.
SSD without TRIM support, Removable FAT, Unknown. No operation.
I did go in and change the schedule on mine to do it daily. How often did you schedule yours? Could you post up instructions on how to setup the schedule? (not the optimization schedule for daily, the one you do in scheduler or however you do it)
I have mine scheduled for every hour on my temp drive but my OS drive I keep to weekly since it doesn’t get much use. I’m on a lower end system and only do 2 staggered (by 50%) parallel plot operations at a time but after reading the logs (i’m on Linux BTW) trimming every hour for me clears up about 300GiB each time. IMO that’s definitely non an insignificant amount of data and probably helps reduce wear on the flash
Trimming every hour delivers me 2 plots/day more then trimming daily equal result on I770K linux NVME as on I4790K windows Intel sata DC3 S4510 SSD So I run defrag d: -L hourly and on linux fstrim -a
I just noticed this response. That is nice. Much cleaner than the way I have been doing it. I have been creating a powershell script and then running it with task manager. This single command is much easier. I haven’t verified that it works the same, but looks good via research.
Trim is the SSD equivalent: Trim (computing) - Wikipedia and is a great thing to do after every plotting run as it keeps speed up for subsequent plots and keeps your drives healthy.