Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 92203 invoked from network); 16 May 2006 20:17:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 16 May 2006 20:17:07 -0000 Received: (qmail 42941 invoked by uid 500); 16 May 2006 20:17:04 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 42916 invoked by uid 500); 16 May 2006 20:17:04 -0000 Mailing-List: contact java-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-dev@lucene.apache.org Received: (qmail 42905 invoked by uid 99); 16 May 2006 20:17:04 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 May 2006 13:17:04 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [207.115.57.43] (HELO ylpvm12.prodigy.net) (207.115.57.43) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 May 2006 13:17:02 -0700 Received: from pimout6-ext.prodigy.net (pimout6-int.prodigy.net [207.115.4.22]) by ylpvm12.prodigy.net (8.12.10 outbound/8.12.10) with ESMTP id k4GKGebL006276 for ; Tue, 16 May 2006 16:16:40 -0400 X-ORBL: [69.228.218.244] Received: from [192.168.168.15] (adsl-69-228-218-244.dsl.pltn13.pacbell.net [69.228.218.244]) by pimout6-ext.prodigy.net (8.13.6 out.dk/8.13.6) with ESMTP id k4GKGdac239802; Tue, 16 May 2006 16:16:39 -0400 Message-ID: <446A3326.4060308@apache.org> Date: Tue, 16 May 2006 13:16:38 -0700 From: Doug Cutting User-Agent: Mozilla Thunderbird 1.0.8 (X11/20060502) X-Accept-Language: en-us, en MIME-Version: 1.0 To: java-dev@lucene.apache.org Subject: Re: FieldsReader synchronized access vs. ThreadLocal ? References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Robert Engels wrote: > It seems that in a highly multi-threaded server this synchronized method > could lead to significant blocking when the documents are being retrieved? Perhaps, but I'd prefer to wait for someone to demonstrate this as a performance bottleneck before adding another ThreadLocal. Peter Keegan has recently demonstrated pretty good concurrency using mmap directory on four and eight CPU systems: http://www.mail-archive.com/java-user@lucene.apache.org/msg05074.html Peter also wondered if the SegmentReader.document(int) method might be a bottleneck, and tried patching it to run unsynchronized: http://www.mail-archive.com/java-user@lucene.apache.org/msg05891.html Unfortunately that did not improve his performance: http://www.mail-archive.com/java-user@lucene.apache.org/msg06163.html Doug --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org