SSD驱动器上的Lucene索引性能

SSD驱动器上的Lucene索引性能,lucene,Lucene,我们正试图通过在SSD驱动器(100GB OCZ RevoDrive X2)上写入来改进Lucene索引写入。但是,我们甚至取得了缓慢的成果。下面是一些结果 在SSD驱动器上写入索引 D:\apache-solr-3.4.0\dist>java IndexManager SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger

我们正试图通过在SSD驱动器(100GB OCZ RevoDrive X2)上写入来改进Lucene索引写入。但是,我们甚至取得了缓慢的成果。下面是一些结果

在SSD驱动器上写入索引

D:\apache-solr-3.4.0\dist>java IndexManager
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
Total time to write one document=2309 ms

D:\apache-solr-3.4.0\dist>java IndexManager
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
Total time to write one document=2059 ms

D:\apache-solr-3.4.0\dist>java IndexManager
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
Total time to write one document=2231 ms
D:\apache-solr-3.4.0\dist>java IndexManager
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
Total time to write one document=374 ms

D:\apache-solr-3.4.0\dist>java IndexManager
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
Total time to write one document=265 ms

D:\apache-solr-3.4.0\dist>java IndexManager
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
Total time to write one document=281 ms
在正常驱动器上写入索引

D:\apache-solr-3.4.0\dist>java IndexManager
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
Total time to write one document=2309 ms

D:\apache-solr-3.4.0\dist>java IndexManager
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
Total time to write one document=2059 ms

D:\apache-solr-3.4.0\dist>java IndexManager
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
Total time to write one document=2231 ms
D:\apache-solr-3.4.0\dist>java IndexManager
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
Total time to write one document=374 ms

D:\apache-solr-3.4.0\dist>java IndexManager
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
Total time to write one document=265 ms

D:\apache-solr-3.4.0\dist>java IndexManager
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
Total time to write one document=281 ms

我们是否需要调整任何特定的配置设置,以使其在SSD上运行得更快?

仅使用1文档索引作为测试是不公平的,因为普通驱动器上的磁盘缓存可能会处理所有IO。然而,10倍的差异是相当大的。您是否已验证您的SSD驱动器是否提供了预期的吞吐量(使用普通HD测试软件)?我不确定1x PCIe瓶颈与4x PCIe瓶颈相比会有多大,但我认为这可能是BIOS中的一个设置。@Lasse SSD在随机访问操作的恒定时间(较小的恒定寻道时间)中表现出色。这对于索引搜索操作来说是极好的。但是,有没有理由相信SSD在大多数顺序写入操作(如索引文档)方面应该优于机械驱动器?我不确定。。。