-
Notifications
You must be signed in to change notification settings - Fork 527
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
curvefs/client: optimizing the read amplification problem(especial me… #2792
curvefs/client: optimizing the read amplification problem(especial me… #2792
Conversation
7b68cd8
to
52b31c7
Compare
cicheck |
29e40b3
to
f98ba2e
Compare
cicheck |
710590c
to
0c6705e
Compare
cicheck |
0c6705e
to
fcba9a4
Compare
cicheck |
fcba9a4
to
5f69732
Compare
e21d0cc
to
25d5735
Compare
cicheck |
25d5735
to
339a471
Compare
cicheck |
1 similar comment
cicheck |
339a471
to
f9d52b3
Compare
@@ -0,0 +1,307 @@ | |||
/* | |||
* Copyright (c) 2021 NetEase Inc. |
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.
2021
-> 2023
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.
fix
LOG(WARNING) << "download object: " << name << " timeout"; | ||
return false; | ||
} | ||
} while (!s3ClientAdaptor_->GetDiskCacheManager()->IsCached(name)); |
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.
There are multi same operations, maybe you can use one function to replace this chain operation.
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.
fix
c025a09
to
17a4874
Compare
cicheck |
cicheck |
199e246
to
ab4d997
Compare
ab4d997
to
a954b46
Compare
cicheck |
@201341 PTAL |
…mcached)
memcached does not support partial reads (object size:4MB in Curve) of an object, but the io will not exceed 128KB in linux kernel(1MB in kernel 4.20+).so for sequential reads, this will cause memcached write amplification is:4MB/128KB = 40 .
To solve this problem, we cache the first read memcached object locally.