Return-Path: X-Original-To: apmail-lucene-solr-user-archive@minotaur.apache.org Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A5F9F11615 for ; Wed, 18 Jun 2014 15:00:33 +0000 (UTC) Received: (qmail 79587 invoked by uid 500); 18 Jun 2014 15:00:30 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 79528 invoked by uid 500); 18 Jun 2014 15:00:29 -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 79516 invoked by uid 99); 18 Jun 2014 15:00:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Jun 2014 15:00:29 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of benjamin.wiens@gmail.com designates 209.85.192.47 as permitted sender) Received: from [209.85.192.47] (HELO mail-qg0-f47.google.com) (209.85.192.47) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Jun 2014 15:00:25 +0000 Received: by mail-qg0-f47.google.com with SMTP id q108so841770qgd.20 for ; Wed, 18 Jun 2014 08:00:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=dfz01dEO52vgL0ZPEfzAgYtptxrfw/XI1kO7YeXP+PI=; b=eWZrKQHo9PCC2Eei9RcS0T1+DMf1SevTWvUe52KmpHGZklfsy0Pcr4DGtWh1uAPDOt E1JRBr3SSAD8XNclMCoMndYpZ8fCwo15wDvZtf+4md88fvafmt2KypneVmjs4pBD63Ru JqtaPDfNkH45f/D7guwBKQfvv5YyVNZDJU4jj0oAWXKSJewqbEPOTNXjfpLX20EM428Z TFuLHO211eRNBgrCENcJIFcMa/dtYpbQs+s+VObwHGZW0SidwW17zjeag2nP+GXz03CV t8IIFEcWQV7Z1TCOSvD5Y+7W60Cp3vABX8N/X1oZZmIYyD8CRtIcf5PNEhhkjioJ5N2P a63A== MIME-Version: 1.0 X-Received: by 10.224.38.4 with SMTP id z4mr4038279qad.94.1403103604547; Wed, 18 Jun 2014 08:00:04 -0700 (PDT) Received: by 10.96.206.170 with HTTP; Wed, 18 Jun 2014 08:00:04 -0700 (PDT) Date: Wed, 18 Jun 2014 11:00:04 -0400 Message-ID: Subject: Calculating filterCache size From: Benjamin Wiens To: solr-user@lucene.apache.org Content-Type: multipart/alternative; boundary=001a11c2949eeea9da04fc1d83ff X-Virus-Checked: Checked by ClamAV on apache.org --001a11c2949eeea9da04fc1d83ff Content-Type: text/plain; charset=UTF-8 Hi, I'm looking for a formula to calculate filterCache size in the RAM. The best estimation I can find is here http://stackoverflow.com/questions/20999904/solr-filter-cache-fastlrucache-takes-too-much-memory-and-results-in-out-of-mem An index of 1.000.000 would thus take 12,5 GB in the RAM with this formula: 100.000.000.000 bit / 8 (to byte) / 1000 (to kb) / 1000 (to mb) / 1000 (to gb) = 12,5 GB Can anyone confirm this formula? I am aware that if the result of the filter query is low, it can just create something else which take up less memory. I know I can just start with a low filterCache size and kick it up in my environment, but I'd like to come up with a scientific formula. Thanks, Ben --001a11c2949eeea9da04fc1d83ff--