client: readdir_r_cb: get rstat for dir only if using rbytes for size#46960
client: readdir_r_cb: get rstat for dir only if using rbytes for size#46960rishabh-d-dave merged 2 commits intoceph:mainfrom
Conversation
vshankar
left a comment
There was a problem hiding this comment.
LGTM. @rishabh-d-dave please pick thi sup in your next test run.
|
@xdavidwu Following job failed integration tests several times. http://pulpito.front.sepia.ceph.com/rishabh-2023-03-03_21:39:49-fs-wip-rishabh-2023Mar03-2316-testing-default-smithi/7193834 And when this PR was removed from the testing branch this jobs passed - So this failure is due to this PR. Please take a look. When this PR is ready for testing, please let me know. I'll put it through test again. |
30c8546 to
b43e31c
Compare
|
@rishabh-d-dave Thanks, I think this is ready for another test round. |
@xdavidwu Could you describe the bug that @rishabh-d-dave found in the test run and the fix? Its becomes helpful to not go over the entire changes again. |
|
I think the cause of test failures were that in tests, ceph-fuse get the The original intention is to prevent In the newer version, |
Ah! I see |
|
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. |
rishabh-d-dave
left a comment
There was a problem hiding this comment.
Tests were successful - https://tracker.ceph.com/projects/cephfs/wiki/Main#13-Jul-2023
When `client_dirsize_rbytes` is off, there should be no need for getting rstat on readdir operations. This fixes performance when `client_dirsize_rbytes` is off after ceph#38222. Fixes: https://tracker.ceph.com/issues/61999 Signed-off-by: Pinghao Wu <xdavidwuph@gmail.com>
kclient also has this option, and is unchangeable unless remounted. Let's keep parity with kclient. Signed-off-by: Pinghao Wu <xdavidwuph@gmail.com>
|
@xdavidwu Hi. The tests ran successfully. This PR is ready for merge. But this patch needs to backported to older version of Ceph and therefore a tracker ticket is required. I've created the tracker ticket for you - https://tracker.ceph.com/issues/61999. You need to refer it in your commit message by adding this line: Thank you for the contributing to CephFS. :) |
b43e31c to
a66e969
Compare
a66e969 to
05a48a4
Compare
|
@xdavidwu I've just updated the commit message for you (earlier I couldn't update the PR branch). |
Oh, on a refresh I see you had done it already. I am sorry about that. Feel free to push again if there's some mistake in branch I've pushed. Sorry to bother you. This would've been unnecessary if I pushing to your branch was successful earlier. |
When
client_dirsize_rbytesis off, there should be no need for gettingrstat on readdir operations.
This fixes performance when
client_dirsize_rbytesis off after #38222.Fixes: https://tracker.ceph.com/issues/61999
Signed-off-by: Pinghao Wu xdavidwuph@gmail.com
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. "pacific"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
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 windows