After updating the firmware (startech) I can enable trim. But should I modify “discard_max_bytes” according to this blog https://www.jeffgeerling.com.
I have the exact same value that this guy.
Logical block length=512 bytes
Maximum unmap LBA count: 4194240
I have read a little before kernel 5.18.
The kernel’s doc says
(RW)
While discard_max_hw_bytes is the hardware limit for the device, this
setting is the software limit. Some devices exhibit large latencies when
large discards are issued, setting this value lower will make Linux issue
smaller discards and potentially help reduce latencies induced by large
discard operations.
and the jeffgeerling’s blog made a rule without a forced discard_max_hw_bytes after a reboot.
The comments and https://lemariva.com/ say to use a persistence of discard_max_bytes only if that after rebooting the system throws I/O errors, and it disables TRIM.
I will test with the simple rule without a forced discard_max_hw_bytes