Repository navigation
os/bluestore: Add CoDel to BlueStore for Bufferbloat mitigation - #43413
Conversation
53550b1 to
4e21d5e
Compare
|
I'll get into this properly tomorrow. |
|
I think that's sufficient for a first pass. Main feedback is to refactor BlueStoreSlowFastCoDel into a separate file with at least a basic unit test along with general whitespace/formatting fixes. |
38ddedd to
1cfd41f
Compare
5fcd0eb to
77e7c7f
Compare
|
@esmaeil-mirvakili Have @aclamk 's comments above been addressed? |
77e7c7f to
8b260f7
Compare
Signed-off-by: Esmaeil Mirvakili <[email protected]>
…luestore/BlueStoreSlowFastCoDel added Signed-off-by: Esmaeil Mirvakili <[email protected]>d
8b260f7 to
ba35015
Compare
|
@esmaeil-mirvakili Is this ready for review? |
|
@athanatos It is ready for review, but something is wrong with the checks. I'll run them again. |
|
jenkins test docs |
|
jenkins test make check |
|
@aclamk Can you take another look? I'm inclined to get this merged sooner rather than later to make testing/iteration easier. It's off by default and (imho) pretty well isolated from the rest of BlueStore, so it should be low risk. |
aclamk
left a comment
There was a problem hiding this comment.
I do think now that we should merge this.
I do not think it is ready right now to enable and give to customer,
but it is an important framework that we must have to even be able to improve on actual adaptation algorithm.
|
@athanatos @esmaeil-mirvakili seems like this PR is causing failures like https://jenkins.ceph.com/job/ceph-pull-requests/94227/consoleFull#14584389247725d52c-2930-43cb-b77a-ae0a919c2170. I suspect it is the same failure which was seen in https://trello.com/c/OmPlJ1pq/1513-wip-yuri4-testing-2022-04-22-0932#comment-626317e677cc78785021032d |
|
|
I'm going to go ahead and revert it for now. |
|
I checked the error and the code, it seems that the problem is only the tests. For implementing the interval-based loops in codel, I used the SafeTimer similar to https://github.com/ceph/ceph/blob/a9cb584d3f07ab30a69883f21b309e8072cc8237/src/test/common/test_lockdep.cc#L19. However the same code is working in other parts of ceph, it can fail when CEPH_DEBUG_MUTEX is defined. When this macro is defined, the timer does some double-checks on mutex lock which will not work with this usage of timer. ceph/src/test/common/test_lockdep.cc Line 19 in a9cb584 |
|
@esmaeil-mirvakili Which double check is it failing? |
|
It is checking that the timer mutex is locked when calling "add_event_after" here. We didn't have any problem with tests before, has something changed in tests or tests after merge are different? |
|
The reason for that check is that failing to lock the timer mutex when calling add_event_after causes elements of the safe_timer api to have race conditions. Are you quite sure that your implementation is actually correct without holding the lock? |
|
@esmaeil-mirvakili Were you able to look into holding the lock while using add_event_after? |
The CoDel algorithm has been implemented in the BlueStore to mitigate bufferbloat in the BlueStore backend. The CoDel algorithm limits the number of transactions submitted to BlueStore. The number of transactions is defined using a dual-loop optimization mechanism. The inner (fast) loop minimize the latency by limiting submitted transaction, and the outer (slow) loop control the inner loop to achieve a tradeoff between throughput and latency.
For more information refer to Ceph Code Walkthroughs: CoDel for BlueStore video and presentation.
Signed-off-by: Esmaeil Mirvakili [email protected]
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 tox