Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 97072 invoked from network); 17 Aug 2010 17:55:55 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 17 Aug 2010 17:55:55 -0000 Received: (qmail 35862 invoked by uid 500); 17 Aug 2010 17:55:53 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 35823 invoked by uid 500); 17 Aug 2010 17:55:53 -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 35809 invoked by uid 99); 17 Aug 2010 17:55:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Aug 2010 17:55:53 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of yeslinux.now@gmail.com designates 209.85.215.172 as permitted sender) Received: from [209.85.215.172] (HELO mail-ey0-f172.google.com) (209.85.215.172) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Aug 2010 17:55:48 +0000 Received: by eyd10 with SMTP id 10so219995eyd.31 for ; Tue, 17 Aug 2010 10:55:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=zAeIIcsB4DuDEQTJBzuCbHjtHAde/5liCz3utSHIVpw=; b=oPw+dFg5drVztoBT5yx+cva7t9KFeLk7YRihGyJzvZ4jGgEv1sENCUswCDfh3wRSv1 etiAH+fMeCrdA7l5mL7+RZnNPYohhTfVH5onUmuGGa7TvLbW+YOrBhFqabOUcRvdob+W j7R4aYTjPLRRWal1a5Wj/R7Z+1n/F5fL0fQb0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=I9r9WvNXe8+sNq1Y5tvRhWc63Mq50ZmxySacZzJwa6LUY/P+o6IFxlY8UksugZKQaj YTolAu1tDQUNPij1nLbUzqwIXEwKKeQDaOf8/P1MGB5JUjNGydDHUMsjRLNGODwGa6GB U9mglYPZiR0eAeRNAmxc7euaL+Kzsb302Qqns= MIME-Version: 1.0 Received: by 10.216.236.146 with SMTP id w18mr5963905weq.19.1282067727137; Tue, 17 Aug 2010 10:55:27 -0700 (PDT) Received: by 10.216.156.68 with HTTP; Tue, 17 Aug 2010 10:55:27 -0700 (PDT) Date: Tue, 17 Aug 2010 10:55:27 -0700 Message-ID: Subject: cache sizes using percentages From: Artie Copeland To: Cassandra Users Mailing List Content-Type: multipart/alternative; boundary=000e0cd5272e743d46048e08a7c3 --000e0cd5272e743d46048e08a7c3 Content-Type: text/plain; charset=ISO-8859-1 if i set a key cache size of 100% the way i understand how that works is: - the cache is not write through, but read through - a key gets added to the cache on the first read if not already available - the size of the cache will always increase for ever item read. so if you have 100mil items your key cache will grow to 100mil Here are my questions: if that is the case then what happens if you only have enough mem to store 10mil items in your key cache? do you lose the other 90% how is it determined what is removed? will the server keep adding til it gets OOM? if you add a row cache as well how does that affect your percentage? if there a priority between the cache? or are they independant so both will try to be satisfied which would result in an OOM? thanx, artie -- http://yeslinux.org http://yestech.org --000e0cd5272e743d46048e08a7c3 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable if i set a key cache size of 100% the way i understand how that works is:
- the cache is not write through, but read through
<= div>- a key gets added to the cache on the first read if not already availa= ble
- the size of the cache will always increase for ever item read. =A0so= if you have 100mil items your key cache will grow to 100mil

=
Here are my questions:

if that is = the case then what happens if you only have enough mem to store 10mil items= in your key cache?=A0
do you lose the other 90% how is it determined what is removed?
<= div>will the server keep adding til it gets OOM?
if you add= a row cache as well how does that affect your percentage?=A0
if = there a priority between the cache? or are they independant so both will tr= y to be satisfied which would result in an OOM?

thanx,
artie
--000e0cd5272e743d46048e08a7c3--