I want to what is actual difference between ssd trim and ssd defrag .I have read somewhere that ssd defrag reduces its lifespan.While ssd trim is beneficial for device health and lifespan also.I am little confused plzz clarify.Does ssd trim reduces lifespan or not??.Does regular trimming is bad thing??.HELP
Short answer: TRIM improves life span. Defrag decreases it.
Long answer:
When you write files on a fresh storage drive, the files are written as a continuous block of data (well, in 4 KB chunks). When you delete files, the space those files occupied are marked as free. Sometimes, depending on the file system and OS, new files are written in these free blocks. But if the file can't fit in the block, it gets split up and saved in the next available space. This is called fragmentation. Defragmentation is rearranging files so that all these chunks in one spot. The reason to do this was to improve hard drive performance so the data pick-up head doesn't have to move around all over the place. Defragmentation isn't useful on SSDs because they can access data in a random fashion much more quickly than a hard drive and it requires a lot of writing. So while keeping files in a continuous block of data is still ideal for SSD performance due to the way solid state memory is still addressed, the amount of writes don't make it a worthy tradeoff
TRIM is a command used to help the SSD know which chunks of data inside are no longer valid. It helps to know that flash memory is divided up into blocks, which contain a number of 4KB pages. Flash memory cannot re-use pages unless they're erased first, but erases happen at the block level. Without TRIM, when a block has mostly invalid data, is full, and someone wants to write to a file in that block but needs a new page, the SSD would first have to erase the block the write the data back to it. With TRIM, the SSD would gather up the valid pages, write them to a fresh block, then erase the previous block. That way when the file has more data added to it, it should now be in a block with room to grow.
TRIM automatically happens in the background, you don't need to do anything.