Feature #38494
Updated by Nathan Cutler about 5 years ago
Yes, we have bdev_enable_discard and bdev_async_discard, but they are not documented. Ubuntu issues <code>fstrim -a</code> `fstrim -a` once a week using Crond. So I propose same functionality, but for bluestore: to discard everything no yet discarded on a timer basis. Discards may freeze drive significantly, so if drive is already busy doing deep-scrub -- it is worse to issue discards somewhere during this process. Maybe it should be separate interval -- I don't know. Maybe special OSD command for that. Also, for Filestore is can be implemented using external fstrim command. https://github.com/ceph/ceph/pull/20723