-
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
[feat]curvefs/client: split io attr/data latency #2824
[feat]curvefs/client: split io attr/data latency #2824
Conversation
374bc6e
to
8d2d8a0
Compare
cicheck |
@@ -220,6 +217,15 @@ CURVEFS_ERROR FuseS3Client::FuseOpWrite(fuse_req_t req, fuse_ino_t ino, | |||
} | |||
|
|||
inodeWrapper->GetInodeAttrLocked(&fileOut->attr); | |||
|
|||
if (fsMetric_.get() != nullptr) { |
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.
should we remove this metric?
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.
no, this pr only care about latency.
::curve::common::UniqueLock lgGuard = inodeWrapper->GetUniqueLock(); | ||
inodeWrapper->UpdateTimestampLocked(kAccessTime); | ||
inodeManager_->ShipToFlush(inodeWrapper); | ||
ioLatencyMetric_->readDataLatency << butil::cpuwide_time_us() - mid; |
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.
read data latency should put before L274?
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
Signed-off-by: Cyber-SiKu <[email protected]>
8d2d8a0
to
4072787
Compare
What problem does this PR solve?
Issue Number: #xxx
Problem Summary:
What is changed and how it works?
What's Changed:
How it Works:
Side effects(Breaking backward compatibility? Performance regression?):
Check List