Repository navigation
crimson/os/seastore: add checksum offload to RBM - #57782
Conversation
1f1f526 to
b31a461
Compare
There was a problem hiding this comment.
| desc: use nvme device's internal checksum feature without using sever CPU | |
| desc: use NVME device's internal checksum feature without using server CPU |
|
@cyx1231st Before continuing development on this further, I'd like to hear your thoughts on this to make sure I'm on the right track. This PR introduces end-to-end-protection (I will also call this the checksum offload, also note that end-to-end-protection contains the checksum offload) functionality, also known as Protect information specified in NVMe spec, provided by modern NVMe devices (please refer to section 8.3 and Figure 452-(c) in https://nvmexpress.org/wp-content/uploads/NVM-Express-1_4-2019.06.10-Ratified.pdf). We have tested this under Samsung NVMe device (PM1743) and Kioxia (KCM61RUL3T84), both of which are based on NVMe Spec 1.4. Please note that end-to-end-data-protection functionality contains a various types of modes as explained in Figure 452. |
|
(unrelated, random thoughts) |
|
@cyx1231st I will update the most recent number soon. Please note that RBM shows 4 K IOPS and Segment shows 3.5 K IOPS under random 4K write workload (RBD, 1 core). This result was measured two month ago. |
58a025c to
399a307
Compare
|
@cyx1231st Can you check if I addressed your comments correctly? |
cyx1231st
left a comment
There was a problem hiding this comment.
The direction generally looks good to me.
dbfe866 to
6e65698
Compare
|
jenkins test make check |
|
How this PR may impact the end performance using RBM (with vs without crc offloading) ? I assume 4K IOPS RBM performance didn't include this PR? |
cyx1231st
left a comment
There was a problem hiding this comment.
I don't have further concerns. CC @athanatos @xxhdx1985126
Right. the performance result didn't include this PR. I'll re-check the performance number. |
|
@cyx1231st I'm trying to figure out why the number is lower than the previous result.
|
|
@myoungwon how is the results with this PR and |
There is no difference. However, in 64K random write workload (no filled), the result with PR shows a 10 % improvement (2515 vs 2782). It seems like checksum offload affects the performance more positively when the extent is relatively large (because this PR only affects fresh extents, not mutated extents). |
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
|
A rebase is needed^ |
Signed-off-by: Myoungwon Oh <[email protected]>
…fs if possible Signed-off-by: Myoungwon Oh <[email protected]>
… to end data protection is enabled Signed-off-by: Myoungwon Oh <[email protected]>
Current codes allow the device to allocate multiple namespace without specific policy if the nvme device report that it is capable of mutistream functionality. So, this commit removes the multistream related code, leaving it as a TODO. Signed-off-by: Myoungwon Oh <[email protected]>
Signed-off-by: Myoungwon Oh <[email protected]>
…ction is enabled Signed-off-by: Myoungwon Oh <[email protected]>
…e supports the checksum offload Signed-off-by: Myoungwon Oh <[email protected]>
The goal of this PR is to introduce checksum offload by using end to end data protection specified by NVMe spec.
Reference: https://nvmexpress.org/specification/nvm-command-set-specification/
https://en.wikipedia.org/wiki/Data_Integrity_Field
Signed-off-by: Myoungwon Oh [email protected]
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