Post by sabbirislam258 on Feb 14, 2024 6:06:41 GMT -3
Quite often, novice administrators have questions about the speed of operation of SSD drives, which constantly work in a busy mode, that is, have a significant density of write / read operations. In this case, the speed of their work is significantly reduced due to an unsuccessfully configured data arrangement mechanism, which is the main cause of the troubles. Forced inclusion of Periodic TRIM will help to solve this problem. Let's consider in more detail how this can be done using the example of an SSD storage built on the basis of a server running Ubuntu 22.04 . Features of writing / reading information in SSD drives SSD drives in the context of Linux systems are block devices that form a block storage. This terminology is related to the fact that the kernel of the Linux system interacts with the hardware part of the device, referring to blocks of fixed size, which form data storage units of different levels. The smallest unit is a page. The largest is a block consisting of several pages.
Proper configuration of any block device makes it possible to Bulgaria Telemarketing Data organize an effective data storage, in which the impact of the load on the real speed of the device's work with data is actually completely excluded. At the same time, the configuration methods to some extent depend on the type of operating system, and not only on the type of device. We recommend reading the article " LINUX 24 PHP Security Tips for System Administrators ". SSD drives are capable of handling both blocks and pages of data. That is, they can perform write / read operations also at the level of individual pages, not only blocks. However, the operations of cleaning the used data can be performed by them only at the block level. As a result, SSD drives cannot independently carry out the entire range of necessary data maintenance operations, but only through the file system, which, in particular, provides them with information about blocks with outdated data. The essence of configuring such devices is to manage the file system commands to the data that is intended for deletion.
Commands of this type are called TRIM commands. Only after its arrival, the storage processor activates the next phase of cleaning or zeroing pages with outdated information, which ultimately closes the circle of the life cycle of storage data: write-read-delete . At the same time, the pages of the data space are being prepared for accepting a new portion of information, i.e., a kind of "updating" of the storage. SSD storage data organization problems An ideal SSD data storage should function in such a way that, firstly: the cleaning phase is performed only in automatic mode; secondly: the cleaning phase should occur at the time of the least load on the media. Only when the specified conditions are met can we talk about the efficient use of SSD storage. In Linux systems, by default, the initialization of the cleaning phase or the appearance of the corresponding TRIM command of the file system of the drive occurs after each data deletion operation, which leads to slowing down of the device during heavy loads.
Proper configuration of any block device makes it possible to Bulgaria Telemarketing Data organize an effective data storage, in which the impact of the load on the real speed of the device's work with data is actually completely excluded. At the same time, the configuration methods to some extent depend on the type of operating system, and not only on the type of device. We recommend reading the article " LINUX 24 PHP Security Tips for System Administrators ". SSD drives are capable of handling both blocks and pages of data. That is, they can perform write / read operations also at the level of individual pages, not only blocks. However, the operations of cleaning the used data can be performed by them only at the block level. As a result, SSD drives cannot independently carry out the entire range of necessary data maintenance operations, but only through the file system, which, in particular, provides them with information about blocks with outdated data. The essence of configuring such devices is to manage the file system commands to the data that is intended for deletion.
Commands of this type are called TRIM commands. Only after its arrival, the storage processor activates the next phase of cleaning or zeroing pages with outdated information, which ultimately closes the circle of the life cycle of storage data: write-read-delete . At the same time, the pages of the data space are being prepared for accepting a new portion of information, i.e., a kind of "updating" of the storage. SSD storage data organization problems An ideal SSD data storage should function in such a way that, firstly: the cleaning phase is performed only in automatic mode; secondly: the cleaning phase should occur at the time of the least load on the media. Only when the specified conditions are met can we talk about the efficient use of SSD storage. In Linux systems, by default, the initialization of the cleaning phase or the appearance of the corresponding TRIM command of the file system of the drive occurs after each data deletion operation, which leads to slowing down of the device during heavy loads.