Skip to content

Conversation

@Tuvie
Copy link
Contributor

@Tuvie Tuvie commented May 30, 2023

What problem does this PR solve?

Issue Number:

Problem Summary:

What is changed and the side effects?

Changed: For convenience of debugging, allow user disabling send size zerocopy with gflags rdma_send_zerocopy

Side effects:

  • Performance effects(性能影响): If user does not set rdma_send_zerocopy to false, there is no effect for performance

  • Breaking backward compatibility(向后兼容性):


Check List:

  • Please make sure your changes are compilable(请确保你的更改可以通过编译).
  • When providing us with a new feature, it is best to add related tests(如果你向我们增加一个新的功能, 请添加相关测试).
  • Please follow Contributor Covenant Code of Conduct.(请遵循贡献者准则).

@Tuvie Tuvie mentioned this pull request May 30, 2023
@yanglimingcn
Copy link
Contributor

请问什么情况下需要zero copy,什么情况下不能做zero copy呢?

@Tuvie
Copy link
Contributor Author

Tuvie commented May 31, 2023

理论上都应该做zero copy。关闭zery copy主要用来做debug。

@yanglimingcn
Copy link
Contributor

ok

return -1;
}
len = from[current]->copy_to(buf, len);
base::IOBuf tmp;
Copy link
Contributor

Choose a reason for hiding this comment

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

use of undeclared identifier 'base'

@Tuvie Tuvie force-pushed the master branch 3 times, most recently from 726ee54 to 9f7bce0 Compare June 2, 2023 07:44
@wwbmmm
Copy link
Contributor

wwbmmm commented Jun 25, 2023

bazel compile failed:
example/rdma_performance/client.cpp:91: error: undefined reference to 'brpc::rdma::RegisterMemoryForRdma(void*, unsigned long)'
@Tuvie

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.

4 participants