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 B8D09D071 for ; Mon, 25 Jun 2012 05:18:34 +0000 (UTC) Received: (qmail 7373 invoked by uid 500); 25 Jun 2012 05:18:32 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 7271 invoked by uid 500); 25 Jun 2012 05:18:32 -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 7222 invoked by uid 99); 25 Jun 2012 05:18:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Jun 2012 05:18:30 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FSL_RCVD_USER,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of noble.paul@gmail.com designates 209.85.214.172 as permitted sender) Received: from [209.85.214.172] (HELO mail-ob0-f172.google.com) (209.85.214.172) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Jun 2012 05:18:23 +0000 Received: by obbwc20 with SMTP id wc20so6870431obb.31 for ; Sun, 24 Jun 2012 22:18:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=hPMyyvq672xZaR65H3n0j1TQBhgqnMQykJk2BYY1rgE=; b=IiEpAp3+9PJpJLKIpwd8/0S0mrW26Y/t/AS6QJiT/kBv2AlG2VSiQpN1SOmrfiy/9V x3BO3EF8Jk0xiECH9PTVS8s0N5cvWzxPQobxbqr3Wybmn0F576kwpLac8wj6OsfqtM4T TwAnKBf1HPuudUUm8k4T8pfVr6RaO26c45ml5bVQkUghUJXjIsk9LFYZ7RvnCi8z8we0 ZnMPFuI0RxfT4Wgk+yMIc56k4RttIVKjHtGHf6p/aWy+BZ1wlfQXVleTk5XStgqCYe0Z a7gOXqqCBU25UJnOUBzJu72QfmtxX+MtqlUsZRb8bjEMco62nOVJBnhD5Oazp8Sn5SuL AYeQ== Received: by 10.50.203.41 with SMTP id kn9mr7137018igc.72.1340601482662; Sun, 24 Jun 2012 22:18:02 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.137.4 with HTTP; Sun, 24 Jun 2012 22:17:42 -0700 (PDT) In-Reply-To: References: From: =?UTF-8?B?Tm9ibGUgUGF1bCDgtKjgtYvgtKzgtL/gtLPgtY3igI0gIOCkqOCli+CkrOCljeCks+CljQ==?= Date: Mon, 25 Jun 2012 10:47:42 +0530 Message-ID: Subject: Re: Limited row cache size To: user@cassandra.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable sorry I meant 1.1.1 build On Mon, Jun 25, 2012 at 10:40 AM, Noble Paul =E0=B4=A8=E0=B5=8B=E0=B4=AC=E0= =B4=BF=E0=B4=B3=E0=B5=8D=E2=80=8D =E0=A4=A8=E0=A5=8B=E0=A4=AC=E0=A5=8D=E0= =A4=B3=E0=A5=8D wrote: > I was using the datastax build. Do they also have a 1.1 build? > > On Mon, Jun 18, 2012 at 9:05 AM, aaron morton w= rote: >> cassandra 1.1.1 ships with=C2=A0concurrentlinkedhashmap-lru-1.3.jar >> >> row_cache_size_in_mb starts life as an int but the byte size is stored a= s a >> long >> https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassa= ndra/service/CacheService.java#L143 >> >> Cheers >> >> >> ----------------- >> Aaron Morton >> Freelance Developer >> @aaronmorton >> http://www.thelastpickle.com >> >> On 15/06/2012, at 7:13 PM, Noble Paul =E0=B4=A8=E0=B5=8B=E0=B4=AC=E0=B4= =BF=E0=B4=B3=E0=B5=8D=E2=80=8D =E0=A4=A8=E0=A5=8B=E0=A4=AC=E0=A5=8D=E0=A4= =B3=E0=A5=8D wrote: >> >> hi, >> I configured my server with a row_cache_size_in_mb : 1920 >> >> When =C2=A0started the server and checked =C2=A0the JMX it shows the cap= acity is >> set to 1024MB . >> >> I investigated further and found that the version of >> concurrentlruhashmap used is 1.2 which sets capacity max value to 1GB. >> >> So, in cassandra 1.1 the max cache size I can use is 1GB >> >> >> Digging deeper , I realized that throughout the API chain the cache >> size is passed around as an int so even if I write my own >> CacheProvider the max size would be Integer.MAX_VALUE =3D 2GB >> >> unless cassandra changes the version of concurrentlruhashmap to 1.3 >> and change the signature to use a long for size, we can't have a big >> cache. according to me 1 GB is a really small size. >> >> So , even if I have bigger machines I can't really use them >> >> >> >> -- >> ----------------------------------------------------- >> Noble Paul >> >> > > > > -- > ----------------------------------------------------- > Noble Paul --=20 ----------------------------------------------------- Noble Paul