[ 
https://issues.apache.org/jira/browse/LUCENE-5951?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Michael McCandless updated LUCENE-5951:
---------------------------------------
    Attachment: LUCENE-5951.patch

Patch w/ tests.

After I told Rob it's impossible to detect if a Path is backed by an
SSD with pure Java, he of course went and did it ;)

I added his isSSD method to IOUtils: it's a rough, Linux-only (for
now) method to determine if a Path is backed by an SSD (thank you
Rob!).

Then I fixed CMS to have dynamic defaults, so that the first time
merge is invoked, it checks the writer's directory.  If it's on an SSD,
it uses the pre LUCENE-4661 defaults (good for SSDs), else it uses the
current defaults (good for spinning disks).  It also logs this to infoStream
so we can use that to see what it did.


> 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
>
>
> 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: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to