Repository navigation
cephfs: add "entry_timeout" and "attr_timeout" options - #44593
xieshengGZ wants to merge 2 commits into
Conversation
|
jenkins test make check |
|
jenkins test api |
|
jenkins test api |
xiubli
left a comment
There was a problem hiding this comment.
At the same please add one test in qa to make sure this won't introduce the issue in https://tracker.ceph.com/issues/53730#note-5.
|
LGTM.
Please add the test case. |
I'll spend some time learning about how to add test cases. |
This looks good to me, no any new change needed from me.
|
Thank you so much, man! |
|
I'm just a little worried about this one. I see that the config description does say "If directory entries are changed/deleted only as a result of requests that come through the kernel, this should be set to a very large value", but I'm not sure if that adequately conveys to users "your consistency will break if you have other clients on the same data". Is there some way we can gate this? :/ |
Hmm, I think there still has one thing we need to make clear, that is if these two options are enabled and they are cached in kernel will it be possible that the new changes only be applied in kernel cache ? If the caches are readonly in kernel I think the #44432 should be enough. @xieshengGZ Could you check this ? |
I've already tested when both options are enabled,it won't be a problem. The new changes not only be applied in kernel cache,all cache will sync to other client. |
I went through the kernel fuse code, the fuse won't depend on them to cache the changes and it will always send a request to userspace when any attribute will be changed. That means all the related caches are readonly in kernel fuse. |
There was a problem hiding this comment.
@xieshengGZ This desc is not precise here. Please fix it.
Something like:
This will tell kernel how long could the dentry be cached in dcache, once enabled this should be set to a very large value.
There was a problem hiding this comment.
Well!Why should this value be set very large ?
I don't think I was clear. With just this PR, my understanding is that the kernel will cache dentries for the given time period — so if the MDS revokes caps, the Client will drop its local caps and cache, but the actual programs running and making syscalls will read cached data out of the kernel without ever talking to our Client code. Your related PR #44432 does schedule a cache drop in the kernel, but I believe that's asynchronous — so the cache drop could happen after the Client has replied to the MDS that it's stopped using caps and other system state has changed, while the local user has read cached data which is out of date. Perhaps I'm misremembering or misunderstanding, but the kernel cache consistency has been an off-and-on-again problem with ceph-fuse for quite a while... |
I just missed that they both should also depend on and get references for the relevant shared caps before caching and setting the timedouts in the lookup reply, or the timeouts should be disabled dynamically in the reply.
Yeah, right, I was aware of this problem. It should be handled synchronously in this case.
|
891f38e to
5dc3196
Compare
xiubli
left a comment
There was a problem hiding this comment.
Please fix the issue mentioned in #44593 (comment).
Sorry, I'm not sure what needs to be fixed. Check whether the cache in the kernel is read-only? |
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
c5efe1e to
ced6d6f
Compare
I changed: Cache the dentries when the inode have CEPH_CAP_ANY_SHARED caps. |
Fuse provides the ability to cache the entry and attr, but cephfs is not used, so I add it to improve performance. Signed-off-by: Sheng Xie <[email protected]>
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
|
Hello everyone, let me summarize this pr.
|
|
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 pull request has been automatically closed because there has been no activity for 90 days. Please feel free to reopen this pull request (or open a new one) if the proposed change is still appropriate. Thank you for your contribution! |
|
@xieshengGZ Please rebase and add ceph/cephfs to reviewers so that this PR can move one step closer to getting merged. :) |
Signed-off-by: xieshengGZ <[email protected]>
|
The commit: Merge branch 'main' into new44593 doesn't seem to be a correct rebase. Remove the merge commit and instead do a |
@xieshengGZ You still need to fix this. Thanks. |
|
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 pull request has been automatically closed because there has been no activity for 90 days. Please feel free to reopen this pull request (or open a new one) if the proposed change is still appropriate. Thank you for your contribution! |
Fuse provides the ability to cache the entry and attr, but cephfs is not used, so I add it to improve performance.
Thank lxbsz fix consistency problem: #44432
The following Fixed contains the test data before and after modification:
Fixes: https://tracker.ceph.com/issues/53730
Signed-off-by: Sheng Xie [email protected]
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 tox