You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Kevin Risden (Jira)" <ji...@apache.org> on 2022/05/16 17:45:00 UTC
[jira] [Created] (LUCENE-10576) ConcurrentMergeScheduler maxThreadCount calculation is artificially low
Kevin Risden created LUCENE-10576:
-------------------------------------
Summary: ConcurrentMergeScheduler maxThreadCount calculation is artificially low
Key: LUCENE-10576
URL: https://issues.apache.org/jira/browse/LUCENE-10576
Project: Lucene - Core
Issue Type: Bug
Reporter: Kevin Risden
https://github.com/apache/lucene/blob/main/lucene/core/src/java/org/apache/lucene/index/ConcurrentMergeScheduler.java#L177
{code:java}
maxThreadCount = Math.max(1, Math.min(4, coreCount / 2));
{code}
This has a practical limit of max of 4 threads due to the Math.min. This doesn't take into account higher coreCount.
I can't seem to tell if this is by design or this is just a mix up of logic during the calculation.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org