annotate test/gc/g1/TestLargePageUseForAuxMemory.java @ 22982:0956bdcc671e

8078375: [TESTBUG] gc/g1/TestLargePageUseForAuxMemory.java specifies wrong library path Reviewed-by: jmasa, jwilhelm
author tschatzl
date Fri, 24 Apr 2015 09:47:07 +0200
parents 33e421924c67
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
22977
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
1 /*
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
2 * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
4 *
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
5 * This code is free software; you can redistribute it and/or modify it
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
6 * under the terms of the GNU General Public License version 2 only, as
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
7 * published by the Free Software Foundation.
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
8 *
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
9 * This code is distributed in the hope that it will be useful, but WITHOUT
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
12 * version 2 for more details (a copy is included in the LICENSE file that
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
13 * accompanied this code).
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
14 *
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
15 * You should have received a copy of the GNU General Public License version
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
16 * 2 along with this work; if not, write to the Free Software Foundation,
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
18 *
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
20 * or visit www.oracle.com if you need additional information or have any
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
21 * questions.
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
22 */
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
23
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
24 /*
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
25 * @test TestLargePageUseForAuxMemory.java
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
26 * @bug 8058354
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
27 * @key gc
22982
0956bdcc671e 8078375: [TESTBUG] gc/g1/TestLargePageUseForAuxMemory.java specifies wrong library path
tschatzl
parents: 22977
diff changeset
28 * @library /testlibrary /testlibrary/whitebox
22977
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
29 * @requires (vm.gc=="G1" | vm.gc=="null")
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
30 * @build TestLargePageUseForAuxMemory
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
31 * @run main ClassFileInstaller sun.hotspot.WhiteBox
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
32 * sun.hotspot.WhiteBox$WhiteBoxPermission
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
33 * @summary Test that auxiliary data structures are allocated using large pages if available.
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
34 * @run main/othervm -Xbootclasspath/a:. -XX:+UseG1GC -XX:+WhiteBoxAPI -XX:+IgnoreUnrecognizedVMOptions -XX:+UseLargePages TestLargePageUseForAuxMemory
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
35 */
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
36
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
37 import com.oracle.java.testlibrary.*;
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
38 import sun.hotspot.WhiteBox;
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
39
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
40 public class TestLargePageUseForAuxMemory {
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
41 static final int HEAP_REGION_SIZE = 4 * 1024 * 1024;
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
42 static long largePageSize;
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
43 static long smallPageSize;
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
44
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
45 static void checkSmallTables(OutputAnalyzer output, long expectedPageSize) throws Exception {
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
46 output.shouldContain("G1 'Block offset table': pg_sz=" + expectedPageSize);
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
47 output.shouldContain("G1 'Card counts table': pg_sz=" + expectedPageSize);
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
48 }
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
49
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
50 static void checkBitmaps(OutputAnalyzer output, long expectedPageSize) throws Exception {
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
51 output.shouldContain("G1 'Prev Bitmap': pg_sz=" + expectedPageSize);
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
52 output.shouldContain("G1 'Next Bitmap': pg_sz=" + expectedPageSize);
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
53 }
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
54
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
55 static void testVM(long heapsize, boolean cardsShouldUseLargePages, boolean bitmapShouldUseLargePages) throws Exception {
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
56 ProcessBuilder pb;
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
57 // Test with large page enabled.
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
58 pb = ProcessTools.createJavaProcessBuilder("-XX:+UseG1GC",
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
59 "-XX:G1HeapRegionSize=" + HEAP_REGION_SIZE,
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
60 "-Xms" + 10 * HEAP_REGION_SIZE,
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
61 "-Xmx" + heapsize,
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
62 "-XX:+TracePageSizes",
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
63 "-XX:+UseLargePages",
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
64 "-XX:+IgnoreUnrecognizedVMOptions", // there is on ObjectAlignmentInBytes in 32 bit builds
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
65 "-XX:ObjectAlignmentInBytes=8",
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
66 "-version");
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
67
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
68 OutputAnalyzer output = new OutputAnalyzer(pb.start());
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
69 checkSmallTables(output, (cardsShouldUseLargePages ? largePageSize : smallPageSize));
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
70 checkBitmaps(output, (bitmapShouldUseLargePages ? largePageSize : smallPageSize));
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
71 output.shouldHaveExitValue(0);
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
72
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
73 // Test with large page disabled.
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
74 pb = ProcessTools.createJavaProcessBuilder("-XX:+UseG1GC",
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
75 "-XX:G1HeapRegionSize=" + HEAP_REGION_SIZE,
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
76 "-Xms" + 10 * HEAP_REGION_SIZE,
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
77 "-Xmx" + heapsize,
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
78 "-XX:+TracePageSizes",
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
79 "-XX:-UseLargePages",
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
80 "-XX:+IgnoreUnrecognizedVMOptions", // there is on ObjectAlignmentInBytes in 32 bit builds
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
81 "-XX:ObjectAlignmentInBytes=8",
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
82 "-version");
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
83
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
84 output = new OutputAnalyzer(pb.start());
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
85 checkSmallTables(output, smallPageSize);
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
86 checkBitmaps(output, smallPageSize);
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
87 output.shouldHaveExitValue(0);
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
88 }
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
89
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
90 public static void main(String[] args) throws Exception {
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
91 if (!Platform.isDebugBuild()) {
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
92 System.out.println("Skip tests on non-debug builds because the required option TracePageSizes is a debug-only option.");
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
93 return;
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
94 }
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
95
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
96 WhiteBox wb = WhiteBox.getWhiteBox();
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
97 smallPageSize = wb.getVMPageSize();
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
98 largePageSize = wb.getVMLargePageSize();
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
99
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
100 if (largePageSize == 0) {
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
101 System.out.println("Skip tests because large page support does not seem to be available on this platform.");
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
102 return;
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
103 }
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
104
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
105 // To get large pages for the card table etc. we need at least a 1G heap (with 4k page size).
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
106 // 32 bit systems will have problems reserving such an amount of contiguous space, so skip the
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
107 // test there.
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
108 if (!Platform.is32bit()) {
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
109 // Size that a single card covers.
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
110 final int cardSize = 512;
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
111
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
112 final long heapSizeForCardTableUsingLargePages = largePageSize * cardSize;
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
113
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
114 testVM(heapSizeForCardTableUsingLargePages, true, true);
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
115 testVM(heapSizeForCardTableUsingLargePages + HEAP_REGION_SIZE, true, true);
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
116 testVM(heapSizeForCardTableUsingLargePages - HEAP_REGION_SIZE, false, true);
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
117 }
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
118
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
119 // Minimum heap requirement to get large pages for bitmaps is 128M heap. This seems okay to test
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
120 // everywhere.
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
121 final int bitmapTranslationFactor = 8 * 8; // ObjectAlignmentInBytes * BitsPerByte
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
122 final long heapSizeForBitmapUsingLargePages = largePageSize * bitmapTranslationFactor;
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
123
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
124 testVM(heapSizeForBitmapUsingLargePages, false, true);
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
125 testVM(heapSizeForBitmapUsingLargePages + HEAP_REGION_SIZE, false, true);
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
126 testVM(heapSizeForBitmapUsingLargePages - HEAP_REGION_SIZE, false, false);
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
127 }
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
128 }
33e421924c67 8058354: SPECjvm2008-Derby -2.7% performance regression on Solaris-X64 starting with 9-b29
tschatzl
parents:
diff changeset
129