Page 1 of 1

activating trim functionality for SSD

PostPosted: Sun Dec 04, 2016 12:15 am
by raidsm
Hi!

I'm about to put a ssd in my nsw2... mainly because it will now be silent... I hate hard drive spinning sound!

Is there a way to activate trim or it doesn't matter? Someone have a clue?

Re: activating trim functionality for SSD

PostPosted: Sun Dec 04, 2016 9:01 am
by fvdw
As far as I know "trim" is not supported on ext3 file system, you will need ext4. That is not a problem our newest kernel support ext4. If noise is your biggest concern I would not bother to much about trim. The speed limiting factor to read and write data from the disk will be network interface, cpu and amount of ram and not the disk itself.
If using an ssd in a nas is a good idea is another question. Ssd have limited number of write cycles, so if a lot of writing is done lifetime may be short. Because the ns2 has only 256MB ram and we use a partition on the disk as swap to enlarge the ram capacity. If swap is used a lot then lifetime if ssd will be affected. Of course we could disable swap but that will cause limitations in using the nas as it can run less tasks simulatuously due to smaller available system memory. But if you do not use a lot of task simulatunuously and only one user is using it at same time.
Suggest you do some reading on the internet on experiences with ssd's in a nas and if that fits with your situation.

Re: activating trim functionality for SSD

PostPosted: Sun Dec 04, 2016 9:55 am
by Jocko
I confirm fvdw's post

In addition with his post, you need another partition table to do it as you must keep a free space on the disk (otherwise you will getd some drastically low I/O speed :shocked )

Re: activating trim functionality for SSD

PostPosted: Fri Dec 09, 2016 6:41 pm
by raidsm
thanks for all your inputs. I know TRIM is not about speed but more about provisionning/garbage collection. If ext4 is used in a future kernel, I will be able to activate the "discard" feature when mounting the disk...

My NS2 is not about storing a lot of data as use it to access my Time Capsule and for services like dlna , WordPress , webdav , transmission and so on... THats why I keep is as it is fanless. I just bought a Asustor 3102t and I consider returning it! The fun I have working on the small NS2 and beiing here in this forum is far superior of what the asustor provide.

Keep up the good work guy! I may try this weekend the 4.6.6 kernel... Should I?