Discard should be whitelisted for bcache devices
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ceph OSD Charm |
Triaged
|
Wishlist
|
Unassigned |
Bug Description
Discard should be whitelisted for bcache devices
Currently should_
We should also add exceptions for bcache devices, as bcache supports Discard and will prune data in the cache that hasn't yet been written back to the backing disks and prevent the no longer required data from being written.
This is a critical optimization since bluestore is Copy-On-Write. If data is changed its written to a new area of the disk each time - so the same data being overwritten multiple times will get written back to the backing disk multiple times without Discard enabled.
Changed in charm-ceph-osd: | |
status: | New → Triaged |
importance: | Undecided → Wishlist |
May also need to check if vault is enabling trim to allow this to work in practice: https:/ /tracker. ceph.com/ issues/ 36532