erasure-code/isa: Use isa/raid's xor_gen() instead of the region_xor(…#58594
Merged
erasure-code/isa: Use isa/raid's xor_gen() instead of the region_xor(…#58594
Conversation
…) optimisation Signed-off-by: Jamie Pryde <jamiepry@uk.ibm.com>
Contributor
Author
|
jenkins test make check |
Contributor
Author
|
jenkins test make check arm64 |
1 similar comment
Contributor
Author
|
jenkins test make check arm64 |
Contributor
Author
|
Some additional data from the benchmark running in a CentOS 9 container on a macbook pro with an M1 pro CPU (ARM) |
14 tasks
Member
|
@jamiepryde looks like some decent gains in places! One question: A while back I beleive I recall that isa-l was implicated in one of the various hardware security vulnerability issues that had come up (downfall perhaps?). Do you happen to know if that could have any effect here? |
Contributor
|
@apeters1971 FYI |
Contributor
14 tasks
14 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…) optimisation
When using the ISA plugin for erasure coded pools, we use an optimisation to simplify the xor encode and decode and improve performance. This optimisation applies when m=1 in the pool's erasure code profile (or if m in the profile is greater than 1 but the technique in use is reed_sol_van and the erasure is in a data chunk or the first parity chunk).
The current optimisation does improve decoding performance, but only takes advantage of SSE2 SIMD instructions on x86-64 CPUs. The ISA xor_gen() function in the ISA raid sub-directory can take advantage of newer SIMD instructions, and so using this results in a slight improvement to decoding performance when using ISA and the correct conditions to use the optimisation are met.
This pull request removes the region_xor code which is no longer needed, and instead uses the ISA raid xor_gen() function.
I have tested this change using the ISA unit tests
And used the ceph erasure coding benchmark on an Intel Xeon Gold 6336Y CPU (TOTAL_SIZE=$((4 * 1024 * 1024 * 1024)) erasure-code/bench.sh fplot | tee erasure-code/bench.js).
Results show very similar performance encoding, but a minor improvement when decoding and M = 1, or number of erasures = 1
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