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

tools/rados: reduce "rados put" memory usage by op_size #7928

Merged
merged 1 commit into from Mar 9, 2016

Conversation

branch-predictor
Copy link
Contributor

indata.append(char*, len) causes buffer "buf" to be physically copied
to new memory block. Make static buffer pointing to buf so we don't need
any intermediate copies. This reduces memory usage by op_size, and also
cpu usage by a bit (no memmove necessary).

Signed-off-by: Piotr Dałek piotr.dalek@ts.fujitsu.com

@branch-predictor branch-predictor changed the title tools/rados: reduce rados put memory usage by op_size tools/rados: reduce "rados put" memory usage by op_size Mar 4, 2016
@tchaikov
Copy link
Contributor

tchaikov commented Mar 7, 2016

lgtm.

indata.append(char*, len) causes buffer "buf" to be physically copied
to new memory block. Make static buffer pointing to buf so we don't need
any intermediate copies. This reduces memory usage by op_size, and also
cpu usage by a bit (no memmove necessary).

Signed-off-by: Piotr Dałek <piotr.dalek@ts.fujitsu.com>
liewegas added a commit that referenced this pull request Mar 9, 2016
tools/rados: reduce "rados put" memory usage by op_size

Reviewed-by: Kefu Chai <kchai@redhat.com>
@liewegas liewegas merged commit 96face6 into ceph:master Mar 9, 2016
@branch-predictor branch-predictor deleted the bp-radostool-reduce-mem branch January 24, 2018 11:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants