[GitHub] [lucene] uschindler commented on pull request #177: Initial rewrite of MMapDirectory for JDK-17 preview (incubating) Panama APIs (>= JDK-17-ea-b25)

2022-10-01 Thread GitBox
uschindler commented on PR #177: URL: https://github.com/apache/lucene/pull/177#issuecomment-1264435295 Closing this as the JDK 19 impl was merged (#912). -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above

[GitHub] [lucene] uschindler commented on pull request #177: Initial rewrite of MMapDirectory for JDK-17 preview (incubating) Panama APIs (>= JDK-17-ea-b25)

2021-08-03 Thread GitBox
uschindler commented on pull request #177: URL: https://github.com/apache/lucene/pull/177#issuecomment-891655796 It works with build 33, every hour a Jenkins build tests it: https://jenkins.thetaphi.de/job/Lucene-jdk17panama-Linux/ and

[GitHub] [lucene] uschindler commented on pull request #177: Initial rewrite of MMapDirectory for JDK-17 preview (incubating) Panama APIs (>= JDK-17-ea-b25)

2021-08-02 Thread GitBox
uschindler commented on pull request #177: URL: https://github.com/apache/lucene/pull/177#issuecomment-891211684 Hi, > > Ca you post `java -version`and tell us if you maybe compiledyour own version? > > Hi @uschindler, > > java --version > > openjdk 17-ea 2021-09-14 > >

[GitHub] [lucene] uschindler commented on pull request #177: Initial rewrite of MMapDirectory for JDK-17 preview (incubating) Panama APIs (>= JDK-17-ea-b25)

2021-08-01 Thread GitBox
uschindler commented on pull request #177: URL: https://github.com/apache/lucene/pull/177#issuecomment-890520954 > Hi @uschindler, > I get the following compilation errors when I build your patch (Gradle build 6.3.8) > > > Task :altJvmWarning > > NOTE: Alternative java

[GitHub] [lucene] uschindler commented on pull request #177: Initial rewrite of MMapDirectory for JDK-17 preview (incubating) Panama APIs (>= JDK-17-ea-b25)

2021-06-23 Thread GitBox
uschindler commented on pull request #177: URL: https://github.com/apache/lucene/pull/177#issuecomment-866980038 > > But I think it would be improved by providing some more diagnostics (LogCompilation or whatever, maybe JIT stats in the JFR output). Let it be a "canary" to find little

[GitHub] [lucene] uschindler commented on pull request #177: Initial rewrite of MMapDirectory for JDK-17 preview (incubating) Panama APIs (>= JDK-17-ea-b25)

2021-06-23 Thread GitBox
uschindler commented on pull request #177: URL: https://github.com/apache/lucene/pull/177#issuecomment-866967688 > > Here are the berlinbuzzwords slides about this: https://2021.berlinbuzzwords.de/sites/berlinbuzzwords.de/files/2021-06/The%20future%20of%20Lucene%27s%20MMapDirectory.pdf

[GitHub] [lucene] uschindler commented on pull request #177: Initial rewrite of MMapDirectory for JDK-17 preview (incubating) Panama APIs (>= JDK-17-ea-b25)

2021-06-22 Thread GitBox
uschindler commented on pull request #177: URL: https://github.com/apache/lucene/pull/177#issuecomment-866144962 Here are the berlinbuzzwords slides about this: https://2021.berlinbuzzwords.de/sites/berlinbuzzwords.de/files/2021-06/The%20future%20of%20Lucene%27s%20MMapDirectory.pdf --

[GitHub] [lucene] uschindler commented on pull request #177: Initial rewrite of MMapDirectory for JDK-17 preview (incubating) Panama APIs (>= JDK-17-ea-b25)

2021-06-22 Thread GitBox
uschindler commented on pull request #177: URL: https://github.com/apache/lucene/pull/177#issuecomment-866142054 > > The problem with luceneutil is also that it respawns a JVM multiple times. > > Hmm, we added multiple JVMs long ago precisely because HotSpot was so unpredictable.

[GitHub] [lucene] uschindler commented on pull request #177: Initial rewrite of MMapDirectory for JDK-17 preview (incubating) Panama APIs (>= JDK-17-ea-b25)

