TRIM: Difference between revisions
Created page with "SSDs generally need to have the blocks belonging to a file explicitly deallocated. This is done with the ATA TRIM command. Unfortunately, regular use of TRIM can have negative effects on performance (TRIM cannot be queued on some devices) and lifetime. It is thus not generally recommended to trim after every delete operation, though this can be configured ("online mode"). Note that trimming generally requires the filesystem to be mounted, unlike e.g. <tt>fsck</tt>. Note..." |
No edit summary |
||
| Line 2: | Line 2: | ||
A device which doesn't support TRIM will be rejected by <tt>fstrim</tt> with an error, so it's safe to run on arbitrary filesystems. | A device which doesn't support TRIM will be rejected by <tt>fstrim</tt> with an error, so it's safe to run on arbitrary filesystems. | ||
TRIM is engaged from userspace using the FITRIM ioctl. | |||
==Online mode== | ==Online mode== | ||