08-03-2017 12:57 AM
Hi, I want to know how Intel 540s SATA ssd (120GB) support TRIM command.
When TRIM command is sent from OS does SSD implement TRIM as soon as possible? or at idle time?
I saw that in nvme SSD, TRIM is implemented before GC command but I want to know if SATA 3.1 version Intel 540s also same.
Solved! Go to Solution.
08-03-2017 11:01 AM
Hello ithdli,
Thanks for posting in our forum, we understand you have some questions about TRIM and we'll be more than glad to explain to you.When the TRIM command is sent from the operating system it will try to find the "best moment" to perform the task, meaning that it will run it when the SSD is being less used or idle.This does not mean that you cannot use the SSD if it is in the process, you can use and the function will be running in the background, just like the garbage collection. These two (TRIM and Garbage collection) go together somehow.Please let us know if you have any other question.Regards,Nestor C08-08-2017 05:36 AM
Hi ithdli,
Thanks for your reply.Have a nice week.Regards,Nestor C08-10-2017 10:02 PM
I have one more minor question.
Actually its not that related question with Intel SSD but I'm just curious about.
When I turned off ext4 discard option, TRIM doesn't work even if I issue an "ioctl ( , FITRIM , ) command"?I thought that ext4 discard option is just related with deleted file so that ioctl command may work.
I just want to know if I was wrong.
- Soyee Choi.
08-11-2017 02:38 PM
Hi ithdli,
We will be checking on this and we'll reply back with the response.Regards,Nestor C08-15-2017 05:44 AM
Hi ithdli,
We have checked about this and we believe this will help you on how discard command works for ext4 filesystems:https://wiki.archlinux.org/index.php/Solid_State_Drives# TRIM https://wiki.archlinux.org/index.php/Solid_State_Drives# TRIMhttp://blog.neutrino.es/2013/howto-properly-activate-trim-for-your-ssd-on-linux-fstrim-lvm-and-dmcry... http://blog.neutrino.es/2013/howto-properly-activate-trim-for-your-ssd-on-linux-fstrim-lvm-and-dmcry...
We understand that when the discard is enabled, the system will get notified when space in the filesystem is freed up, then TRIM happens. This option keeps the SSD at high performance. In a sense, it can be linked to "deleted files" as you stated; however, that's one of the main intentions of TRIM.
Regards,Nestor C08-15-2017 11:06 PM
Hi Nestor C,
Thanks! Your answers and attached links helped me a lot!
Regards,
Soyee Choi