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 CB01693CC for ; Mon, 31 Oct 2011 12:11:48 +0000 (UTC) Received: (qmail 51979 invoked by uid 500); 31 Oct 2011 12:11:46 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 51944 invoked by uid 500); 31 Oct 2011 12:11:46 -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 51936 invoked by uid 99); 31 Oct 2011 12:11:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Oct 2011 12:11:46 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [193.213.115.48] (HELO mail48.e.nsc.no) (193.213.115.48) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Oct 2011 12:11:40 +0000 Received: from hummingbird.wever.org (ti0022a380-dhcp1004.bb.online.no [88.89.20.243]) by mail48.nsc.no (8.14.4/8.14.4) with ESMTP id p9VCBJsZ027280 for ; Mon, 31 Oct 2011 13:11:19 +0100 (MET) Received: by hummingbird.wever.org (Postfix, from userid 1009) id D4CAC195CA6B; Mon, 31 Oct 2011 13:11:18 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on hummingbird.wever.org X-Spam-score: score=0.0 required=3.0 tests=none autolearn=no Received: from [10.0.0.2] (unknown [10.0.0.2]) by hummingbird.wever.org (Postfix) with ESMTP id A188F195C056 for ; Mon, 31 Oct 2011 13:11:18 +0100 (CET) Subject: Re: OOM on CompressionMetadata.readChunkOffsets(..) From: Mick Semb Wever To: user@cassandra.apache.org In-Reply-To: <1320048473.6216.6.camel@localhost> References: <1320044410.6216.3.camel@localhost> <1320048473.6216.6.camel@localhost> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-n8+e09oj5MfQX6DjSQ9N" Date: Mon, 31 Oct 2011 13:05:49 +0100 Message-ID: <1320062749.6216.20.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.32.3 X-Virus-Status: No X-Virus-Checker-Version: clamassassin 1.2.4 with clamdscan / ClamAV 0.96.5/13869/Mon Oct 31 02:11:37 2011 X-Virus-Checked: Checked by ClamAV on apache.org --=-n8+e09oj5MfQX6DjSQ9N Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, 2011-10-31 at 09:07 +0100, Mick Semb Wever wrote: > The read pattern of these rows is always in bulk so the chunk_length > could have been much higher so to reduce memory usage (my largest > sstable is 61G).=20 Isn't CompressionMetadata.readChunkOffsets(..) rather dangerous here? Given a 60G sstable, even with 64kb chunk_length, to read just that one sstable requires close to 8G free heap memory... Especially when the default for cassandra is 4G heap in total. ~mck --=20 "Anyone who has attended a computer conference in a fancy hotel can tell you that a sentence like "You're one of those computer people, aren't you?" is roughly equivalent to "Look, another amazingly mobile form of slime mold!" in the mouth of a hotel cocktail waitress." Elizabeth Zwicky=20 | http://semb.wever.org | http://sesat.no | | http://tech.finn.no | Java XSS Filter | --=-n8+e09oj5MfQX6DjSQ9N Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (GNU/Linux) iEYEABECAAYFAk6ujx0ACgkQkdPrePiuutOXYgCfYjbSVSgdfacrRxBGqp0wC3YU mMoAn0AkfL8o3w3ychNln4yZyg0Xq0h7 =6Ary -----END PGP SIGNATURE----- --=-n8+e09oj5MfQX6DjSQ9N--