[release-v0.65.x] adding efficient polling to waitForStepsToFinish#8911
[release-v0.65.x] adding efficient polling to waitForStepsToFinish#8911pritidesai wants to merge 3 commits intotektoncd:release-v0.65.xfrom
Conversation
The current waitForStepsToFinish implementation is a classic busy-wait. It checks for file existence without any sleep, resulting in a high CPU usage. Adding a profile with a unit test to show that almost all time is spent in system calls with a high total sample count. This led to execssive CPU usage by the sidecar even when just waiting. The function now sleeps 100ms between checks, drastically reducing the frequency. The sidecar now uses minimal CPU while waiting. Signed-off-by: Priti Desai <pdesai@us.ibm.com>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
The following is the coverage report on the affected files.
|
Introducing getSidecarLogPollingInterval() to avoid repeating the same logic across two different functions. Signed-off-by: Priti Desai <pdesai@us.ibm.com>
|
The following is the coverage report on the affected files.
|
There was still a few references that makes the CI fail. This should fix it. Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
|
The following is the coverage report on the affected files.
|
|
/retest |
2 similar comments
|
/retest |
|
/retest |
|
We might need to cherry-pick this commit for the pipeline to succeed. 5f38010 |
Changes
Manual Cherry-pick of #8901
#8901 (comment)
/kind bug
Submitter Checklist
As the author of this PR, please check off the items in this checklist:
/kind <type>. Valid types are bug, cleanup, design, documentation, feature, flake, misc, question, tepRelease Notes