-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
importinto, disttask: allow multi import job & adjust total memory for cgroup v2 #51575
Conversation
Hi @D3Hunter. Thanks for your PR. PRs from untrusted users cannot be marked as trusted with I understand the commands that are listed here. 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. |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #51575 +/- ##
================================================
+ Coverage 70.7436% 72.6982% +1.9545%
================================================
Files 1474 1476 +2
Lines 437068 441701 +4633
================================================
+ Hits 309198 321109 +11911
+ Misses 108517 100493 -8024
- Partials 19353 20099 +746
Flags with carried forward coverage won't be shown. Click here to find out more.
|
2ce9162
to
2bc444e
Compare
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.
LGTM
/approve cancel |
/retest |
@D3Hunter: Cannot trigger testing until a trusted user reviews the PR and leaves an In 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. |
manually test again after code change
|
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.
LGTM
@Benjamin2037: Your lgtm message is repeated, so it is ignored. In 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. |
@@ -91,6 +92,22 @@ func NewManager(ctx context.Context, id string, taskTable TaskTable) (*Manager, | |||
if totalCPU <= 0 || totalMem <= 0 { | |||
return nil, errors.Errorf("invalid cpu or memory, cpu: %d, memory: %d", totalCPU, totalMem) | |||
} | |||
cgroupLimit, version, err := cgroup.GetCgroupMemLimit() | |||
// ignore the error of cgroup.GetCgroupMemLimit, as it's not a must-success step. | |||
if err == nil && version == cgroup.V2 { |
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.
From the code, it seems only the Cgroup V2 return mem limit should be adjusted.
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.
yes, v1 returns the hierarchy mem limit which is what we expect
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Benjamin2037, lance6716 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
[LGTM Timeline notifier]Timeline:
|
What problem does this PR solve?
Issue Number: ref #49008
Problem Summary:
What changed and how does it work?
Check List
Tests
on a cgroup v2 32c64g node, physical mem is 62.9GiB and from cgroup we got 64GiB, but the real usable memory is 57.35GiB
before
after
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.