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 D543C11AD4 for ; Wed, 2 Jul 2014 01:40:42 +0000 (UTC) Received: (qmail 41253 invoked by uid 500); 2 Jul 2014 01:40:40 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 41211 invoked by uid 500); 2 Jul 2014 01:40:40 -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 41199 invoked by uid 99); 2 Jul 2014 01:40:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Jul 2014 01:40:40 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of rcoli@eventbrite.com designates 209.85.215.54 as permitted sender) Received: from [209.85.215.54] (HELO mail-la0-f54.google.com) (209.85.215.54) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Jul 2014 01:40:37 +0000 Received: by mail-la0-f54.google.com with SMTP id mc6so6577204lab.27 for ; Tue, 01 Jul 2014 18:40:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=OVrjdUDxA1hAEmdaePhxMlBDbl4kOaAahSotwjnFqfo=; b=IuV+YoB7fPei/CzvSQhVnq5gjvO1XP4AsGdVlb6/hzJX5LiLHj4w4iBI5Elp0lNhJU ecXJwOGMtSco3YoyXFdRl8HPD6lUI9jB9Y6/j4L6xvL/UltK5Y+f3jcgtydsFb7Ept+Y 3jWHiXB11bCtn2tE2ifR7vAcqUXxDzSRuht6Z226W0i+hMDyJ0hadf9NANiiFr5uzpYd Pg1CZxOCjnLU+0JEukBquFhyM5lyQscf3Zjq/Bi3lxysecG7Gb4FG7LDAvYgA8buSluA 01F7keScWn2m3T6O9ruJj1qjKS4Tfo3F9/f3kkkErIaKmsju5Zrmgf7sJvuPatgInOed Ah4w== X-Gm-Message-State: ALoCoQmoc8lvMRrVnTV4XecfaiLpKZRWk4HH3wLbQ5jSOL7UR5uEw9bpbn0v7SDfjXsFge7qdehd MIME-Version: 1.0 X-Received: by 10.152.4.73 with SMTP id i9mr10079291lai.50.1404265212897; Tue, 01 Jul 2014 18:40:12 -0700 (PDT) Received: by 10.115.4.162 with HTTP; Tue, 1 Jul 2014 18:40:12 -0700 (PDT) In-Reply-To: References: Date: Tue, 1 Jul 2014 18:40:12 -0700 Message-ID: Subject: Re: Fetching ONE cell with a row cache hit takes 1 second on an idle box? From: Robert Coli To: "user@cassandra.apache.org" Content-Type: multipart/alternative; boundary=089e01493d582f74bd04fd2bf954 X-Virus-Checked: Checked by ClamAV on apache.org --089e01493d582f74bd04fd2bf954 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Tue, Jul 1, 2014 at 6:06 PM, Kevin Burton wrote: > you know.. one thing I failed to mention.. .is that this is going into a > "bucket" and while it's a logical row, the physical row is like 500MB =E2= =80=A6 > according to compaction logs. > > is the ENTIRE physical row going into the cache as one unit? That's > definitely going to be a problem in this model. 500MB is a big atomic un= it. > Yes, the row cache is a row cache. It caches what the storage engine calls rows, which CQL calls "partitions." [1] Rows have to be assembled from all of their row fragments in Memtables/SSTables. This is a big part of why the "off-heap" row cache's behavior of invalidation on write is so bad for its overall performance. Updating a single column in your 500MB row invalidates it and forces you to assemble the entire 500MB row from disk. The only valid use case for the current off-heap row cache seems to be : very small, very uniform in size, very hot, and very rarely modified. https://issues.apache.org/jira/browse/CASSANDRA-5357 Is the ticket for replacing the row cache and its unexpected characteristics with something more like an actual query cache. also.. I assume it's having to do a binary search within the physical row ? Since the column level bloom filter's removal in 1.2, the only way it can get to specific columns is via the index. =3DRob [1] https://issues.apache.org/jira/browse/CASSANDRA-6632 --089e01493d582f74bd04fd2bf954 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On T= ue, Jul 1, 2014 at 6:06 PM, Kevin Burton <burton@spinn3r.com> wrote:
you know.. one thing I failed to mention.= . .is that this is going into a "bucket" and while it's a log= ical row, the physical row is like 500MB =E2=80=A6 according to compaction = logs.

is the ENTIRE physical row going into the cache as one unit? =C2=A0That'= ;s definitely going to be a problem in this model. =C2=A0500MB is a big ato= mic unit.

Yes, the row cache is= a row cache. It caches what the storage engine calls rows, which CQL calls= "partitions." [1] Rows have to be assembled from all of their ro= w fragments in Memtables/SSTables.

This is a big part of why the "off-heap" row = cache's behavior of invalidation on write is so bad for its overall per= formance. Updating a single column in your 500MB row invalidates it and for= ces you to assemble the entire 500MB row from disk.=C2=A0

The only valid use case for the current off-heap row ca= che seems to be : very small, very uniform in size, very hot, and very rare= ly modified.


Is the ticket for replacing the row cache and its unexp= ected characteristics with something more like an actual query cache.
=

also.. I assume it's having to do a binary search within the physical r= ow ?=C2=A0

Since the column level bloom fil= ter's removal in 1.2, the only way it can get to specific columns is vi= a the index.

=3DRob
--089e01493d582f74bd04fd2bf954--