Open MikeHopcroft opened 7 years ago
The java docs for DiskBasedIndex says,
Note that quasi-succinct indices are memory-mapped by default, and for bitstream indices there is a limit of two gigabytes for in-memory indices.
This would seem to suggest that we are already running memory-mapped. Need to see if the 2GB limit applies to us.
Also, note that one can enable in-memory ormemory mapped behavior by appending ?inmemory=1
or ?mapped=1
, respectively, to the base name uri parameter. This can be set on lines 73-74 of QueryLogRunner.java:
text = Index.getInstance( basename + "-text?inmemory=1", true, true );
title = Index.getInstance( basename + "-title?inmemory=1", true, true );~~~
This link mentions the 2GB limit:
if you have more then 2GB of memory try to use java -Xmx2G
Contrast this with the -Xmx512M
flags.
This issue tracks how we configure / intend to configure the mg4j index for maximum performance in the experiment.