Skip to content
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

8289695: [TESTBUG] TestMemoryAwareness.java fails on cgroups v2 and crun #217

Closed

Conversation

jerboaa
Copy link
Contributor

@jerboaa jerboaa commented Dec 20, 2022

Clean backport. Fixes a test issue on cg v2 where --memory-swappiness is not supported.


Progress

  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue

Issue

  • JDK-8289695: [TESTBUG] TestMemoryAwareness.java fails on cgroups v2 and crun

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk8u-dev pull/217/head:pull/217
$ git checkout pull/217

Update a local copy of the PR:
$ git checkout pull/217
$ git pull https://git.openjdk.org/jdk8u-dev pull/217/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 217

View PR using the GUI difftool:
$ git pr show -t 217

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk8u-dev/pull/217.diff

@bridgekeeper
Copy link

bridgekeeper bot commented Dec 20, 2022

👋 Welcome back sgehwolf! A progress list of the required criteria for merging this PR into pr/186 will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk openjdk bot changed the title Backport ac6be165196457a26d837760b5f5030fe010d633 8289695: [TESTBUG] TestMemoryAwareness.java fails on cgroups v2 and crun Dec 20, 2022
@openjdk
Copy link

openjdk bot commented Dec 20, 2022

This backport pull request has now been updated with issue from the original commit.

@openjdk openjdk bot added backport rfr Pull request is ready for review labels Dec 20, 2022
@mlbridge
Copy link

mlbridge bot commented Dec 20, 2022

Webrevs

@jerboaa
Copy link
Contributor Author

jerboaa commented Dec 20, 2022

/clean

@openjdk openjdk bot added the clean label Dec 20, 2022
@openjdk
Copy link

openjdk bot commented Dec 20, 2022

@jerboaa This backport pull request is now marked as clean

@openjdk-notifier openjdk-notifier bot changed the base branch from pr/186 to master December 27, 2022 20:32
@openjdk-notifier
Copy link

The parent pull request that this pull request depends on has now been integrated and the target branch of this pull request has been updated. This means that changes from the dependent pull request can start to show up as belonging to this pull request, which may be confusing for reviewers. To remedy this situation, simply merge the latest changes from the new target branch into this pull request by running commands similar to these in the local repository for your personal fork:

git checkout jdk-8289695-cg2-crun-backport-2
git fetch https://git.openjdk.org/jdk8u-dev master
git merge FETCH_HEAD
# if there are conflicts, follow the instructions given by git merge
git commit -m "Merge master"
git push

@openjdk openjdk bot removed the rfr Pull request is ready for review label Dec 27, 2022
Backport-of: ac6be165196457a26d837760b5f5030fe010d633
@jerboaa jerboaa force-pushed the jdk-8289695-cg2-crun-backport-2 branch from 07ff796 to fef4ad2 Compare January 9, 2023 13:13
@openjdk
Copy link

openjdk bot commented Jan 9, 2023

@jerboaa Please do not rebase or force-push to an active PR as it invalidates existing review comments. Note for future reference, the bots always squash all changes into a single commit automatically as part of the integration. See OpenJDK Developers’ Guide for more information.

@openjdk
Copy link

openjdk bot commented Jan 9, 2023

@jerboaa This change now passes all automated pre-integration checks.

After integration, the commit message for the final commit will be:

8289695: [TESTBUG] TestMemoryAwareness.java fails on cgroups v2 and crun

Reviewed-by: andrew

You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed.

At the time when this comment was updated there had been 6 new commits pushed to the master branch:

  • 5a3fc18: 8299804: Fix non-portable code in hotspot shell tests in 8u
  • 1694a3a: 8296239: ISO 4217 Amendment 174 Update
  • 7c51dae: 8294307: ISO 4217 Amendment 173 Update
  • ca68579: 8289549: ISO 4217 Amendment 172 Update
  • 65fcf61: 8293472: Incorrect container resource limit detection if manual cgroup fs mounts present
  • 0f698da: 8299548: Fix hotspot/test/runtime/Metaspace/MaxMetaspaceSizeTest.java in 8u

Please see this link for an up-to-date comparison between the source branch of this pull request and the master branch.
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details.

➡️ To integrate this PR with the above commit message to the master branch, type /integrate in a new comment.

@openjdk openjdk bot added ready Pull request is ready to be integrated rfr Pull request is ready for review labels Jan 9, 2023
Copy link
Member

@gnu-andrew gnu-andrew left a comment

Choose a reason for hiding this comment

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

Makes sense. Was --memory-swappiness actually achieving anything on systems where it was supported?

@jerboaa
Copy link
Contributor Author

jerboaa commented Jan 11, 2023

Thanks!

Was --memory-swappiness actually achieving anything on systems where it was supported?

Memory swappiness is a cgroup v1 feature. So it might have had some effect, but for the purpose of the test I'm not sure it did matter as it was setting memory and memory/swap to the same value anyway. At least I'm not aware of any test failures of this OOM test with these settings.

@jerboaa
Copy link
Contributor Author

jerboaa commented Jan 11, 2023

/integrate

@openjdk
Copy link

openjdk bot commented Jan 11, 2023

Going to push as commit 9d954b9.
Since your change was applied there have been 6 commits pushed to the master branch:

  • 5a3fc18: 8299804: Fix non-portable code in hotspot shell tests in 8u
  • 1694a3a: 8296239: ISO 4217 Amendment 174 Update
  • 7c51dae: 8294307: ISO 4217 Amendment 173 Update
  • ca68579: 8289549: ISO 4217 Amendment 172 Update
  • 65fcf61: 8293472: Incorrect container resource limit detection if manual cgroup fs mounts present
  • 0f698da: 8299548: Fix hotspot/test/runtime/Metaspace/MaxMetaspaceSizeTest.java in 8u

Your commit was automatically rebased without conflicts.

@openjdk openjdk bot added the integrated Pull request has been integrated label Jan 11, 2023
@openjdk openjdk bot closed this Jan 11, 2023
@openjdk openjdk bot removed ready Pull request is ready to be integrated rfr Pull request is ready for review labels Jan 11, 2023
@openjdk
Copy link

openjdk bot commented Jan 11, 2023

@jerboaa Pushed as commit 9d954b9.

💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport clean integrated Pull request has been integrated
2 participants