Return-Path: X-Original-To: apmail-zookeeper-user-archive@www.apache.org Delivered-To: apmail-zookeeper-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 4B4EC8507 for ; Thu, 1 Sep 2011 22:33:20 +0000 (UTC) Received: (qmail 31837 invoked by uid 500); 1 Sep 2011 22:33:19 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 31805 invoked by uid 500); 1 Sep 2011 22:33:19 -0000 Mailing-List: contact user-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@zookeeper.apache.org Delivered-To: mailing list user@zookeeper.apache.org Received: (qmail 31797 invoked by uid 99); 1 Sep 2011 22:33:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Sep 2011 22:33:18 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.210.47] (HELO mail-pz0-f47.google.com) (209.85.210.47) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Sep 2011 22:33:13 +0000 Received: by pzk2 with SMTP id 2so3292659pzk.20 for ; Thu, 01 Sep 2011 15:32:52 -0700 (PDT) Received: by 10.68.199.40 with SMTP id jh8mr788967pbc.30.1314916372029; Thu, 01 Sep 2011 15:32:52 -0700 (PDT) Received: from [10.10.10.121] (host1.hortonworks.com. [70.35.59.2]) by mx.google.com with ESMTPS id t6sm5733703pbg.4.2011.09.01.15.32.50 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 01 Sep 2011 15:32:51 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1084) Subject: Re: Recovery log on /dev/shm? From: Mahadev Konar In-Reply-To: Date: Thu, 1 Sep 2011 15:32:49 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <349378B8-B08D-4E91-A075-4C98D1C6E0CE@hortonworks.com> References: To: user@zookeeper.apache.org X-Mailer: Apple Mail (2.1084) I had done quite a bit of benchmarks on not logging to disk. See ZOOKEEPER-866 and noticed that it actually wasnt of much help. It doesnt improve the = latency by much and also the throughput was still the same. hope that helps. mahadev On Sep 1, 2011, at 2:24 PM, Benjamin Reed wrote: > have you benchmarked the difference between using the ram disk and > turning off sync with forceSync=3Dno? i would think that the = performance > will be similar. you will need to use the code in trunk because > https://issues.apache.org/jira/browse/ZOOKEEPER-1087 isn't in any of > the releases yet. >=20 > thanx > ben >=20 > On Thu, Sep 1, 2011 at 1:31 PM, Ashwin Jayaprakash > wrote: >> This is a follow up to a question I posted in July 2010 - about = whether the >> recovery log could be redirected to /dev/null or some such low = latency drive >> [http://markmail.org/thread/3edpfmvn2fhyg5wv]. >>=20 >> I just found out that Linux distros with 2.6 kernel have a built-in = shared >> memory file system that runs purely in memory - /dev/shm. Since this >> provides recovery across JVM restarts (but not OS restarts) wouldn't = this be >> sufficient to run the ZK nodes off this drive? Replicas are on other >> machines anyway so FT/HA is already there. It's just that disk = latency can >> be eliminated completely. >>=20 >> [Apologies if you guys are already aware of /dev/shm] >>=20 >> I ran some simple Java IO tests (not full ZK) on this drive and I = wanted to >> share my results. Might be of some use to apps that require low = latency: >> = http://javaforu.blogspot.com/2011/09/ram-disk-is-already-in-linux-and-nobo= dy.html >>=20 >> Ashwin. >>=20