Skip to content

Commit

Permalink
8289695: [TESTBUG] TestMemoryAwareness.java fails on cgroups v2 and crun
Browse files Browse the repository at this point in the history
Reviewed-by: andrew
Backport-of: ac6be165196457a26d837760b5f5030fe010d633
  • Loading branch information
jerboaa committed Jan 11, 2023
1 parent 5a3fc18 commit 9d954b9
Showing 1 changed file with 1 addition and 2 deletions.
Expand Up @@ -138,9 +138,8 @@ private static void testMemorySoftLimit(String valueToSet, String expectedTraceV
private static void testOOM(String dockerMemLimit, int sizeToAllocInMb) throws Exception {
Common.logNewTestCase("OOM");

// add "--memory-swappiness 0" so as to disable anonymous page swapping.
DockerRunOptions opts = Common.newOpts(imageName, "AttemptOOM")
.addDockerOpts("--memory", dockerMemLimit, "--memory-swappiness", "0", "--memory-swap", dockerMemLimit);
.addDockerOpts("--memory", dockerMemLimit, "--memory-swap", dockerMemLimit);
opts.classParams.add("" + sizeToAllocInMb);

// make sure we avoid inherited Xmx settings from the jtreg vmoptions
Expand Down

1 comment on commit 9d954b9

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

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

Please sign in to comment.