2021-06-22 Thread GitBox
uschindler commented on pull request #177: URL: https://github.com/apache/lucene/pull/177#issuecomment-866112156 > > This was negotiated today  > > To read the whole story check here: [openjdk/panama-foreign#555

[GitHub] [lucene] uschindler commented on pull request #177: Initial rewrite of MMapDirectory for JDK-17 preview (incubating) Panama APIs (>= JDK-17-ea-b25)

2021-06-22 Thread GitBox
uschindler commented on pull request #177: URL: https://github.com/apache/lucene/pull/177#issuecomment-866088334 > > So the benchmarking will stay noisy unless we use JMH. > > Maybe we should switch `luceneutil` to JMH? Or, poach ideas from it? How is it reducing JVM/hotspot noise

[GitHub] [lucene] uschindler commented on pull request #177: Initial rewrite of MMapDirectory for JDK-17 preview (incubating) Panama APIs (>= JDK-17-ea-b25)

2021-06-22 Thread GitBox
uschindler commented on pull request #177: URL: https://github.com/apache/lucene/pull/177#issuecomment-866087762 Hi @mikemccand, > > I have no idea why the facetting stuff at the beginning of the bench output is so badly behaving with MMapDirectory#v2 on top of project panama,

[GitHub] [lucene] uschindler commented on pull request #177: Initial rewrite of MMapDirectory for JDK-17 preview (incubating) Panama APIs (>= JDK-17-ea-b25)

2021-06-22 Thread GitBox
uschindler commented on pull request #177: URL: https://github.com/apache/lucene/pull/177#issuecomment-866054411 Hi @mikemccand, I will open a few more issues in luceneutil. The way how it invokes the JVM is not like it is done in production: - `-Xbatch` as default doesn't help for

[GitHub] [lucene] uschindler commented on pull request #177: Initial rewrite of MMapDirectory for JDK-17 preview (incubating) Panama APIs (>= JDK-17-ea-b25)

2021-06-22 Thread GitBox
uschindler commented on pull request #177: URL: https://github.com/apache/lucene/pull/177#issuecomment-866013290 There is no fix for the JDK 17 issues with garbage collection and disabled tiered compilation. From Java 18 on we can use the new MemoryCopy class to do bulk copies. It also

[GitHub] [lucene] uschindler commented on pull request #177: Initial rewrite of MMapDirectory for JDK-17 preview (incubating) Panama APIs (>= JDK-17-ea-b25)

2021-06-15 Thread GitBox
uschindler commented on pull request #177: URL: https://github.com/apache/lucene/pull/177#issuecomment-861496169 In the next Panama iteration, there will also be a ready-to use copy method, which has same shape as methods added for bulk copy:

[GitHub] [lucene] uschindler commented on pull request #177: Initial rewrite of MMapDirectory for JDK-17 preview (incubating) Panama APIs (>= JDK-17-ea-b25)

2021-06-15 Thread GitBox
uschindler commented on pull request #177: URL: https://github.com/apache/lucene/pull/177#issuecomment-861492558 The issue is confirmed and for the readBytes() code there's already a workaround. Long term we will improve For the float and long options: copyMemory() has some

[GitHub] [lucene] uschindler commented on pull request #177: Initial rewrite of MMapDirectory for JDK-17 preview (incubating) Panama APIs (>= JDK-17-ea-b25)

2021-06-15 Thread GitBox
uschindler commented on pull request #177: URL: https://github.com/apache/lucene/pull/177#issuecomment-861362120 I opened https://bugs.openjdk.java.net/browse/JDK-8268743 about the object allocations. -- This is an automated message from the Apache Git Service. To respond to the

[GitHub] [lucene] uschindler commented on pull request #177: Initial rewrite of MMapDirectory for JDK-17 preview (incubating) Panama APIs (>= JDK-17-ea-b25)

2021-06-15 Thread GitBox
uschindler commented on pull request #177: URL: https://github.com/apache/lucene/pull/177#issuecomment-861265227 I also ran the same with tiered compilation turned on and no `-Xbatch` (java defaults). The results are much better, but still the heap allocations are done. For

[GitHub] [lucene] uschindler commented on pull request #177: Initial rewrite of MMapDirectory for JDK-17 preview (incubating) Panama APIs (>= JDK-17-ea-b25)

