Project

General

Profile

Actions

Enhancement #69082

closed
AK JP

Notify with health warn if bdev discard queue gets too long.

Enhancement #69082: Notify with health warn if bdev discard queue gets too long.

Added by Adam Kupczyk about 2 years ago. Updated about 1 month ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
Due date:
% Done:

0%

Source:
Backport:
tentacle, squid
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
Fixed In:
v20.3.0-1346-g6a030faf34
Released In:
v21.2.0~2585
Upkeep Timestamp:
2026-10-24T02:19:11+00:00

Description

Some devices support discarding data - that is signalling that specific portion of data is no longer used.
In linux it is executed via ioctl(..., BLKDISCARD, ...).

Our bdev implements it.
We have a queue of discards to not affect main execution path.
The lifecycle with async discard enabled is:
[allocated]->free->add to discard queue | pick from discard queue->execute discard->[mark as free]

Problem:
Some drives are very slow in executing this operation.
This affects disk space that is seen as free by allocator.
Most of disc space that could be considered to allocation is blocked in discard queue.

Enhancement:
Emit health warn if amount of data in discard queue(s) exceeds some limit


Related issues 3 (0 open — 3 closed)

Related to bluestore - Cleanup #75983: simplify discard queue health warningBackportingJaya Prakash

Actions
Copied to bluestore - Backport #78909: tentacle: Notify with health warn if bdev discard queue gets too long.ResolvedBrad Hubbard

Actions
Copied to bluestore - Backport #80344: squid: Notify with health warn if bdev discard queue gets too long.ResolvedBrad Hubbard

Actions

NO Updated by Neha Ojha almost 2 years ago Actions #2

  • Pull request ID set to 61286

JP Updated by Jaya Prakash over 1 year ago Actions #3

  • Status changed from Fix Under Review to Resolved

JP Updated by Jaya Prakash over 1 year ago Actions #4

  • Status changed from Resolved to Fix Under Review

JP Updated by Jaya Prakash over 1 year ago Actions #5

  • Status changed from Fix Under Review to Resolved

UB Updated by Upkeep Bot over 1 year ago Actions #6

  • Merge Commit set to 6a030faf34653e8fdce13f4dbf65b055618ab314
  • Fixed In set to v20.3.0-1346-g6a030faf346
  • Upkeep Timestamp set to 2025-07-10T06:13:16+00:00

UB Updated by Upkeep Bot over 1 year ago Actions #7

  • Fixed In changed from v20.3.0-1346-g6a030faf346 to v20.3.0-1346-g6a030faf34
  • Upkeep Timestamp changed from 2025-07-10T06:13:16+00:00 to 2025-07-14T19:38:16+00:00

JP Updated by Jaya Prakash 8 months ago Actions #8

  • Related to Cleanup #75983: simplify discard queue health warning added

BH Updated by Brad Hubbard 4 months ago Actions #9

  • Status changed from Resolved to Pending Backport
  • Backport set to tentacle

UB Updated by Upkeep Bot 4 months ago Actions #10

  • Copied to Backport #78909: tentacle: Notify with health warn if bdev discard queue gets too long. added

UB Updated by Upkeep Bot 4 months ago Actions #11

  • Tags (freeform) set to backport_processed

UB Updated by Upkeep Bot 3 months ago Actions #12

  • Status changed from Pending Backport to Backporting
  • Tags (freeform) deleted (backport_processed)
  • Upkeep Timestamp changed from 2025-07-14T19:38:16+00:00 to 2026-08-27T18:03:50+00:00

BH Updated by Brad Hubbard 3 months ago Actions #13

  • Backport changed from tentacle to tentacle, squid

BH Updated by Brad Hubbard 3 months ago Actions #14

Let's try and get this in squid too if not too late.

BH Updated by Brad Hubbard 3 months ago Actions #15

  • Status changed from Backporting to Pending Backport

UB Updated by Upkeep Bot 3 months ago Actions #16

  • Copied to Backport #80344: squid: Notify with health warn if bdev discard queue gets too long. added

UB Updated by Upkeep Bot 3 months ago Actions #17

  • Status changed from Pending Backport to Backporting
  • Upkeep Timestamp changed from 2026-08-27T18:03:50+00:00 to 2026-09-08T00:47:07+00:00

UB Updated by Upkeep Bot about 1 month ago Actions #18

  • Status changed from Backporting to Resolved
  • Upkeep Timestamp changed from 2026-09-08T00:47:07+00:00 to 2026-10-21T01:40:23+00:00

UB Updated by Upkeep Bot about 1 month ago Actions #19

  • Released In set to v21.2.0~2585
  • Upkeep Timestamp changed from 2026-10-21T01:40:23+00:00 to 2026-10-24T02:19:11+00:00
Actions

Also available in: PDF Atom