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 9322A107FF for ; Tue, 22 Oct 2013 07:28:49 +0000 (UTC) Received: (qmail 25801 invoked by uid 500); 22 Oct 2013 07:28:45 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 25604 invoked by uid 500); 22 Oct 2013 07:28:44 -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 25572 invoked by uid 99); 22 Oct 2013 07:28:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Oct 2013 07:28:39 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of register9527@gmail.com designates 209.85.219.45 as permitted sender) Received: from [209.85.219.45] (HELO mail-oa0-f45.google.com) (209.85.219.45) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Oct 2013 07:28:35 +0000 Received: by mail-oa0-f45.google.com with SMTP id i4so6171822oah.4 for ; Tue, 22 Oct 2013 00:28:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=ILkNNitmCB/sKumNVCc2m8pO2OUqSAVBjEkrPhHuBfw=; b=DBVw71ooyLumk0ZQSxqeP/KgdCsxRRsp0Sr/St9MDR34bkUJ4WL1n19aU51babFsuL 02FGCn99FJjtsc21RkR68n5ihY4INsG6cWmVBFAp+Cl4InjXI2g2c4flbShyh1CvRstN rNfV2wfeq9s/DweW7IDFKd+KSdBFkBe8VMskD+KPhVv1AE0r4goOIkNbbPecESH4QS3B G4QfBJPHoPab2Jgu2EOPabKSgDor8CLE+gLm8vMASNyxaT8n/1EEz+2k5YY+r9M+wiJS hMePRGlLfiB5OKWH1QSm/3Wj/WvGSxKBNJakgJdrGGn+Z6+zflKrCuxwi4RyV9tvaREE XyBA== MIME-Version: 1.0 X-Received: by 10.60.51.196 with SMTP id m4mr885111oeo.1.1382426894375; Tue, 22 Oct 2013 00:28:14 -0700 (PDT) Received: by 10.76.172.102 with HTTP; Tue, 22 Oct 2013 00:28:14 -0700 (PDT) In-Reply-To: <02b701cecef7$4ba9b460$e2fd1d20$@thetaphi.de> References: <02b701cecef7$4ba9b460$e2fd1d20$@thetaphi.de> Date: Tue, 22 Oct 2013 00:28:14 -0700 Message-ID: Subject: Re: use MMapDirectory with tmpfs? From: Reg To: java-user@lucene.apache.org Content-Type: multipart/alternative; boundary=001a11c30920f7a1eb04e94f57c2 X-Virus-Checked: Checked by ClamAV on apache.org --001a11c30920f7a1eb04e94f57c2 Content-Type: text/plain; charset=ISO-8859-1 Excellent! Thanks for the answer. In fact we did have to choose between tmpfs and ramfs, and now I know which one is better for certain. On Tue, Oct 22, 2013 at 12:21 AM, Uwe Schindler wrote: > Hi, > > E.g., the Linux kernel implementation of tmpfs (inspired by Solaris) is to > work solely on virtual memory - RTFM: > https://www.kernel.org/doc/Documentation/filesystems/tmpfs.txt > This is the main difference between a stupid old ramfs (aka RAM disk) and > tmpfs. > > Uwe > > ----- > Uwe Schindler > H.-H.-Meier-Allee 63, D-28213 Bremen > http://www.thetaphi.de > eMail: uwe@thetaphi.de > > > > -----Original Message----- > > From: Reg [mailto:register9527@gmail.com] > > Sent: Tuesday, October 22, 2013 8:27 AM > > To: java-user@lucene.apache.org > > Subject: use MMapDirectory with tmpfs? > > > > Hi there, > > > > If I put Lucene segments on tmpfs and use MMapDirectory to access them, > > would the kernel be so dumb to load the files from tmpfs to another copy > of > > file system cache before map it to the virtual address? Or it just maps > tmpfs > > to the virtual address directly? I tend to believe it's the later but > want to > > confirm with the experts. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-user-help@lucene.apache.org > > --001a11c30920f7a1eb04e94f57c2--