Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-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 9DB31951F for ; Tue, 26 Jun 2012 00:50:36 +0000 (UTC) Received: (qmail 71393 invoked by uid 500); 26 Jun 2012 00:50:34 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 71369 invoked by uid 500); 26 Jun 2012 00:50:34 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 71359 invoked by uid 99); 26 Jun 2012 00:50:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Jun 2012 00:50:34 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FSL_RCVD_USER,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gurpreet.singh@gmail.com designates 209.85.213.172 as permitted sender) Received: from [209.85.213.172] (HELO mail-yx0-f172.google.com) (209.85.213.172) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Jun 2012 00:50:27 +0000 Received: by yenq13 with SMTP id q13so3731311yen.31 for ; Mon, 25 Jun 2012 17:50:07 -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=ySHnuNHmAu2yg9oEQVcHwReBjzzR3jP88Z6O1oDVgLc=; b=axVTBhLc58GpWmppGzGd0Pebi8drh1RpSGGFjExVw7aXoFRUirJr3uIoEuYNzadViK iqgS5lITQi3HJIDPs+OmAglhWx7/a2QS6l2DsL884mrKaFVgX3LSuFsYRqdwxShCBQPs nf348yJ3oOAavqmafJ8jQ9nc39Z/kU751kXGD/JicHU3sJUE4rY07oGUGPCGmjR7df9F 4tFUtfV6BHoTRczfdY/21eejsGFSb/rLoXRNdeIFoJrDn8sKtiCZQYVVZGONZ0jnrG9d lopvxu/LRKA71JykbGT+9Vc9rOwy6NCOEp2kBGZFkObF/L/MhW4VzkK7/roca4cTuBk8 jT/Q== MIME-Version: 1.0 Received: by 10.236.191.2 with SMTP id f2mr15603919yhn.120.1340671806941; Mon, 25 Jun 2012 17:50:06 -0700 (PDT) Received: by 10.236.108.162 with HTTP; Mon, 25 Jun 2012 17:50:06 -0700 (PDT) Date: Mon, 25 Jun 2012 17:50:06 -0700 Message-ID: Subject: key_cache_size_in_mb From: Gurpreet Singh To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=20cf305b13ecd02acd04c3557a57 X-Virus-Checked: Checked by ClamAV on apache.org --20cf305b13ecd02acd04c3557a57 Content-Type: text/plain; charset=ISO-8859-1 Hi, I have a question about cassandra 1.1 Just wanted to confirm if key_cache_size_in_mb is the maximum amount of memory that key cache will use in memory? If not, what is it? My observations: With key cache disabled, I started cassandra. I invoked Full GC through jconsole a couple of times just to make sure that memory is freed up. Total heap memory in use is 2.2 gigs. I have almost 550 million keys, so this looked reasonable as the bloom filter itself is around 1 gig. I enabled key cache again by making key_cache_size_in_mb to a value 800. This would lead cassandra to load a previously saved key cache file of size 98 mb on disk. I restarted cassandra again. This time the heap size increased to 4.2 gigs. I checked the cache sizing in jconsole. KeyCacheCapacityInMb: 799 KeyCacheSize: 410,316,048 This says that the key cache size is 410 mb. However the increase in the heap is 2 gigs. Doesnt add up!! Can anyone explain this? Thanks Gurpreet --20cf305b13ecd02acd04c3557a57 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi,
I have a question about cassandra 1.1

Just wanted to confirm if key_cache_size_in_mb is the maximum amount= of memory that key cache will use in memory? If not, what is it?

My observations:
With key cache disabled, I starte= d cassandra. I invoked Full GC through jconsole a couple of times just to m= ake sure that memory is freed up.=A0
Total heap memory in use is = 2.2 gigs. I have almost 550 million keys, so this looked reasonable as the = bloom filter itself is around 1 gig.

I enabled key cache again by making key_cache_size_in_m= b to a value 800. This would lead cassandra to load a previously saved key = cache file of size 98 mb on disk. I restarted cassandra again. This time th= e heap size increased to 4.2 gigs. I checked the cache sizing in jconsole.<= /div>
=A0
KeyCacheCapacityInMb: 799
KeyCacheSize: 410,31= 6,048

This says that the key cache size is 410 mb.= However the increase in the heap is 2 gigs. Doesnt add up!!

Can anyone explain this?
Thanks
Gurpreet --20cf305b13ecd02acd04c3557a57--