OCPBUGS-17791: opm: always serve pprof endpoints, improve server allocations (#1129)#540
Conversation
…ift#1129) * pkg/cache: use a shared buffer to limit allocations Previously, new buffers were allocated on each file we read in, which was unnecessary and wasteful. Signed-off-by: Steve Kuznetsov <skuznets@redhat.com> * cmd/opm: serve pprof endpoints by default There is no substantial runtime cost to serving pprof endpoints, and when things hit the fan and we need to investigate performance in situ, there is no time to restart pods and change flags. Capturing profiles remains opt-in, since those are costly. Signed-off-by: Steve Kuznetsov <skuznets@redhat.com> --------- Signed-off-by: Steve Kuznetsov <skuznets@redhat.com> Upstream-repository: operator-registry Upstream-commit: 68e13df96590977370ffcd1a8e9ff76e0f2a03f2 Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
|
@stevekuznetsov: This pull request references Jira Issue OCPBUGS-17695, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
can you link to the 4.14 version of this PR so we can confirm it went into 4.14 before backporting to 4.13? |
|
/retest |
|
/label backport-risk-assessed |
|
/retest |
|
@stevekuznetsov: No Jira issue is referenced in the title of this pull request. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
/jira cherry-pick OCPBUGS-17758 |
|
/jira cherrypick OCPBUGS-17758 |
|
@stevekuznetsov: Jira Issue OCPBUGS-17758 has been cloned as Jira Issue OCPBUGS-17791. Will retitle bug to link to clone. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
@stevekuznetsov: This pull request references Jira Issue OCPBUGS-17791, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
/jira refresh |
|
@stevekuznetsov: This pull request references Jira Issue OCPBUGS-17791, which is valid. The bug has been moved to the POST state. 6 validation(s) were run on this bug
No GitHub users were found matching the public email listed for the QA contact in Jira (jfan@redhat.com), skipping review request. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
/retest |
|
/lgtm |
|
/retest |
1 similar comment
|
/retest |
|
/approve |
1 similar comment
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: gallettilance, joelanford, stevekuznetsov The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
KeenonLee
left a comment
There was a problem hiding this comment.
/label qe-approved
/label cherry-pick-approved
|
/retest |
2 similar comments
|
/retest |
|
/retest |
|
@stevekuznetsov: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
|
@stevekuznetsov: Jira Issue OCPBUGS-17791 is in an unrecognized state (Verified) and will not be moved to the MODIFIED state. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Previously, new buffers were allocated on each file we read in, which was unnecessary and wasteful.
There is no substantial runtime cost to serving pprof endpoints, and when things hit the fan and we need to investigate performance in situ, there is no time to restart pods and change flags. Capturing profiles remains opt-in, since those are costly.
Upstream-repository: operator-registry
Upstream-commit: 68e13df96590977370ffcd1a8e9ff76e0f2a03f2