cancel
Showing results for 
Search instead for 
Did you mean: 

Intel 540s Trim support

schoi11
New Contributor

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.

1 ACCEPTED SOLUTION

idata
Esteemed Contributor III

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 C

View solution in original post

14 REPLIES 14

idata
Esteemed Contributor III

Hi ithdli,

Thanks for your reply.Have a nice week.Regards,Nestor C

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.

idata
Esteemed Contributor III

Hi ithdli,

We will be checking on this and we'll reply back with the response.Regards,Nestor C

idata
Esteemed Contributor III

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# TRIM

http://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 C

Hi Nestor C,

Thanks! Your answers and attached links helped me a lot!

Regards,

Soyee Choi