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

测试ping pong发现,发送包数据量接近或者超过带宽,吞吐量测试是不准确的? #712

Open
muyiwq opened this issue Aug 9, 2024 · 3 comments

Comments

@muyiwq
Copy link

muyiwq commented Aug 9, 2024

您好,性能测试中pingpong中接受字节数,是通过Buffer * buf->readableBytes();获取的,当发送数据量接近或超过带宽,这个buf->readableBytes();读到的值是偏大的,原因就在于可能存在上一次未发送完毕的数据,重复计算了。

@ggandycong
Copy link

ggandycong commented Aug 9, 2024 via email

@muyiwq
Copy link
Author

muyiwq commented Aug 9, 2024

如果发送端一直超过带宽后续还在不停地发送数据,会有发送超时的逻辑吗?如果长时间处于这种状态,发送缓存内存会增加吗?

@muyiwq
Copy link
Author

muyiwq commented Aug 9, 2024

如何能知道带宽已经到瓶颈了,我这边需要放缓发送速率,从而保证带宽一直处于一个满负载的状态

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

No branches or pull requests

2 participants