Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C9F10871F for ; Tue, 6 Sep 2011 01:29:32 +0000 (UTC) Received: (qmail 80208 invoked by uid 500); 6 Sep 2011 01:29:32 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 80186 invoked by uid 500); 6 Sep 2011 01:29:32 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 80178 invoked by uid 99); 6 Sep 2011 01:29:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Sep 2011 01:29:31 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Sep 2011 01:29:30 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 30EC8595E1 for ; Tue, 6 Sep 2011 01:29:10 +0000 (UTC) Date: Tue, 6 Sep 2011 01:29:10 +0000 (UTC) From: "Jonathan Ellis (JIRA)" To: commits@cassandra.apache.org Message-ID: <1021497760.18795.1315272550196.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1854214475.45631.1313596467724.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (CASSANDRA-3050) Global row cache MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-3050?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13097685#comment-13097685 ] Jonathan Ellis commented on CASSANDRA-3050: ------------------------------------------- Hmm. I guess we could have the cache provider include a sizeInMemory method? For serialized off-heap cache we can just use the FreeableMemory size(). For on-heap cache we can use the serializedSize * liveRatio from the CF's memtable. > Global row cache > ---------------- > > Key: CASSANDRA-3050 > URL: https://issues.apache.org/jira/browse/CASSANDRA-3050 > Project: Cassandra > Issue Type: Improvement > Components: Core > Reporter: Jonathan Ellis > Assignee: Pavel Yaskevich > Priority: Minor > Fix For: 1.1 > > > Row-cache-per-columnfamily is difficult to configure well as columnfamilies are added, similar to how memtables were difficult pre-CASSANDRA-2006. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira