Home > Common Problem > body text

What is the function of trim function of solid state drive?

青灯夜游
Release: 2022-11-21 10:58:01
Original
12793 people have browsed it

The trim function of solid-state drives is mainly to optimize solid-state drives, solve the problems of slowdown and lifespan after SSD use, and improve SSD efficiency by preparing data blocks for reuse. The Trim function is a function that almost all SSD solid state drives have. It is an ATA command. When the system confirms that the SSD supports Trim and deletes data, it does not notify the hard disk of the deletion command and only uses the Volume Bitmap to remember that the data here has been deleted. This enables faster data processing.

What is the function of trim function of solid state drive?

The operating environment of this tutorial: Windows 7 system, Dell G3 computer.

The Trim function is a function that almost all SSD solid state drives have. It is an ATA command. When the system confirms that the SSD supports Trim and deletes data, it does not notify the hard disk of the deletion command and only uses the Volume Bitmap to remember this. The data has been deleted. Volume Bitmap is just a disk snapshot, and its creation speed is much faster than directly reading and writing the hard disk to mark deleted areas. This enables faster data processing.

To put it simply, TRIM is a function that optimizes solid-state drives, solves the problems of slowdown and lifespan after SSD use, and improves SSD efficiency by preparing data blocks for reuse.

What is the function of trim function of solid state drive?

TRIM and data blocks

Originally on the mechanical hard disk, when writing data, Windows will Notify the hard disk to erase the previous data before writing new data to the disk. When deleting data, Windows will only mark it here, indicating that there should be nothing here, and wait until the data is actually written before actually deleting it, and the marking action will remain in the disk cache until the disk is free. and then execute again.

As a result, the disk needs more time to perform the above operations, and the speed will of course slow down.

When Windows recognizes the SSD and confirms that the SSD supports Trim, when deleting data, it will not notify the hard disk of the deletion command, and will only use the Volume Bitmap to remember that the data here has been deleted. Volume Bitmap is just a disk snapshot, and its creation speed is much faster than directly reading and writing the hard disk to mark the deleted area. This step has already saved a lot of time. Then when writing data, since NAND flash memory saves data in purely digital form, new data can be written directly to the deleted blocks in the snapshot based on the Volume Bitmap without spending time erasing it. original data.

What is the function of trim function of solid state drive?

CRITICAL SSD AND TRIM/GARBAGE COLLECTION

The TRIM instruction allows the operating system to tell the solid state drive which Data blocks are never used again; otherwise the SSD controller does not know to recycle these idle data blocks. The simplicity of TRIM will greatly reduce the write load while allowing the SSD to better pre-delete idle data blocks in the background so that these data blocks can be more quickly prepared for new writes.

Since not all operating systems support TRIM, Crucial SSD has a special function called Active Garbage Collection. Active garbage collection is a process that helps SSDs maintain good performance by freeing memory sectors that are no longer in use. Garbage collection is part of the SSD itself and therefore does not depend on the computer's operating system. That is, it will work fine no matter which operating and filing system the computer uses.

But please note: Garbage collection only works when the Crucial SSD is idle, so make sure the system does not go to sleep when idle. Garbage collection takes time to complete its work, but as long as it sits idle, the Crucial SSD will maintain a high level of performance.

How to check and enable Trim support

When we purchase a new hard drive, the system of win7 or above recognizes the SSD and confirms that the hard drive supports After Trim, this function will be automatically enabled. If it is not turned on, it means that the SSD driver installed in the system is older and can be solved by downloading and installing the latest firmware.

Methods to check whether the SSD has Trim support enabled in Windows systems:

Run CMD as an administrator and enter fsutil behavior query disabledeletenotify If the displayed result is DisableDeleteNotify=0 means it is enabled. If it is 1 it means it is not enabled.

What is the function of trim function of solid state drive?

What is the function of trim function of solid state drive?

How to turn on trim

Run CMD as administrator and enter fsutil behavior set disabledeletenotify 0

What is the function of trim function of solid state drive?

How to turn off trim

Run CMD as administrator and enter fsutil behavior set disabledeletenotify 1

What is the function of trim function of solid state drive?

Instructions : After turning on Trim on SSD solid state drives, deleted or formatted files are almost impossible to recover. This is also the biggest bug of solid state drives at present. Therefore, important data is still placed on the mechanical hard drive.

For more related knowledge, please visit the FAQ column!

The above is the detailed content of What is the function of trim function of solid state drive?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!