Ericjr Posted January 23, 2021 Share Posted January 23, 2021 I've been reading some conflicting posts that say the dynamix trim plugin is required and others saying that unraid natively supports trim now. Should I be running the dynamix plugin for my SSD cache or is unraid taking care of it? If unraid has support for it natively is there anything I need to do to enable trim support or is it done automatically? Quote Link to comment
JorgeB Posted January 23, 2021 Share Posted January 23, 2021 2 hours ago, Ericjr said: f unraid has support for it natively is there anything I need to do to enable trim support or is it done automatically? With v6.8 you need to run trim manually, with v6.9 no need to trim any btrfs pool since it uses the new discard=async mount option, still need to do it for any xfs filesystem. 3 1 1 Quote Link to comment
CS01-HS Posted January 24, 2021 Share Posted January 24, 2021 I removed the Trim plugin (on RC2) but now Fix Common problems is warning me that it's not installed - should I ignore it? Quote Link to comment
JorgeB Posted January 24, 2021 Share Posted January 24, 2021 56 minutes ago, CS01-HS said: should I ignore it? If your pools are all btrfs you can ignore. 1 Quote Link to comment
sonic6 Posted March 19, 2021 Share Posted March 19, 2021 What i have to do, for using "discard=async"? Quote Link to comment
JorgeB Posted March 20, 2021 Share Posted March 20, 2021 11 hours ago, sonic6 said: What i have to do, for using "discard=async"? Nothing other than upgrading to v6.9.x. 1 Quote Link to comment
isrdude Posted March 29, 2021 Share Posted March 29, 2021 I have a backup server that doesn't have any cache at all. However, Fix Common Problems keeps telling me that I need to download SSD Trim? Any clues??? Thanks in advance Quote Link to comment
JorgeB Posted March 29, 2021 Share Posted March 29, 2021 11 minutes ago, isrdude said: Fix Common Problems You should post in the existing plugin support thread: Quote Link to comment
sdamaged Posted July 16, 2021 Share Posted July 16, 2021 (edited) I'm not convinced that trim is working the way it should be. I have two nvme devices each in their own named btrfs cache pool, and performance over time on these devices plummets down until i'm seeing less than 20MB/s write speeds when copying files. If i manually force a trim, i then see (as an example) 85GB trimmed, and the drive then speeds back up again. The system log is showing the drive as having been trimmed with the dynamix plugin, but it just doesn't look like it's working to me. Perhaps i need to completely remove the dynamix plugin if its not needed? On unRAID 6.9.2 by the way Edited July 16, 2021 by sdamaged Quote Link to comment
JorgeB Posted July 16, 2021 Share Posted July 16, 2021 12 minutes ago, sdamaged said: If i manually force a trim, i then see (as an example) 85GB trimmed, and the drive then speeds back up again. if there are no errors manual trim is the same as the Dynamix trim. Quote Link to comment
TecEgg Posted August 22, 2021 Share Posted August 22, 2021 On 3/19/2021 at 9:30 PM, sonic6 said: What i have to do, for using "discard=async"? On 3/20/2021 at 8:42 AM, JorgeB said: Nothing other than upgrading to v6.9.x. Where can i verify this on the system? Can't find the option for this. Btw, using 6.10 now. Is the dynamics trim plugin just not needed, or can it cause problems if it installed on the newer Unraid versions? Maybe because of the own trim operation is colliding with the ones from the plugin? Quote Link to comment
JorgeB Posted August 23, 2021 Share Posted August 23, 2021 19 hours ago, TecEgg said: Can't find the option for this. There's no option to change, it's a mount option. 19 hours ago, TecEgg said: or can it cause problems if it installed on the newer Unraid versions? It won't cause any issues also using the plugin. 1 Quote Link to comment
JonasH Posted January 10, 2022 Share Posted January 10, 2022 On 1/23/2021 at 9:40 AM, JorgeB said: With v6.8 you need to run trim manually, with v6.9 no need to trim any btrfs pool since it uses the new discard=async mount option, still need to do it for any xfs filesystem. Does that also apply to btrfs encrypted? I read somewhere that trim is not supported with encryption. Quote Link to comment
JorgeB Posted January 10, 2022 Share Posted January 10, 2022 10 minutes ago, JonasH said: Does that also apply to btrfs encrypted? Don't know, never used encryption. Quote Link to comment
NormanB Posted March 22, 2022 Share Posted March 22, 2022 On 3/20/2021 at 3:42 AM, JorgeB said: Nothing other than upgrading to v6.9.x. Maybe a stupid question, but does this hold if your drive does not support TRIM? I have a couple SSD's mounted to an HBA and I get a "not supported" message when I run the fstrim -v command. Quote Link to comment
JorgeB Posted March 22, 2022 Share Posted March 22, 2022 1 hour ago, NormanB said: but does this hold if your drive does not support TRIM? It won't work the same. Quote Link to comment
takkischitt Posted April 6, 2022 Share Posted April 6, 2022 On 1/23/2021 at 8:40 AM, JorgeB said: With v6.8 you need to run trim manually, with v6.9 no need to trim any btrfs pool since it uses the new discard=async mount option, still need to do it for any xfs filesystem. Is there any harm in keeping the trim function even when the cache is a btrfs pool? Or should I just remove trim and be done with it? I just don't want to be getting warnings about not having it from Fix Common Problems (I know this isn't the Fix Common Problems thread). Quote Link to comment
JorgeB Posted April 6, 2022 Share Posted April 6, 2022 16 minutes ago, takkischitt said: Is there any harm in keeping the trim function even when the cache is a btrfs pool? Nope. 1 Quote Link to comment
sota Posted January 25 Share Posted January 25 fstrim -v /mnt/cache /mnt/cache: 444 GiB (476746616832 bytes) trimmed that's on a 500GB SSD with 6.9.2 running. we've had performance issues on the system recently, and when I copied the VMs off the drive, it was barely moving data. then I ran the command above. something tells me it's not TRIMming the drive like its supposed to. Quote Link to comment
JorgeB Posted January 25 Share Posted January 25 It will only trim the free space. Quote Link to comment
sota Posted January 25 Share Posted January 25 yea. that was the free space. the problem is the disk only was using 77GB until recently, when I moved the VMs off of it. it clearly hasn't been TRIMming on a regular basis. Quote Link to comment
zoggy Posted February 17 Share Posted February 17 (edited) Using unraid 6.11.5 Single nvme drive in cache, btrfs. No scrub/anything special. We were talking in discord recently about this, and I notice that my cache (created 6.9.x after the 1 MiB alignment) doesnt include the discard option like it mentions it should: # mount | grep /mnt/cache /dev/nvme0n1p1 on /mnt/cache type btrfs (rw,noatime,ssd,space_cache=v2,subvolid=5,subvol=/) /mnt/cache/docker.img on /var/lib/docker type btrfs (rw,noatime,ssd,space_cache=v2,subvolid=5,subvol=/) /mnt/cache/docker.img on /var/lib/docker/btrfs type btrfs (rw,noatime,ssd,space_cache=v2,subvolid=5,subvol=/) /mnt/cache/system/libvirt/libvirt.img on /etc/libvirt type btrfs (rw,noatime,ssd,space_cache=v2,subvolid=5,subvol=/) Is there a known bug/issue where it doesnt add the discard option if its a pool named 'cache' or only single drive with some other criteria? Edited February 17 by zoggy Quote Link to comment
JorgeB Posted February 17 Share Posted February 17 26 minutes ago, zoggy said: Single nvme drive in cache Currently only pools have the discard option enabled, but you can have a single device pool by setting pool slots to >1. 1 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.