lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley (JIRA)" <>
Subject [jira] Commented: (LUCENE-2825) should return MMap on 64-bit Solaris
Date Mon, 20 Dec 2010 17:14:16 GMT


Yonik Seeley commented on LUCENE-2825:

There could be a number of things that could make this very OS dependent:
 - kernel read-ahead can differ between mmap and traditional IO, and differ between operating
   (think about reading 10 bytes from position 4094... if mmap doesn't read-ahead at least
one page then you will suffer a double page fault).
 - CPU cache / TLB effects?  Using more address space isn't completely free.
 - Java mmap overhead - you don't get access to a raw byte[]
 - userspace-kernel transition times (i.e. for a read system call) differ between operating
systems.  Linux is very good here, probably leading to less of a penalty for read vs mmap.

> should return MMap on 64-bit Solaris
> -----------------------------------------------------
>                 Key: LUCENE-2825
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Store
>            Reporter: Robert Muir
>             Fix For: 3.1, 4.0
>         Attachments: LUCENE-2825.patch
> MMap is ~ 30% faster than NIOFS on this platform.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message