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

Enable DDR tests for AIX #2939

Merged
merged 2 commits into from
Oct 5, 2018

Conversation

mikezhang1234567890
Copy link
Contributor

@mikezhang1234567890 mikezhang1234567890 commented Sep 19, 2018

Enables tests for DDR on AIX, closes #1769

  • enable callsitedbgddrext, classesdbgddrext, shrcdbgddrext, and
    modularityddrtests cmdlinetests for AIX
  • enable DDR_Test for AIX
  • create new AIX and zOS targets in playlist.xml for the DDR cmdline
    tests and use correct arguments to sysvcleanup.pl script. Pass in zos
    option since zos and aix options are identical in sysvcleanup.pl
  • limit heap size in DDR tests to 256MB, since on AIX the core file
    scales with heap size, which can hit filesystem limits

Signed-off-by: Mike Zhang mike.h.zhang@ibm.com

This PR depends on the following extensions repo PRs, since the DDR tests do not compile without DDR enabled on AIX:
ibmruntimes/openj9-openjdk-jdk8#116
ibmruntimes/openj9-openjdk-jdk9#178
ibmruntimes/openj9-openjdk-jdk10#59
ibmruntimes/openj9-openjdk-jdk11#23
ibmruntimes/openj9-openjdk-jdk#35

Doc issue is eclipse-openj9/openj9-docs#92

@@ -30,7 +30,7 @@
</variations>
<command>$(MKTREE) $(REPORTDIR); \
cd $(REPORTDIR); \
perl $(JVM_TEST_ROOT)$(D)TestConfig$(D)scripts$(D)tools$(D)sysvcleanup.pl zos ; \
perl $(JVM_TEST_ROOT)$(D)TestConfig$(D)scripts$(D)tools$(D)sysvcleanup.pl all zos ; \
Copy link
Member

Choose a reason for hiding this comment

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

"all zos" is inconsistent with the later calls which specify "all"

Copy link
Contributor Author

@mikezhang1234567890 mikezhang1234567890 Oct 5, 2018

Choose a reason for hiding this comment

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

all is passed in to the sysvcleanup.pl script to ensure data from all users is cleaned up. AIX and ZOS have different values for user info when the test target is AIX/ZOS. sysvcleanup.pl accepts both aix and zos as a second option but they are identical.

<variations>
<variation>NoOptions</variation>
</variations>
<command>$(MKTREE) $(REPORTDIR); \
cd $(REPORTDIR); \
perl $(JVM_TEST_ROOT)$(D)TestConfig$(D)scripts$(D)tools$(D)sysvcleanup.pl zos ; \
perl $(JVM_TEST_ROOT)$(D)TestConfig$(D)scripts$(D)tools$(D)sysvcleanup.pl all zos ; \
Copy link
Member

Choose a reason for hiding this comment

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

"all zos"?

<variations>
<variation>NoOptions</variation>
</variations>
<command>$(MKTREE) $(REPORTDIR); \
cd $(REPORTDIR); \
perl $(JVM_TEST_ROOT)$(D)TestConfig$(D)scripts$(D)tools$(D)sysvcleanup.pl zos ; \
perl $(JVM_TEST_ROOT)$(D)TestConfig$(D)scripts$(D)tools$(D)sysvcleanup.pl all zos ; \
Copy link
Member

Choose a reason for hiding this comment

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

"all zos"?

<command>$(MKTREE) $(REPORTDIR); \
cd $(REPORTDIR); \
perl $(JVM_TEST_ROOT)$(D)TestConfig$(D)scripts$(D)tools$(D)sysvcleanup.pl all zos ; \
Copy link
Member

Choose a reason for hiding this comment

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

"all zos"?


<test>
Copy link
Member

Choose a reason for hiding this comment

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

why is a specific test required for aix?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sysvcleanup.pl sets different values for user info for AIX and ZOS.

@@ -91,15 +91,14 @@
</variations>
<command>$(MKTREE) $(REPORTDIR); \
cd $(REPORTDIR); \
perl $(JVM_TEST_ROOT)$(D)TestConfig$(D)scripts$(D)tools$(D)sysvcleanup.pl zos ; \
perl $(JVM_TEST_ROOT)$(D)TestConfig$(D)scripts$(D)tools$(D)sysvcleanup.pl all ; \
$(JAVA_COMMAND) $(JVM_OPTIONS) -Xint \
Copy link
Member

Choose a reason for hiding this comment

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

You can remove the -Xint from all these tests. It's there for historical reasons when the jit was less reliable, but its no longer required. The tests will run faster.

@pshipton pshipton changed the title Enable DDR tests for AIX WIP Enable DDR tests for AIX Sep 19, 2018
Add LD_LIBRARY_PATH and LIBPATH env variables when running ddrgen due
to its new dependency on libomrsig. On AIX, the search path is not
saved in the executable when it is created since we do not have a
direct equivalent to setting rpath=$ORIGIN as a compiler flag.

Signed-off-by: mikezhang <mike.h.zhang@ibm.com>
@pshipton
Copy link
Member

pshipton commented Oct 5, 2018

@mikezhang1234567890 I expect you've already noticed, but please fix the conflicts.

- enable callsitedbgddrext, classesdbgddrext, shrcdbgddrext, and
  modularityddrtests cmdlinetests for AIX
- enable DDR_Test for AIX
- create new AIX and zOS targets in playlist.xml for the DDR cmdline
  tests and use correct arguments to sysvcleanup.pl script. Pass in zos
  option since zos and aix options are identical in sysvcleanup.pl
- limit heap size in DDR tests to 256MB, since on AIX the core file
  scales with heap size, which can hit filesystem limits

Signed-off-by: Mike Zhang <mike.h.zhang@ibm.com>
@mikezhang1234567890 mikezhang1234567890 changed the title WIP Enable DDR tests for AIX Enable DDR tests for AIX Oct 5, 2018
@mikezhang1234567890
Copy link
Contributor Author

@keithc-ca or @pshipton can you review this please?

@pshipton
Copy link
Member

Reverting as per #3248

@mikezhang1234567890 mikezhang1234567890 deleted the aix-ddr-test branch July 8, 2019 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enable DDR support for AIX
2 participants