Repository navigation
blk:Warning added for discard queue overflow - #61286
Conversation
|
@Jayaprakash-ibm, please be aware of #61455 which could be relevant to the same issue. |
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
c813147 to
7ee7c7d
Compare
7ee7c7d to
70e02be
Compare
There was a problem hiding this comment.
I would think that a discard queue would be sized in terms of ops, not in bytes. Help me understand why bytes are used here please.
s/specified limit/specified value/
... as a large backlog can obstruct the allocation of drive capacity that is marked free but not yet available. This in turn can impact system performance and storage efficiency.
double backticks around bdev_async_discard_max_pending
But back to my first question, if the queue is items, why are we thresholding on bytes instead of on items? Does the size of an entry in bytes vary? Can we make it items instead?
There was a problem hiding this comment.
Hi @anthonyeleven, thanks for the suggestions.
The discard queue is an interval_set<uint64_t>, where unprocessed discard operations are tracked as byte ranges in memory.
The bdev_discard_queue_threshold parameter defines the maximum allowable size, in bytes, of these unprocessed discard operations.
When the total size of the pending discard ranges surpasses this threshold, a health warning is triggered
There was a problem hiding this comment.
I agree with @anthonyeleven that one should track (limit) discard queue in terms of entry count not bytes. E.g. IMO having a single huge extent in the discard queue is much less critical than having tons of small extents which total the same amount of bytes.
Please see #61455 which introduces the discard queue cap in terms of entry count.
There was a problem hiding this comment.
Hi @ifed01 I see your point about tracking discard queue by entry count rather than size.
A health warning has been added for both discard queue entry count and size, as I believe limiting by size is also important.
If too many bytes accumulate in the discard queue whether from a few large discard operations or many smaller ones the allocator's performance degrades, impacting allocation quality and eventually leading to free space exhaustion.
There was a problem hiding this comment.
Now with discard queue cap introduced by #61455 shouldn't we instead raise the alert when this cap has been reached and some ops have being rejected.?The above could be coupled with some cooldown period after which the alert is removed if no discard ops have been lost.
There was a problem hiding this comment.
Hi @ifed01 Addressed the Change , raised a warn when cap has been reached
|
@Jayaprakash-ibm - mind adding perf counter(s) to monitor discard queue length in both entry count and bytes? |
02f0685 to
fad0ea4
Compare
|
jenkins test make check arm64 |
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
fad0ea4 to
582e2a7
Compare
Config Diff Tool Output+ added: bdev_discard_max_bytes (global.yaml.in)
+ added: bdev_debug_discard_sleep (global.yaml.in)
The above configuration changes are found in the PR. Please update the relevant release documentation if necessary. |
1b4e058 to
5eacc46
Compare
|
jenkins test make check arm64 |
|
jenkins test make check |
2 similar comments
|
jenkins test make check |
|
jenkins test make check |
|
jenkins test make check |
2 similar comments
|
jenkins test make check |
|
jenkins test make check |
5eacc46 to
3c19a90
Compare
|
jenkins test make check |
1 similar comment
|
jenkins test make check |
3c19a90 to
156b8bb
Compare
Added a health warning mechanism to monitor the discard queue for potential overload Emits a warning if the accumulated discarded bytes in the queue exceed the configured threshold Introduced a debugging tool to simulate slow discard operations by adding a configurable delay Fixes : https://tracker.ceph.com/issues/69082 Signed-off-by: Jaya Prakash <[email protected]>
…leep options Added a health warning mechanism to monitor the discard queue for potential overload Emits a warning if the accumulated discarded bytes in the queue exceed the configured threshold Introduced a debugging tool to simulate slow discard operations by adding a configurable delay Fixes : https://tracker.ceph.com/issues/69082 Signed-off-by: Jaya Prakash <[email protected]>
Added a health warning mechanism to monitor the discard queue for potential overload Emits a warning if the accumulated discarded bytes in the queue exceed the configured threshold Introduced a debugging tool to simulate slow discard operations by adding a configurable delay Fixes : https://tracker.ceph.com/issues/69082 Signed-off-by: Jaya Prakash <[email protected]>
156b8bb to
2e121b3
Compare
Signed-off-by: Jaya Prakash <[email protected]>
7d6e4e6 to
29b9d11
Compare
|
/config check ok |
Added a health warning mechanism to monitor the discard queue for potential overload.
Emits a warning if the accumulated discarded bytes in the queue exceed the configured threshold.
Introduced a debugging tool to simulate slow discard operations by adding a configurable delay.
Tracker Ticket : 69082
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins retest this pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test dashboard cephadmjenkins test apijenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume toxjenkins test windowsjenkins test rook e2e