The service executes fstrim(8) on all mounted filesystems on devices that support the discard operation. Enabling the timer will activate the service weekly. The util-linux package provides rvice and fstrim.timer systemd unit files. hdparm does however not support NVMe SSDs. Non-zero values indicate TRIM support.įor SATA SSDs only, the hdparm package can detect TRIM support via hdparm -I /dev/sda | grep TRIM as the root user. Data loss can occur otherwise!Īnd check the values of DISC-GRAN (discard granularity) and DISC-MAX (discard max bytes) columns. Warning: Users need to be certain that their SSD supports TRIM before attempting to use it. See the following table for an indicative overview:įstrim is supported since kernel 5.13, įstrim is supported since kernel 4.19, A TechSpot article shows performance benchmark examples of before and after filling an SSD with data.Īs of Linux kernel version 3.8 onwards, support for TRIM was continually added for the different filesystems. Most SSDs support the ATA_TRIM command for sustained long-term performance and wear-leveling. If you want to partition an SSD for a specific purpose, it may be useful to consider the List of file systems optimized for flash memory.įor general usage, simply choose your preferred filesystem and enable #TRIM. This article covers special topics for operating solid state drives (SSDs) and other flash-memory based storage devices.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |