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

Reduce CPU usage by reusing stringstream in stringify function #6543

Merged
merged 2 commits into from Nov 28, 2015

Conversation

efirs
Copy link

@efirs efirs commented Nov 11, 2015

About 10% CPU reduction and 10% TPS bump in CPU bound workload.
Blanks in the fourth column is saved CPU after the change.

screen shot 2015-10-07 at 11 10 15 am

…tion

About 10% CPU reduction and 10% TPS bump in CPU bound workload.

Signed-off-by: Evgeniy Firsov <evgeniy.firsov@sandisk.com>
@XinzeChi
Copy link
Contributor

@efirs , what tools do you use to generate this image? is it public?

@efirs
Copy link
Author

efirs commented Nov 12, 2015

what tools do you use to generate this image? is it public?

It is Intel vtune.

Signed-off-by: Evgeniy Firsov <evgeniy.firsov@sandisk.com>
@yuyuyu101
Copy link
Member

LGTM... but the performance difference is still a shock to me. The perf is applied in the osd process level or a specified thread?

@efirs
Copy link
Author

efirs commented Nov 13, 2015

@yuyuyu101 Its full osd process profile.

liewegas added a commit that referenced this pull request Nov 28, 2015
common: reduce CPU usage by making stringstream in stringify function thread local

Reviewed-by: Haomai Wang <haomai@xsky.com>
Reviewed-by: Sage Weil <sage@redhat.com>
@liewegas liewegas merged commit 7b90b50 into ceph:master Nov 28, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants