suaefar / ryzen-test

Tools to reproduce randomly crashing processes under load on AMD Ryzen processors on Linux
GNU General Public License v3.0
224 stars 59 forks source link

Remove discard mount option on ramdisk #12

Closed damentz closed 7 years ago

damentz commented 7 years ago

Discard should only be enabled for block devices that expose ATA_TRIM, such as SSDs. Ram disks don't and shouldn't expose ATA_TRIM, and don't suffer from wear the same way SSDs do.

Closes suaefar/ryzen-test#11

suaefar commented 7 years ago

Hi!

Thank you for your input! zram seems to support REQ_DISCARD [1].

[1] https://lwn.net/Articles/588383/