[ 
https://issues.apache.org/jira/browse/LUCENE-9160?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17021080#comment-17021080
 ] 

Michael McCandless commented on LUCENE-9160:
--------------------------------------------

{quote}fwiw adding {{-XX:TieredStopAtLevel=1}} to my args made an even bigger 
difference
{quote}
I tested this option, on 72 core box, using JDK 11.

In {{lucene/core}} I ran {{ant test -Dtests.jvms=36}} for baseline, twice:
{noformat}
BUILD SUCCESSFUL
Total time: 1 minute 18 seconds

BUILD SUCCESSFUL
Total time: 1 minute 13 seconds {noformat}
And then ran again with this option (to tell hotspot to not try so hard?), 
{{ant test -Dtests.jvms=36 -XX:TieredStopAtLevel=1}}:
{noformat}
BUILD SUCCESSFUL
Total time: 24 seconds
BUILD SUCCESSFUL
Total time: 42 seconds {noformat}
Net/net this is a crazy crazy speedup for our tests!!!

> override heap / jvm params for tests in gradle build
> ----------------------------------------------------
>
>                 Key: LUCENE-9160
>                 URL: https://issues.apache.org/jira/browse/LUCENE-9160
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Robert Muir
>            Priority: Major
>         Attachments: LUCENE-9160.patch
>
>
> Currently the gradle.properties that is generated lets you control the heap 
> and flags for the gradle build jvms.
> But there is no way to control these flags for the actual forked VMs running 
> the unit tests. For example, minHeap is hardcoded at 256m and maxHeap at 
> 512m. 
> I would like to change minHeap to 512m as well, for a fixed heap, and set 
> some other jvm flags, such as {{-XX:+UseParallelGC}} so that my tests are not 
> slow for silly reasons :)
> I think it is stuff jenkins CI would need as well. 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to