Hi, I bought a hard drive and formatted it to Btrfs in order to make it a NAS server.
Btrfs has this nice feature to automatically defrag the hard drive, and it can be turned on in the mounting option.
(See #2 in https://www.thegeekdiary.com/how-to-tun ... rformance/)
My question is, is this option enabled by default in dietpi-drive_manager? Or do I have to manually mount the drive to enable that option?
Indeed not added by default currently, also not applicable on non-spinning drives, but good to know this exists. Edit /etc/fstab for now, but note that or is overwritten on every drive manager run.
I'll add the option to v6.29, either as default on spinning drives or optional to toggle in UI.
MichaIng wrote: ↑Wed Feb 19, 2020 1:23 pm
Indeed not added by default currently, also not applicable on non-spinning drives, but good to know this exists. Edit /etc/fstab for now, but note that or is overwritten on every drive manager run.
I'll add the option to v6.29, either as default on spinning drives or optional to toggle in UI.
Thank you very much for replying!
I'm so excited to see it in future updates!
I read a bid through some man pages and actually autodefrag on BTRFS seems to be generally not recommended currently due to CPU usage and caching that is done and especially with large files. I'll definitely add it as non-default option only with link to related man pages and recommendations.
MichaIng wrote: ↑Sun Feb 23, 2020 2:37 pm
I read a bid through some man pages and actually autodefrag on BTRFS seems to be generally not recommended currently due to CPU usage and caching that is done and especially with large files. I'll definitely add it as non-default option only with link to related man pages and recommendations.
Do you face any issues that you want this option?
I didn't face any issues yet, but I'm dealing with a HDD and thought defrag may make it perform better.
Yeah it seems like that commands works. Good enough for me. And according to those "gotchas", I guess I'll do it manually when necessary. Thanks for the reply and suggestions!