Repository navigation
Conversation
59cbd28 to
c6cee1a
Compare
There was a problem hiding this comment.
a comment indicating what teh values mean?
There was a problem hiding this comment.
wouldn't this also adjust all of the extents_index values?
There was a problem hiding this comment.
yeah, indeed. Will fix.
There was a problem hiding this comment.
i think this will be ambiguous in the SEEQUENTIAL, WILLNEED, WONTNEED cases.. I think only call _got_hint for RANDOM and SEQUENTIAL
There was a problem hiding this comment.
OK, thanks. Missed that there are more than 2 hint values
There was a problem hiding this comment.
i'm having trouble following what the bheavior here is supposed to be here.. there is track_read that remembers the previous sequence, and then this here that indicates whether the current recently is more than 2 sequential reads. Is the idea that if you do _buffered here, then the OS-level prefetching will kick in?
There was a problem hiding this comment.
track_read increments active sequence counter if sequence is in progress and resets it on sequence termination (and returns true to indicate the end and memorize prev sequence to be able to dump it). While sequence is in progress (3+ hits occurred) we can read longer chunks and buffer them and use previously buffered data, all this stuff is handled within _ read_random_buffered().
c6cee1a to
ad592a8
Compare
|
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Signed-off-by: Igor Fedotov <[email protected]>
Signed-off-by: Igor Fedotov <[email protected]>
Signed-off-by: Igor Fedotov <[email protected]>
Signed-off-by: Igor Fedotov <[email protected]>
ad592a8 to
6fe1daf
Compare
cf4c75d to
475d065
Compare
Signed-off-by: Igor Fedotov <[email protected]>
475d065 to
907a4f8
Compare
|
Some observations we've got attempting this patch during debug session at production cluster facing slow omap key enumeration. (max_prefetch_size = 128K) One can see pretty large amount of read requests needed to process single object omap listing with just two records. |
|
Here is per-ino sequential read stats we collected: |
|
My understanding is that latest rocksdb master already implements readahead, so this PR is only relevant for luminous + mimic, right? If that' s the case, then this looks great and should be sufficient to mitigate the problem for those stable releases. Or do you think we should keep this in master, too? |
I'll try to arrange next debug session to verify the same case against Nautilus code base and share the results if any. |
|
@liewegas Latest rocksdb does do iterator readahead (I believe older versions should do compaction readahead and we do make use of it). I'm not sure if we should consider backporting the latest release given some of the issues we've had in the past, but the performance gain with iterator readahead can be significant for us in some circumstances from what I recall when I looked into it. |
|
This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days. |
This is an intermediate result for an attempt to improve BlueFS read performance.
It includes 2 major fixes:
Unfortunately I don't see any visible performance difference in my (quite limited) benchmark. Perhaps the reason is that BlueFS reads don't impact overall performance that much. Although these "semi-random" patterns are quite observable.
And it seems that introduced performance counters show inappropriate numbers (maybe concurrency issue?). Which I'll investigate anyway.
Wondering if this work in general deserves any prolongation?
Signed-off-by: Igor Fedotov [email protected]