Skip to content

[release/1.6] cri: fix memory.memsw.limit_in_bytes: no such file or directory#7838

Merged
dmcgowan merged 1 commit intocontainerd:release/1.6from
dmcgowan:1.6-fix-memory-swap-regression
Dec 19, 2022
Merged

[release/1.6] cri: fix memory.memsw.limit_in_bytes: no such file or directory#7838
dmcgowan merged 1 commit intocontainerd:release/1.6from
dmcgowan:1.6-fix-memory-swap-regression

Conversation

@dmcgowan
Copy link
Copy Markdown
Member

Cherry-pick #7836

Skip automatic if swapLimit == 0 { s.Linux.Resources.Memory.Swap = &limit } when the swap controller is missing. (default on Ubuntu 20.04)

Fix issue 7828 (regression in PR 7783 "cri: make swapping disabled with memory limit")

Signed-off-by: Akihiro Suda [email protected]
(cherry picked from commit 4157503)
Signed-off-by: Derek McGowan [email protected]

Copy link
Copy Markdown
Member

@fuweid fuweid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@AkihiroSuda
Copy link
Copy Markdown
Member

I think you can just squash commits to avoid having non-compilable commit.
The commit message may indicate that the cherrypicking was not clean

Copy link
Copy Markdown
Member

@mikebrow mikebrow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Skip automatic `if swapLimit == 0 { s.Linux.Resources.Memory.Swap = &limit }` when the swap controller is missing.
(default on Ubuntu 20.04)

Fix issue 7828 (regression in PR 7783 "cri: make swapping disabled with memory limit")

Cherry-Pick was not cleaned, required updated cgroups library from v1.0.3 to v1.0.4

Signed-off-by: Akihiro Suda <[email protected]>
(cherry picked from commit 4157503)
Signed-off-by: Derek McGowan <[email protected]>
@dmcgowan dmcgowan force-pushed the 1.6-fix-memory-swap-regression branch from 52d83b8 to 53c733e Compare December 19, 2022 15:55
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

Successfully merging this pull request may close these issues.

5 participants