[ https://issues.apache.org/jira/browse/LUCENE-5951?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Muir updated LUCENE-5951: -------------------------------- Attachment: LUCENE-5951.patch Try to improve the SSD detector more to make it safe to use for this purpose. It was mostly a joke and really ... not good code. :) * fix contract to throw IOException when incoming path does not exist. This is important not to mask. * for our internal heuristics, we could easily trigger SecurityException / AIOOBE, we are doing things that are not guaranteed at all. So those are important to mask. * don't use Files.readAllBytes, that method is too dangerous in these heuristics. Just read one byte. We should improve the getDeviceName too, but its less critical. > 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 > > > 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