Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CC50361D2 for ; Sat, 18 Jun 2011 16:24:11 +0000 (UTC) Received: (qmail 47014 invoked by uid 500); 18 Jun 2011 16:24:10 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 46963 invoked by uid 500); 18 Jun 2011 16:24:10 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 46956 invoked by uid 99); 18 Jun 2011 16:24:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 18 Jun 2011 16:24:10 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 18 Jun 2011 16:24:08 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 543A142070C for ; Sat, 18 Jun 2011 16:23:47 +0000 (UTC) Date: Sat, 18 Jun 2011 16:23:47 +0000 (UTC) From: "Michael McCandless (JIRA)" To: dev@lucene.apache.org Message-ID: <610247815.18242.1308414227326.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (LUCENE-3214) Ability to mlock certain fields from the terms dict MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org Ability to mlock certain fields from the terms dict --------------------------------------------------- Key: LUCENE-3214 URL: https://issues.apache.org/jira/browse/LUCENE-3214 Project: Lucene - Java Issue Type: Improvement Reporter: Michael McCandless This is a hacked up prototype! It works but I'm not sure how to get this to a committable point. The patch invokes mlock() (tested only on Linux), locking pages from the terms dictionary file that hold terms for a specified field. You can only do this with MMapDirectory. I used this to lock pages for the "id" field in the NRT stress test; it's an alternative to MemoryCodec. But, it requires you set up the OS to allow the app/user to lock pages in RAM. It works very well in reducing the NRT reopen latency even when large merges are running... -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org