neoremind commented on PR #16894: URL: https://github.com/apache/lucene/pull/16894#issuecomment-6789157813
Sorry for the churn. I double-checked and tested locally, the codec names don't need to be hardcoded, luceneutil already defaults to the most up-to-date. Apart from that, we only need to set a larger ramBufferMB in `localrun.py` to reduce the number of segments, for 1m docs, ramBufferMB=1024 can produce one segment. The nightly bench sets the RAM buffer size explicitly (see [here](https://github.com/mikemccand/luceneutil/blob/main/src/python/nightlyBench.py#L94)), local runs can to do the same based on the machine's RAM capacity. One more thing: by default, the JVM command only set 2GB heap in `constants.py` ([here](https://github.com/mikemccand/luceneutil/blob/main/src/python/constants.py#L134)) which is too small. The heap size can be overridden in `localconstants.py`, see **Useful localconstants.py** sections https://github.com/mikemccand/luceneutil#useful-localconstantspy-overrides -- 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 to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
