Project

General

Profile

Feature #38494

Bluestore: issue discards on everything non-discarded during deep-scrubs

Added by Марк Коренберг about 5 years ago. Updated about 5 years ago.

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.

https://github.com/ceph/ceph/pull/20723

History

#1 Updated by Марк Коренберг about 5 years ago

text formatting of previous message is wrong. I did not want to stroke-out the text.

#2 Updated by Марк Коренберг about 5 years ago

Included link is just related PR.

#3 Updated by Nathan Cutler about 5 years ago

  • Description updated (diff)

#4 Updated by Greg Farnum about 5 years ago

  • Project changed from Ceph to bluestore

Also available in: Atom PDF