[
https://issues.apache.org/jira/browse/LUCENE-5951?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14253278#comment-14253278
]
Uwe Schindler edited comment on LUCENE-5951 at 12/19/14 11:08 AM:
------------------------------------------------------------------
Yeah, looks good. Maybe just add a reference to the new method in the
introduction:
{noformat}To enable default settings for spinning or solid state disks for other
operating systems, use {@link #setDefaultMaxMergesAnThreads(boolean)}.{noformat}
I am currently investigating detection for windows, but its unlikely that we
can detect SSDs there without native code or spawning processes (no file system
with device data). But I think, for MacOSX there may be a similar solution?
I'll investigate.
was (Author: thetaphi):
Yeah, looks good. Maybe just add a reference to the new method in the
introduction: "To enable default settings for spinning or solid state disks for
other operating systems, use {@link #setDefaultMaxMergesAnThreads(boolean)}."
I am currently investigating detection for windows, but its unlikely that we
can detect SSDs there without native code or spawning processes (no file system
with device data). But I think, for MacOSX there may be a similar solution?
I'll investigate.
> Detect when index is on SSD and set dynamic defaults
> ----------------------------------------------------
>
> Key: LUCENE-5951
> URL: https://issues.apache.org/jira/browse/LUCENE-5951
> 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, 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
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]