[ 
https://issues.apache.org/jira/browse/LUCENE-5951?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14251690#comment-14251690
 ] 

Uwe Schindler commented on LUCENE-5951:
---------------------------------------

[~rcmuir]: I just wanted to be sure that the inverse does not happen: So a RAID 
device of spinning disk suddenly returning non-spinning because of another bug 
in linux. My test has verified that it returns rotational=1 for my example - so 
I am happy. I just wanted to write this down here to have a reference that 
someone looked at it.

There are other things to mention: the ssd/rotational flag also does not work 
correctly in VMware's VShere or VirtualBOX unless the creator of the virtual 
machine selects "SSD" as virtual device type (in VirtualBox you can do this). I 
created here a virtual machine with an virtual SSD sitting on a spinning 
disk... So we should document this that the whole detection only works correct, 
if you use raw disks on metal hardware. People should also be aware that their 
VSphere infrastructure is configured correctly. :-)

> 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
>
>
> 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