Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 84ADA2009DC for ; Tue, 2 May 2017 15:07:40 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 833E4160BAC; Tue, 2 May 2017 13:07:40 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id C8F20160BA1 for ; Tue, 2 May 2017 15:07:39 +0200 (CEST) Received: (qmail 91693 invoked by uid 500); 2 May 2017 13:07:31 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 91672 invoked by uid 99); 2 May 2017 13:07:30 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 May 2017 13:07:30 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 94E441AFCA3 for ; Tue, 2 May 2017 13:07:29 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.102 X-Spam-Level: X-Spam-Status: No, score=-0.102 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RP_MATCHES_RCVD=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=elyograg.org Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 1pLmIkmQDimX for ; Tue, 2 May 2017 13:07:27 +0000 (UTC) Received: from frodo.elyograg.org (frodo.elyograg.org [166.70.79.219]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 0FC625F283 for ; Tue, 2 May 2017 13:07:27 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by frodo.elyograg.org (Postfix) with ESMTP id EB428265F for ; Tue, 2 May 2017 07:07:25 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=elyograg.org; h= content-transfer-encoding:content-type:content-type:in-reply-to :mime-version:user-agent:date:date:message-id:from:from :references:subject:subject:received:received; s=mail; t= 1493730445; bh=DZJ6p0Xv11cMKXJgXeEenRSGweLWvZHmCC+CnMCdZkc=; b=e kPAFPU8Y9sZ6H+XnwFfCxLHNZIyI8d8aZUmEXBhS7bFgZMMgUrX0unDF8IiV8dqx HZdCJJj3hLJ7Vsqbp01cZB82xGnRfFWrS9YB+zc4qyb5GF2blaRxaKH6fn8GWOPd Z+ZK4+a1UOg1UeMtKCHVGRl2x6e3qzRo1qNp6vfq0w= X-Virus-Scanned: Debian amavisd-new at frodo.elyograg.org Received: from frodo.elyograg.org ([127.0.0.1]) by localhost (frodo.elyograg.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 0D3zo2oA03sa for ; Tue, 2 May 2017 07:07:25 -0600 (MDT) Received: from [192.168.1.111] (111.int.elyograg.org [192.168.1.111]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: elyograg@elyograg.org) by frodo.elyograg.org (Postfix) with ESMTPSA id 8CE4F265A for ; Tue, 2 May 2017 07:07:25 -0600 (MDT) Subject: Re: Suggester uses lots of 'Page cache' memory To: solr-user@lucene.apache.org References: From: Shawn Heisey Message-ID: Date: Tue, 2 May 2017 07:07:21 -0600 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit archived-at: Tue, 02 May 2017 13:07:40 -0000 On 5/1/2017 10:52 PM, Damien Kamerman wrote: > I have a Solr v6.4.2 collection with 12 shards and 2 replicas. Each > replica uses about 14GB disk usage. I'm using Solaris 11 and I see the > 'Page cache' grow by about 7GB for each suggester replica I build. The > suggester index itself is very small. The 'Page cache' memory is freed > when the node is stopped. I guess the Suggester component is mmap'ing > the entire Lucene index into memory and holding it? Is this expected > behavior? Is there a workaround? I found the following. The last comment on the answer, the one about mmap causing double-buffering with ZFS, is possibly relevant: https://serverfault.com/a/270604 What filesystem are your indexes on? If it's ZFS, it could completely explain the behavior. If it's not ZFS, then the only part of it that I cannot explain is the fact that the page cache is freed when Solr stops. If this double-buffering actually means that the memory is allocated twice, then I think that ZFS is probably the wrong filesystem to run Solr on, unless you have a LOT of spare memory. You could try changing the directory factory to one that doesn't use MMAP, but the suggester index factory probably cannot be easily changed. This is too bad -- normally MMAP is far more efficient than "standard" filesystem access. I could be reaching completely wrong conclusions based on the limited research I did. Thanks, Shawn