Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 11826200C60 for ; Mon, 10 Apr 2017 03:38:37 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 054A3160BA6; Mon, 10 Apr 2017 01:38:37 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 2803D160BA4 for ; Mon, 10 Apr 2017 03:38:36 +0200 (CEST) Received: (qmail 93108 invoked by uid 500); 10 Apr 2017 01:38:35 -0000 Mailing-List: contact user-help@kudu.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@kudu.apache.org Delivered-To: mailing list user@kudu.apache.org Received: (qmail 93098 invoked by uid 99); 10 Apr 2017 01:38:35 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Apr 2017 01:38:35 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 9DF7FC33ED for ; Mon, 10 Apr 2017 01:38:34 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.897 X-Spam-Level: X-Spam-Status: No, score=-0.897 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-2.796, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id RcWzi9s0H_l4 for ; Mon, 10 Apr 2017 01:38:33 +0000 (UTC) Received: from mail-yb0-f176.google.com (mail-yb0-f176.google.com [209.85.213.176]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 609F05FBA0 for ; Mon, 10 Apr 2017 01:38:33 +0000 (UTC) Received: by mail-yb0-f176.google.com with SMTP id f204so28187874ybc.2 for ; Sun, 09 Apr 2017 18:38:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=inApO9+RaiXQCXTyB/vOOd4xl8BP8BhLKtu0AqdOK60=; b=M+2ojLwC382RkmHwzsbcZ3VkC0nGVp7r5bi0Pr7zeZdRz2HN8QNqajPmfw52D06V83 dsALGOn96dWw2UV86Ek5lF1ck5iWGwlO/e0FWK33lGGyaRyrfvNym74towm1icGJMBaH eGyBqBUDM2OJLIRkBhXK5xOImeGlIvS3EIOLFD77h15Dt54QQ2eceK+2phkQ82a6WLzi U6XXN3DMZcZuV8zeP425q1EAwTZF9SVZ9JA1p3nDZaSKROXWrJfHbSMRE9zsJVwY2Q/v +iMGFHE81tbxASeT1Vk3U+326+WoaSBvHhL6nKIBvq+pY/ySGDCCc5LYOUEFk0/jmyjR 7gig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=inApO9+RaiXQCXTyB/vOOd4xl8BP8BhLKtu0AqdOK60=; b=ISI7D2j/PLU1t6cRWwqZN7saiONOTus5T3281SXU+H7qtVfUv6a+NOVJZStg1/5gxQ TnFOslHRIKMOi2d8Xq7hMB4at4/q8SSBBxKmlxLUn6nPeOWwR2lAALTufC2bmof0Vb4x iRM/yZqvTQyPes50h+87Tz0K+3pvIh4pl7pahtVuK7jIiITKFfkQOBtHR0oaR6ju1cpw nDCl4Q7mQxXLbLQF4TnyPBpvhUnnzqcCZYhRQ2uVtksjMKgtN3HAJAyCR4B57/fKXgbW uxpmJmjVvpLTr0qJoBBnNMdcpvZ7f7aNWgiQFslrazzIR1n4v1aiEfoBOQoEoOm7xUlA VZww== X-Gm-Message-State: AN3rC/4OP+kuyJid003lVS4HX6wGGZicK0detvdjLU2YOrTZ9gvNO28lMrmu7UpbTBGpZnNHzfAkO8cQHbOLfg== X-Received: by 10.129.157.79 with SMTP id u76mr2250777ywg.323.1491788312894; Sun, 09 Apr 2017 18:38:32 -0700 (PDT) MIME-Version: 1.0 Received: by 10.129.125.86 with HTTP; Sun, 9 Apr 2017 18:38:32 -0700 (PDT) In-Reply-To: References: From: Jason Heo Date: Mon, 10 Apr 2017 10:38:32 +0900 Message-ID: Subject: Re: How to flush `block_cache_capacity_mb` easily? To: user@kudu.apache.org Content-Type: multipart/alternative; boundary=94eb2c0b61e878651f054cc608ee archived-at: Mon, 10 Apr 2017 01:38:37 -0000 --94eb2c0b61e878651f054cc608ee Content-Type: text/plain; charset=UTF-8 Hi Todd. I hope you had a good weekend. Exactly, I'm testing the latency of cold-cache reads from SATA disks and performance of difference schema designs as well. We currently using Elasticsearch for a analytic service. ES has a "clear cache API" feature, it makes me easy to test. Thanks. Jason. 2017-04-08 5:05 GMT+09:00 Todd Lipcon : > Hey Jason, > > Can I ask what the purposes of the testing is? > > One thing to note is that we're currently leaving a fair bit of > performance on the table for cold-cache reads from spinning disks. So, if > you find that the performance is not satisfactory, it's worth being aware > that we will likely make some significant improvements in this area in the > future. > > https://issues.apache.org/jira/browse/KUDU-1289 has some details. > > -Todd > > On Fri, Apr 7, 2017 at 8:44 AM, Dan Burkert wrote: > >> Hi Jason, >> >> There is no command to have Kudu evict its block cache, but restarting >> the tablet server process will have that effect. Ideally all written data >> will be flushed before the restart, otherwise startup/bootstrap will take a >> bit longer. Flushing typically happens within 60s of the last write. >> Waiting for flush and compaction is also a best-practice for read-only >> benchmarks. I'm not sure if someone else on the list has an easier way of >> determining when a flush happens, but I typically look at the 'MemRowSet' >> memory usage for the tablet on the /mem-trackers HTTP endpoint; it should >> show something minimal like 256B if it's fully flushed and empty. You can >> also see details about how much memory is in the block cache on that page, >> if that interests you. >> >> - Dan >> >> On Thu, Apr 6, 2017 at 11:23 PM, Jason Heo >> wrote: >> >>> Hi. >>> >>> I'm using Apache Kudu 1.2 on CDH 5.10. >>> >>> Currently, I'm doing a performance test of Kudu. >>> >>> Flushing OS Page Cache is easy, but I don't know how to flush >>> `block_cache_capacity_mb` easily. >>> >>> I currently execute SELECT statement over a unnecessarily table to evict >>> cached block of testing table. >>> >>> It is cumbersome, so I'd like to know is there a command for flushing >>> block caches (or another kudu's caches which I don't know yet) >>> >>> Thanks. >>> >>> Regards, >>> Jason >>> >> >> > > > -- > Todd Lipcon > Software Engineer, Cloudera > --94eb2c0b61e878651f054cc608ee Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Todd.

I hope you had a good weekend.=

Exactly, I'm testing the latency of cold-cach= e reads from SATA disks and performance of difference schema designs as wel= l.

We currently using Elasticsearch for a analytic= service. ES has a "clear cache API" feature, it makes me easy to= test.

Thanks.

Jason.

2017-04-0= 8 5:05 GMT+09:00 Todd Lipcon <todd@cloudera.com>:
Hey Jason,

Can = I ask what the purposes of the testing is?

One thi= ng to note is that we're currently leaving a fair bit of performance on= the table for cold-cache reads from spinning disks. So, if you find that t= he performance is not satisfactory, it's worth being aware that we will= likely make some significant improvements in this area in the future.


-Todd

On = Fri, Apr 7, 2017 at 8:44 AM, Dan Burkert <danburkert@apache.org>= ; wrote:
Hi Jason= ,

There is no command to have Kudu evict its block cache= , but restarting the tablet server process will have that effect.=C2=A0 Ide= ally all written data will be flushed before the restart, otherwise startup= /bootstrap will take a bit longer. Flushing typically happens within 60s of= the last write.=C2=A0 Waiting for flush and compaction is also a best-prac= tice for read-only benchmarks.=C2=A0 I'm not sure if someone else on th= e list has an easier way of determining when a flush happens, but I typical= ly look at the 'MemRowSet' memory usage for the tablet on the /mem-= trackers HTTP endpoint; it should show something minimal like 256B if it= 9;s fully flushed and empty.=C2=A0 You can also see details about how much = memory is in the block cache on that page, if that interests you.

- Dan
<= br>
On Thu, Apr 6, 2017 at 11:23 PM, Jason Heo <jason.heo.sde@gmail.com> wrote:
Hi.

I'm using Apache Kud= u 1.2 on CDH 5.10.

Currently, I'm doing a perf= ormance test of Kudu.

Flushing OS Page Cache is ea= sy, but I don't know how to flush `block_cache_capacity_mb` easily.

I currently execute SELECT statement over a unnecessa= rily table to evict cached block of testing table.

It is cumbersome, so I'd like to know is there a command for flushing = block caches (or another kudu's caches which I don't know yet)

Thanks.

Regards,
Ja= son




<= /div>--
Todd= Lipcon
Software Engineer, Cloudera

--94eb2c0b61e878651f054cc608ee--