2021-06-15 Thread GitBox
uschindler commented on pull request #177: URL: https://github.com/apache/lucene/pull/177#issuecomment-861222097 Here is the results of the original pull request without the unsafe memory copy, using the `fromArray()` and slicing code. During runtime, the benchmark runs 72 seconds vs 60

[GitHub] [lucene] uschindler commented on pull request #177: Initial rewrite of MMapDirectory for JDK-17 preview (incubating) Panama APIs (>= JDK-17-ea-b25)

2021-06-14 Thread GitBox
uschindler commented on pull request #177: URL: https://github.com/apache/lucene/pull/177#issuecomment-861046986 I did more testig and was able to make MMapDirectory work the same speed. This path shows the problems:

[GitHub] [lucene] uschindler commented on pull request #177: Initial rewrite of MMapDirectory for JDK-17 preview (incubating) Panama APIs (>= JDK-17-ea-b25)

2021-06-14 Thread GitBox
uschindler commented on pull request #177: URL: https://github.com/apache/lucene/pull/177#issuecomment-860900058 With my patch to bulk methods results look like this: ``` TaskQPS baseline StdDevQPS my_modified_version StdDevPct diff

[GitHub] [lucene] uschindler commented on pull request #177: Initial rewrite of MMapDirectory for JDK-17 preview (incubating) Panama APIs (>= JDK-17-ea-b25)

2021-06-14 Thread GitBox
uschindler commented on pull request #177: URL: https://github.com/apache/lucene/pull/177#issuecomment-860889941 After analyzing the heap dumps provided by JFR, I was able to figure out what the problem is. Basically, all native, VarHandle backed methods are fast and optimize nice.

[GitHub] [lucene] uschindler commented on pull request #177: Initial rewrite of MMapDirectory for JDK-17 preview (incubating) Panama APIs (>= JDK-17-ea-b25)

2021-06-14 Thread GitBox
uschindler commented on pull request #177: URL: https://github.com/apache/lucene/pull/177#issuecomment-860731308 I used the wrong benchmark task (not wikimediumall but wikimedium10k, copypastershitnwaste). New benchmarks coming soon. -- This is an automated message from the Apache Git

[GitHub] [lucene] uschindler commented on pull request #177: Initial rewrite of MMapDirectory for JDK-17 preview (incubating) Panama APIs (>= JDK-17-ea-b25)

2021-06-14 Thread GitBox
uschindler commented on pull request #177: URL: https://github.com/apache/lucene/pull/177#issuecomment-860665332 > I will now download the JFR files created by the tool and analyze them locally. No info from JFR files :-( -- This is an automated message from the Apache Git

[GitHub] [lucene] uschindler commented on pull request #177: Initial rewrite of MMapDirectory for JDK-17 preview (incubating) Panama APIs (>= JDK-17-ea-b25)

2021-06-14 Thread GitBox
uschindler commented on pull request #177: URL: https://github.com/apache/lucene/pull/177#issuecomment-860649214 I will now download the JFR files created by the tool and analyze them locally. -- This is an automated message from the Apache Git Service. To respond to the message, please

[GitHub] [lucene] uschindler commented on pull request #177: Initial rewrite of MMapDirectory for JDK-17 preview (incubating) Panama APIs (>= JDK-17-ea-b25)

2021-06-14 Thread GitBox
uschindler commented on pull request #177: URL: https://github.com/apache/lucene/pull/177#issuecomment-860641916 Hi, I executed luceneutil bench using jdk-17-ea+b25: ``` TaskQPS baseline StdDevQPS my_modified_version StdDevPct diff

[GitHub] [lucene] uschindler commented on pull request #177: Initial rewrite of MMapDirectory for JDK-17 preview (incubating) Panama APIs (>= JDK-17-ea-b25)

2021-06-08 Thread GitBox
uschindler commented on pull request #177: URL: https://github.com/apache/lucene/pull/177#issuecomment-856778316 Linux Jenkins tests: https://jenkins.thetaphi.de/job/Lucene-jdk17panama-Linux/ Windows Jenkins tests: https://jenkins.thetaphi.de/job/Lucene-jdk17panama-Windows/ -- This