Return-Path: X-Original-To: apmail-lucene-java-user-archive@www.apache.org Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 88E13DC4D for ; Fri, 27 Jul 2012 22:52:33 +0000 (UTC) Received: (qmail 84599 invoked by uid 500); 27 Jul 2012 22:52:31 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 84560 invoked by uid 500); 27 Jul 2012 22:52:31 -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 84552 invoked by uid 99); 27 Jul 2012 22:52:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Jul 2012 22:52:31 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FSL_RCVD_USER,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of dotsid@gmail.com designates 209.85.215.48 as permitted sender) Received: from [209.85.215.48] (HELO mail-lpp01m010-f48.google.com) (209.85.215.48) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Jul 2012 22:52:25 +0000 Received: by lagz14 with SMTP id z14so2761969lag.35 for ; Fri, 27 Jul 2012 15:52:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=Rebu4VxJCWIC9/ooOuQXR1u7xVVyNoNX9N7uLAhUW5c=; b=iPL+XiW1JhS4P8P58CS8Tv5lqvSVVzLzGNVBoPqByzqUdtYRVVr4ynMGPQs2tHbZdW E7BfT/umT96TioRXZDbCamdiu0sXyvloP4m18F3TxHBJxpECvf0/DfEGwxZlWvO9vABL OsjdxIXQVOyVgM9S3ddwy16VxK3AdUkgwutKLlqOMl1aeE3NwOWVQZErdf5PZaKIaJi1 nru5I+IRx/a9BcTwFzifYqvvoFktQ/GyAxJQS3aE+0+JCv/S9dtxdCc2DNwh6BnNBGbq f2RGDkvnMXkrZBABXtXelQA5LQ/M2CgjSU1UCKtNu0nmMVMNTQnZqj6d8UCvfRcxrdRr VJEA== Received: by 10.152.103.11 with SMTP id fs11mr4114717lab.23.1343429523784; Fri, 27 Jul 2012 15:52:03 -0700 (PDT) Received: from [192.168.1.247] ([95.154.75.220]) by mx.google.com with ESMTPS id er3sm757589lbb.16.2012.07.27.15.52.01 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 27 Jul 2012 15:52:03 -0700 (PDT) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Mac OS X Mail 6.0 \(1485\)) Subject: Re: RAM or SSD... From: Denis Bazhenov In-Reply-To: Date: Sat, 28 Jul 2012 09:51:59 +1100 Content-Transfer-Encoding: quoted-printable Message-Id: <4C308372-B7F9-469D-A0DC-CB773735B51A@gmail.com> References: <1342676367.12618.45.camel@te-prime>,, , To: java-user@lucene.apache.org X-Mailer: Apple Mail (2.1485) X-Virus-Checked: Checked by ClamAV on apache.org Another option is to use tmpfs (memory driven file system) as a backing = storage for index. This allows to minimize disc access latency. In = average case this doesn't make sense, because OS will cache file system = access quite effective if you have enough memory. But in worst case (if = you measure response time 99 percentile or higher, for example) this = method can give you more stable performance. On Jul 20, 2012, at 10:32 PM, Dragon Fly = wrote: >=20 > Thank you. >=20 >> From: dawid.weiss@gmail.com >> Date: Thu, 19 Jul 2012 13:34:26 +0200 >> Subject: Re: RAM or SSD... >> To: java-user@lucene.apache.org >>=20 >> Read this: >> = http://blog.thetaphi.de/2012/07/use-lucenes-mmapdirectory-on-64bit.html >>=20 >> Dawid >>=20 >> On Thu, Jul 19, 2012 at 1:32 PM, Dragon Fly = wrote: >>>=20 >>> The slowest part of my application is to read the search hits from = disk. I was hoping that using an SSD or RAMDirectory/MMapDirectory = would speed that up. I read the JavaDoc for MMapDirectory but didn't = really understand how that differs from RAMDirectory. Could someone = please explain? >>>=20 >>>> Date: Wed, 18 Jul 2012 23:46:51 -0700 >>>> Subject: Re: RAM or SSD... >>>> From: vfunstein@gmail.com >>>> To: java-user@lucene.apache.org >>>>=20 >>>> I was referring to *RAMDirectory*. >>>>=20 >>>> On Wed, Jul 18, 2012 at 11:04 PM, Lance Norskog = wrote: >>>>>> You do not want to store 30 G of data in the JVM heap, no matter = what >>>> library does this. >>>>> MMapDirectory does not store data in the JVM heap. It lets the >>>>> operating system manage the disk buffer space. Even if the JVM = says "I >>>>> have 30G of memory space", it really does not. It only has address >>>>> space allocated by the OS but no memory. >>>>>=20 >>>>> On Wed, Jul 18, 2012 at 10:39 PM, Toke Eskildsen = >>>> wrote: >>>>>> On Wed, 2012-07-18 at 17:50 +0200, Dragon Fly wrote: >>>>>>> If I want to improve performance, which of the following is = better and >>>> why? >>>>>>>=20 >>>>>>> 1. Buy a machine with a lot of RAM and use a RAMDirectory for = the index. >>>>>>=20 >>>>>> As others has pointed out, MMapDirectory should work better than >>>>>> RAMDirectory. I am sure it will work fine with a relative small = index >>>>>> such as yours. However, it does not scale that well with index = size. >>>>>>=20 >>>>>>> 2. Put the index on a solid state drive. >>>>>>=20 >>>>>> Why anyone buys computers without SSD's is a mystery to me. Use = SSDs for >>>>>> the small low-latency stuff and a secondary spinning drive for = the large >>>>>> slow stuff. Nowadays, a 30GB index (or 100GB for that matter) = falls into >>>>>> the small low-latency bucket. SSDs speeds up almost everything, = saves >>>>>> RAM and spares a lot of work hours optimizing I/O-speed. >>>>>>=20 >>>>>> Regards, >>>>>> Toke Eskildsen >>>>>>=20 >>>>>>=20 >>>>>> = --------------------------------------------------------------------- >>>>>> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org >>>>>> For additional commands, e-mail: java-user-help@lucene.apache.org >>>>>>=20 >>>>>=20 >>>>>=20 >>>>>=20 >>>>> -- >>>>> Lance Norskog >>>>> goksron@gmail.com >>>>>=20 >>>>> = --------------------------------------------------------------------- >>>>> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org >>>>> For additional commands, e-mail: java-user-help@lucene.apache.org >>>>>=20 >>>=20 >>=20 >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org >> For additional commands, e-mail: java-user-help@lucene.apache.org >>=20 > =20 --- Denis Bazhenov --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org