lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uwe Schindler (JIRA)" <>
Subject [jira] [Commented] (LUCENE-5951) Detect when index is on SSD and set dynamic defaults
Date Fri, 19 Dec 2014 08:29:13 GMT


Uwe Schindler commented on LUCENE-5951:

Hi Mike,
I am OK with that. I would only add one other addition: "For all other operating systems it
currently assumes a rotational disk for backwards compatibility."
Another idea: we should maybe add special convenience setter to set optimal settings. By that,
you don't rely on the auto detection and still can set "automatic" settings for both types
of drives:
- {{setMaxMergesAndThreads(int maxMergeCount, int maxThreadCount)}} (expert)
- {{setDefaultMergesAndThreads(boolean optimizeForNonRotational)}} (convenience)


> Detect when index is on SSD and set dynamic defaults
> ----------------------------------------------------
>                 Key: LUCENE-5951
>                 URL:
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Michael McCandless
>            Assignee: Michael McCandless
>         Attachments: LUCENE-5951.patch, LUCENE-5951.patch, LUCENE-5951.patch, LUCENE-5951.patch,
LUCENE-5951.patch, LUCENE-5951.patch
> E.g. ConcurrentMergeScheduler should default maxMergeThreads to 3 if it's on SSD and
1 if it's on spinning disks.
> I think the new NIO2 APIs can let us figure out which device we are mounted on, and from
there maybe we can do os-specific stuff e.g. look at  /sys/block/dev/queue/rotational to see
if it's spinning storage or not ...

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message