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 68C729552 for ; Mon, 18 Jun 2012 16:21:04 +0000 (UTC) Received: (qmail 66511 invoked by uid 500); 18 Jun 2012 16:21:02 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 66476 invoked by uid 500); 18 Jun 2012 16:21:02 -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 66467 invoked by uid 99); 18 Jun 2012 16:21:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Jun 2012 16:21:02 +0000 X-ASF-Spam-Status: No, hits=3.5 required=5.0 tests=FSL_RCVD_USER,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.160.44] (HELO mail-pb0-f44.google.com) (209.85.160.44) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Jun 2012 16:20:55 +0000 Received: by pbcwy7 with SMTP id wy7so8481923pbc.31 for ; Mon, 18 Jun 2012 09:20:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anconafamily.com; s=google; h=mime-version:x-originating-ip:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=ozEo955TrlpzMNA663scBqr/lSO2KdeBHsbvuufzbb4=; b=N8pXyLE39osXpCxGpz2HXw18C/62MK1E42hYToTNZCNL1FPRIGClzzLZHRmsdSs40g 2YZxEIKMh42rTGUl2+of405EhWZnhHx4WmtefUHX5KJm7KWQ3OZyZIGWhtUI3TucGHKH Nudisv8cRhYN2SCITYR23TeSfsDHE/wZ8Rf/k= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-originating-ip:in-reply-to:references:date :message-id:subject:from:to:content-type:x-gm-message-state; bh=ozEo955TrlpzMNA663scBqr/lSO2KdeBHsbvuufzbb4=; b=CSKEJy9nuwSWbQRRBU07WgEhRSdwnAMJ2CjQKvvfMMt4lvLZ2OQa+D0z8YZAS8/X5V XSpaOHLMZiR8oEk5j8ltLl0WuC1Whys2xi5SLWQ7sh5IIx456iH5R21w7oUjHQlowV8L 2tERxbGNzH8PfRM+/iKfwQp3IBkjzk4LqZjD7zsgeoFGSvfcPdgHPXjrmKWPORMozZ1Z vIHx09VXOYsp5PaLvUFSCzWThs8PBBNJv8ZQ72MNcafatGvAw/6mOEoSUx/jUns1zygn q/4z44wjkZUPNRx/X4XmZLdXhRXRkFurgYEsJf5rv3rqyMNIVhPO61EekUqETy42+DQ8 m3+A== MIME-Version: 1.0 Received: by 10.68.116.203 with SMTP id jy11mr52579518pbb.129.1340036431559; Mon, 18 Jun 2012 09:20:31 -0700 (PDT) Received: by 10.68.62.196 with HTTP; Mon, 18 Jun 2012 09:20:31 -0700 (PDT) X-Originating-IP: [205.207.104.233] In-Reply-To: References: Date: Mon, 18 Jun 2012 12:20:31 -0400 Message-ID: Subject: Re: What determines the memory that used by key cache?? From: Jim Ancona To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=e89a8ff252227d3c6d04c2c18b51 X-Gm-Message-State: ALoCoQlwFWTXQnrWLmLlc/GJWMATgnp5TiZ0M1GgGz1WdPIW1gB646ajhnekIPuH7Ze/zGRJ8Q51 --e89a8ff252227d3c6d04c2c18b51 Content-Type: text/plain; charset=UTF-8 On Mon, Jun 18, 2012 at 8:53 AM, mich.hph wrote: > Dear all! > In my cluster, I found every key needs 192bytes in the key cache.So I want > to know what determines the memory that used by key cache. How to calculate > the value. > According to http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/Calculate-memory-used-for-keycache-tp6170528p6170814.htmlthe formula is: key cache memory use = * (<8 bytes for position i.e. value> + + <16 bytes for token (RP)> + <8 byte reference for DecoratedKey> + <8 bytes for descriptor reference>) which simplifies to * ( + 40) Are your row keys 152 bytes? Jim > Thanks in advance. > --e89a8ff252227d3c6d04c2c18b51 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Mon, Jun 18, 2012 at 8:53 AM, mich.hph <mich.hph@gmail.com> wrote:
Dear all!
In my cluster, I found every key needs 192bytes in the key cache.So I = want to know what determines the memory that used by key cache. How to calc= ulate the value.

According to=20 http://cassandr= a-user-incubator-apache-org.3065146.n2.nabble.com/Calculate-memory-used-for= -keycache-tp6170528p6170814.html the formula is:

key cache memory use =3D
=C2=A0=C2=A0=C2=A0=C2=A0 <Keycache size> * (<8 bytes for position = i.e. value> +=20 <X bytes for key> + <16 bytes for token (RP)> + <8 byte=20 reference for DecoratedKey> + <8 bytes for descriptor=20 reference>)
which simplifies to
=C2=A0=C2=A0=C2=A0=C2=A0 <Keycache size> * (<key size in bytes>= + 40)

Are your row keys 152 bytes?

Jim

=C2=A0
Thanks in advance.

--e89a8ff252227d3c6d04c2c18b51--