-
Notifications
You must be signed in to change notification settings - Fork 317
DAOS-17550 object: refine dc_array_set_size processing #16404
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: release/2.6
Are you sure you want to change the base?
Conversation
Ticket title is 'truncating an EC file to 0 does not work on the first try' |
a1cdd6f
to
8d8f3ec
Compare
@@ -3573,7 +3573,7 @@ merge_key(struct dc_object *obj, d_list_t *head, char *key, int key_size) | |||
|
|||
d_list_for_each_entry(key_one, head, key_list) { | |||
if (key_size == key_one->key.iov_len && | |||
strncmp(key_one->key.iov_buf, key, key_size) == 0) { | |||
memcmp(key_one->key.iov_buf, key, key_size) == 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes that makes sense because integer dkeys are not strings
i have not tested on aurora yet, but will do soon |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
im going to revert my +1 because the performance of the patch on aurora increases by 5x.
i just tested the memcmp fix, and that works as expected.
but the "improvement" in the array code made truncate worse my 5x:
With 4:26.38 minutes
Without 0:50.03 minutes
let's remove the other changes from the PR and just keep the memcmp fix please
8d8f3ec
to
353b125
Compare
could you please test again with the refreshed PR? the original code only list 5 dkeys every time it looks not very good, you may tune the number of "ENUM_DESC_NR_MAX" and the nr/buf_size in sub_anchors_prep() to see what is better on aurora. thanks |
353b125
to
e59cc18
Compare
1. use memcmp rather than strncmp in merge_key strncmp can cause some keys be incorrectly ignored 2. refine list dkey by providing more memory to save RPC round-trip. Signed-off-by: Xuezhao Liu <[email protected]>
e59cc18
to
ec06fbf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
verified functional and performance is back to normal
Test stage Functional Hardware Medium Verbs Provider completed with status FAILURE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net//job/daos-stack/job/daos/view/change-requests/job/PR-16404/2/execution/node/1372/log |
Steps for the author:
After all prior steps are complete: