-
Notifications
You must be signed in to change notification settings - Fork 8.9k
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
Increase the check interval #1082
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I understand why you want to make this change but given how narrowly scoped it is, it's not something that I'd support merging.
The eventually loops all use the default polling time from gomega. If you're willing to wait longer, ginkgo has functions that control the default times.
The method improved here is a little different from others, which emits a deliver request to the OSN every 1 ms. And it's noticed that the CPU is quite high during this polling. note (@sykesm): I mistakenly edited this comment earlier instead of replying. Apologies. I believe I've restored the original comment from history. It was not my intent to change your words. |
I really don't see how. This
10 ms, and yes, CPU is high during all poling in the integration tests. This is why I understand why you're suggesting the change and why I'm saying that the scope is so narrow as to not be helpful. Simply changing random |
Well, not sure whether it's a good idea to change the code at the same time without this issue happens. But sure, we can modify the global default polling interval of the test suite. |
This patch increase the check interval from the default 1ms to 1s when updating channel config. Originally, there will emit lots of useless checking when the channel is not ready temporarily, and waste cpu utilization. Using 1 s as the checking period is good enough for the integration test. Change-Id: I59a8689faa019adac7ca097b7c370dadf0f6c80a Signed-off-by: Baohua Yang <yangbaohua@gmail.com> Signed-off-by: Baohua Yang <baohua.yang@oracle.com>
Thanks for raising the concern via PR. I've proposed #1111 to address this at a scope that should address polling CLI operations without impacting other parts of the integration tests. |
Type of change
Description
This patch increase the check interval from the default 1ms to 1s when
updating channel config.
Originally, there will emit lots of useless checking when the channel is
not ready temporarily, and waste cpu utilization.
Using 1 s as the checking period is good enough for the integration test.