Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 17181 invoked from network); 14 Sep 2010 17:33:24 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 14 Sep 2010 17:33:24 -0000 Received: (qmail 98173 invoked by uid 500); 14 Sep 2010 17:33:22 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 98024 invoked by uid 500); 14 Sep 2010 17:33:21 -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 98016 invoked by uid 99); 14 Sep 2010 17:33:21 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Sep 2010 17:33:21 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [206.190.58.170] (HELO web55206.mail.re4.yahoo.com) (206.190.58.170) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 14 Sep 2010 17:32:58 +0000 Received: (qmail 3177 invoked by uid 60001); 14 Sep 2010 17:32:35 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1284485555; bh=/ZtKI6zyOHYlxGv802JXp26h9VlzuvH3OqbMS5VgXw4=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=5tPXKNCgl684ceZq0lZ4tUiiay5zczy4SiKHJcmk0s2xDzf6RJInAMGHX10Qo+2Xp7JRYMcYL741faLAka2MASVCo66JaEnYcBe8BMEONlth0KGuLKMjD8XslH+6y05UUT6ZEy2Om6epEjxS7iRL6sA6a7mZ2i+87m97OfXVN+0= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=t8EV+nPIAmP2MMOUeXkdqBA3em2NfZb0vVXGUX7gJU7RtRUiPPN6gfAmqjlyvnPtxN0vijWFPIFbxEUcgJC5zZC38N30Q0lmDiXSqPtPkl6oVYMjHN8TScTMlnvtB6AzWx255MdL0Yg6qADN6GLmU76AjHnJ8f+cp5Pkyy04vFk=; Message-ID: <377433.99965.qm@web55206.mail.re4.yahoo.com> X-YMail-OSG: _6nx2gwVM1nqPlKMpFs.2C8NAWWKP4hGxa1ib_5xuFJYQUZ 5yhG30zCr_J3mAI_hXgjHH7FeJKUZyPVXwiuxKTOrlcvpDpVl.RQaUEWgRKM pIUyCeRN5zryLFAifbyskxjv04OQXVGKQ0XcuJ.eUQreiwwSGOo803gu_Spu hKhl2F8sLc4Q56MRv1UTJj2my.7NKAxDzsYJO9U54Zu2hTSik6_H62aqkLye yR2hvk2yu2b.3T6WLKffLqE8a41VVyUzQJOcCkBM7ll7ZU0JE4BLvYflwY1l Ox79R__PT2MgzQh713.QH8uHojfrony4AZ_irYe_REZ4ypLh7lsZrG9Z21vT PqLszdJDZY48ciWn_gEuu3d6BCh1_ Received: from [38.99.14.58] by web55206.mail.re4.yahoo.com via HTTP; Tue, 14 Sep 2010 10:32:35 PDT X-Mailer: YahooMailRC/470 YahooMailWebService/0.8.105.279950 References: <249809.22549.qm@web55201.mail.re4.yahoo.com> <614727.28922.qm@web55204.mail.re4.yahoo.com> Date: Tue, 14 Sep 2010 10:32:35 -0700 (PDT) From: kannan chandrasekaran Subject: Re: Couple of cache related questions To: user@cassandra.apache.org In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-486680348-1284485555=:99965" X-Virus-Checked: Checked by ClamAV on apache.org --0-486680348-1284485555=:99965 Content-Type: text/plain; charset=us-ascii Thanks a lot Jonathan !!! Kannan ________________________________ From: Jonathan Ellis To: user@cassandra.apache.org Sent: Mon, September 13, 2010 4:47:05 PM Subject: Re: Couple of cache related questions On Sun, Sep 12, 2010 at 6:10 PM, kannan chandrasekaran wrote: >> 1) What determines the amount of memory used per schema ignoring the >> general >> overhead to get cassandra up and running? Is it just the size of the >> caches >> for the column Family + the memtable size ? > > and the bloom filter and index samples from the sstable files. > > Does that mean that cassandra tries to load the index and filter tables in > memory as well, for each sstable in the keyspace? it means it loads the bloom filter file, and a sample from the index file. > Once the final memtable is flushed to the disk ( assuming no more writes) , > does read path also incur the memory size of the memtable for that > particular CF ? no. > Does cassandra try to preallocate memory after startup for each schema even > if its not used ( not being currently written to or read from) ? no. > If I understand you correctly then I need to make sure that > the sum of sizes of all items in the cache across all the keyspaces + > memtable + bloom filter + index samples < Heap space yes. -- Jonathan Ellis Project Chair, Apache Cassandra co-founder of Riptano, the source for professional Cassandra support http://riptano.com --0-486680348-1284485555=:99965 Content-Type: text/html; charset=us-ascii
Thanks a lot Jonathan !!!

Kannan


From: Jonathan Ellis <jbellis@gmail.com>
To: user@cassandra.apache.org
Sent: Mon, September 13, 2010 4:47:05 PM
Subject: Re: Couple of cache related questions

On Sun, Sep 12, 2010 at 6:10 PM, kannan chandrasekaran
<ckannanck@yahoo.com> wrote:
>> 1) What determines the amount of memory used per schema ignoring the
>> general
>> overhead to get cassandra up and running?  Is it just the size of the
>> caches
>> for the column Family + the memtable size ?
>
> and the bloom filter and index samples from the sstable files.
>
> Does that mean that cassandra tries to load the index and filter tables in
> memory as well, for each sstable in the keyspace?

it means it loads the bloom filter file, and a sample from the index file.

> Once the final memtable is flushed to the disk ( assuming no more writes) ,
> does read path also incur the memory size of the memtable for that
> particular CF ?

no.

> Does cassandra try to preallocate memory after startup for each schema even
> if its not used ( not being currently written to or read from)  ?

no.

> If I understand you correctly then I need to make sure that
>  the sum of sizes of all items in the cache across all the keyspaces +
> memtable + bloom filter + index samples  < Heap space

yes.

--
Jonathan Ellis
Project Chair, Apache Cassandra
co-founder of Riptano, the source for professional Cassandra support
http://riptano.com

--0-486680348-1284485555=:99965--