Skip to content
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

Merged

Conversation

Cyber-SiKu
Copy link
Contributor

What problem does this PR solve?

Issue Number: #xxx

Problem Summary:

What is changed and how it works?

image

What's Changed:

How it Works:

Side effects(Breaking backward compatibility? Performance regression?):

Check List

  • Relevant documentation/comments is changed or added
  • I acknowledge that all my contributions will be made under the project's license

@Cyber-SiKu Cyber-SiKu force-pushed the feat/curvefs/client/io_split_metric branch 2 times, most recently from 374bc6e to 8d2d8a0 Compare October 23, 2023 05:51
@Cyber-SiKu
Copy link
Contributor Author

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) {
Copy link
Contributor

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?

Copy link
Contributor Author

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;
Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix

@Cyber-SiKu Cyber-SiKu force-pushed the feat/curvefs/client/io_split_metric branch from 8d2d8a0 to 4072787 Compare October 23, 2023 07:02
@Cyber-SiKu Cyber-SiKu closed this Oct 23, 2023
@Cyber-SiKu Cyber-SiKu reopened this Oct 23, 2023
@Cyber-SiKu Cyber-SiKu merged commit 5f76eaf into opencurve:master Oct 23, 2023
@Cyber-SiKu Cyber-SiKu deleted the feat/curvefs/client/io_split_metric branch October 23, 2023 11:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants