Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 85885 invoked from network); 18 Aug 2008 09:46:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Aug 2008 09:46:09 -0000 Received: (qmail 81280 invoked by uid 500); 18 Aug 2008 09:46:02 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 80777 invoked by uid 500); 18 Aug 2008 09:46:01 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 80764 invoked by uid 99); 18 Aug 2008 09:46:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Aug 2008 02:46:01 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.217.30] (HELO mail-gx0-f30.google.com) (209.85.217.30) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Aug 2008 09:45:01 +0000 Received: by gxk11 with SMTP id 11so3861594gxk.5 for ; Mon, 18 Aug 2008 02:44:28 -0700 (PDT) Received: by 10.90.94.2 with SMTP id r2mr7555623agb.105.1219052668198; Mon, 18 Aug 2008 02:44:28 -0700 (PDT) Received: from ?10.17.4.4? ( [72.93.214.93]) by mx.google.com with ESMTPS id 34sm7039906agc.6.2008.08.18.02.44.27 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 18 Aug 2008 02:44:27 -0700 (PDT) Message-Id: <7C69E804-CC3D-43E5-B0A7-5024CD7E3B6E@mikemccandless.com> From: Michael McCandless To: java-user@lucene.apache.org In-Reply-To: <1219045959.3192.235.camel@PC990.sb.statsbiblioteket.dk> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v926) Subject: Re: windows file system cache Date: Mon, 18 Aug 2008 05:44:26 -0400 References: <36B4EF9511887240A973A93E7878B0560A0B11ED51@US1-IIEX1.IICORP.DOM> <1219045959.3192.235.camel@PC990.sb.statsbiblioteket.dk> X-Mailer: Apple Mail (2.926) X-Virus-Checked: Checked by ClamAV on apache.org Toke Eskildsen wrote: >> Lucene process is around 5 GB, so very little left over for queries, >> etc, and box starts swapping during searches. > > Not so fine and also unexpected. Are you sure that what you're > seeing is > swapping and not just flushing of the write-cache? Are you observing > the > disk-activity only when your switching from writer to reader or does > it > continue to be a problem with subsequent searches? On Linux, at least, the OS will choose to evict "real" pages (swap them out to disk) and then use the RAM for the IO cache instead. This then causes lots of paging when less-often-used parts of your app need to access memory. You can tune the "swappiness" kernel parameter (http://kerneltrap.org/node/3000 ) to change how aggressively it does this. But I've never heard of a corresponding way to tune Windows. Mike --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org