With the help of instructions on the Internet, I managed to enable TRIM in openvert.
After execution: echo unmap > /sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/host0/target0:0: 0/0:0:0:0/scsi_disk/0:0:0:0/provisioning_mode
If you use UDEV, you can automate this: ACTION=="add|change", ATTRS{idVendor}=="<VendorID>", ATTRS{idProduct}=="<ProductID>", SUBSYSTEM=="scsi_disk", ATTR{provisioning_mode}="unmap"
If we talk about a real ssd you don’t need trim. Trim was used to sort data closer to each other on old time mechanical HDD to speed up data movement (real-time defragmentation).
But SSD stores and moves data to spread out the NAND wear and tear and it moves all data with the same speed no matter of data placement on the NAND.
TRIM in SSD is essential for optimizing performance and extending the lifespan of solid-state drives by clearing out unnecessary data from memory cells that previously held deleted information, reducing cell wear and maintaining more consistent data read and write speeds.