Actions
Feature #38494
openBluestore: issue discards on everything non-discarded during deep-scrubs
Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
% Done:
0%
Source:
Community (user)
Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:
Description
Yes, we have bdev_enable_discard and bdev_async_discard, but they are not documented.
Ubuntu issues 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.
Actions