Skip to content

test: adjust MemoryHigh= on oomd extended test units - #21803

Merged
mrc0mmand merged 1 commit into
systemd:mainfrom
anitazha:fix21684
Dec 17, 2021
Merged

mrc0mmand merged 1 commit into
systemd:mainfrom
anitazha:fix21684

Conversation

@anitazha

Copy link
Copy Markdown
Member

On some runs sleep infinity run by the user manager uses over 3M of
memory, which is higher than the MemoryHigh= set on testbloat and
testmunch. If no pgscan is generated, then systemd-oomd sorts by memory
usage which leads to a situation where testchill (using 3M) could be
targeted over testbloat (1M-2M).

Fix this by setting reasonable MemoryHigh= values for all of these test
units. Even if somehow testchill throttles a bit at 3M, testbloat and
testmunch should still be trying to use over 100M at memory and will
throttle down to 5M and 6M with the new values. This should reflect
the desired state in pgscan and memory usage during the test run.

Fixes #21684

On some runs `sleep infinity` run by the user manager uses over 3M of
memory, which is higher than the MemoryHigh= set on testbloat and
testmunch. If no pgscan is generated, then systemd-oomd sorts by memory
usage which leads to a situation where testchill (using 3M) could be
targeted over testbloat (1M-2M).

Fix this by setting reasonable MemoryHigh= values for all of these test
units. Even if somehow testchill throttles a bit at 3M, testbloat and
testmunch should still be trying to use over 100M at memory and will
throttle down to 5M and 6M with the new values. This should reflect
the desired state in pgscan and memory usage during the test run.

Fixes systemd#21684
@anitazha anitazha added the tests label Dec 17, 2021
@bluca bluca added this to the v250 milestone Dec 17, 2021
@bluca

bluca commented Dec 17, 2021

Copy link
Copy Markdown
Member

@mrc0mmand are you able to reliable repro the issue and verify that this fixes it?

@mrc0mmand

Copy link
Copy Markdown
Member

@mrc0mmand are you able to reliable repro the issue and verify that this fixes it?

Unfortunately no, but the reasoning behind this makes sense, so hopefully it indeed fixes the issue.

@bluca bluca added good-to-merge/waiting-for-ci 👍 PR is good to merge, but CI hasn't passed at time of review. Please merge if you see CI has passed and removed good-to-merge/waiting-for-reporter-feedback 👍 labels Dec 17, 2021
@mrc0mmand

Copy link
Copy Markdown
Member

CentOS CI is happy, so I'm happy, thanks again for looking into this!

ppc64el failed with #21603, unrelated.

@mrc0mmand
mrc0mmand merged commit 415d7d7 into systemd:main Dec 17, 2021
@mrc0mmand mrc0mmand removed the good-to-merge/waiting-for-ci 👍 PR is good to merge, but CI hasn't passed at time of review. Please merge if you see CI has passed label Dec 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

Strange oomd behavior with user services

3 participants