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 8E150103FD for ; Mon, 23 Sep 2013 11:14:59 +0000 (UTC) Received: (qmail 24928 invoked by uid 500); 23 Sep 2013 11:10:42 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 24837 invoked by uid 500); 23 Sep 2013 11:10: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 24718 invoked by uid 99); 23 Sep 2013 11:10:11 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Sep 2013 11:10:11 +0000 Date: Mon, 23 Sep 2013 11:10:11 +0000 (UTC) From: "Oleg Anastasyev (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CASSANDRA-6078) Wrong memtable size estimation: liveRatio is not honored in edge cases 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-6078?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Oleg Anastasyev updated CASSANDRA-6078: --------------------------------------- Description: Memtable.getLiveSize does not honours liveRatio the correct way: allocator.get**Size() return sizes allocated only by name and columns data (i.e. no liveRatio applied); but conditions, which cap estimated size, compare it with estimatedSize, already multiplied by liveRatio. If liveRatio is big enough (i've seen >11 on our dataset), this leads to huge estimation errors and even to OutOfMemory, because MeteredFlusher underestimates memtables sizes. was: Memtable.getLiveSize does not honours liveRatio the correct way: allocator.get**Size() return sizes allocated only by name and columns data (i.e. no liveRatio applied); but conditions, which cap estimated size, compare it with estimatedSize, already multiplied by liveRatio. If liveRatio is big enough (i've seen >11 on our dataset), this leads to huge estimation errors and even to OutOfMemory, because MeteredFlusher is underestimates memtables sizes. > Wrong memtable size estimation: liveRatio is not honored in edge cases > ---------------------------------------------------------------------- > > Key: CASSANDRA-6078 > URL: https://issues.apache.org/jira/browse/CASSANDRA-6078 > Project: Cassandra > Issue Type: Bug > Reporter: Oleg Anastasyev > Attachments: Memtable-getLiveSize.diff > > > Memtable.getLiveSize does not honours liveRatio the correct way: > allocator.get**Size() return sizes allocated only by name and columns data (i.e. no liveRatio applied); but conditions, which cap estimated size, compare it with estimatedSize, already multiplied by liveRatio. > If liveRatio is big enough (i've seen >11 on our dataset), this leads to huge estimation errors and even to OutOfMemory, because MeteredFlusher underestimates memtables sizes. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira