Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 12788 invoked from network); 30 Mar 2011 17:08:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 30 Mar 2011 17:08:21 -0000 Received: (qmail 6417 invoked by uid 500); 30 Mar 2011 17:08:20 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 6381 invoked by uid 500); 30 Mar 2011 17:08:20 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 6371 invoked by uid 99); 30 Mar 2011 17:08:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Mar 2011 17:08:20 +0000 X-ASF-Spam-Status: No, hits=4.0 required=5.0 tests=FREEMAIL_FROM,FREEMAIL_REPLY,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of sean.copenhaver@gmail.com designates 209.85.212.52 as permitted sender) Received: from [209.85.212.52] (HELO mail-vw0-f52.google.com) (209.85.212.52) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Mar 2011 17:08:14 +0000 Received: by vws16 with SMTP id 16so1754069vws.11 for ; Wed, 30 Mar 2011 10:07:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=76M06qazqDq0TzhC6L0WcD4asm2AhhDNZwjz4c2thhA=; b=JeCelh9DBwiLHI5FHYyM8ZJY3mPozyhO4wSmdbpBaBU63tAMBPSe95FTrLFlKy6dZ6 JeuHYV/Hu17wCNG7REMn66vFbK35mYQOnM2jZ+oYlA1OIb3YMyfeiqdL5uRsioEXJGBa eESnLiltsWZ78BpqHi0bb6G69YV4zaLc+5HXc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=l9ZBGQ667r2QyNetL0n9ryiIShkaKKG7Sq3xg47fdPwXIFZhgbd3Kvz94vIqffWDrm ve9xi8TzRU4Ypmi29jMjXfClbsfy5IijJBNECBnq2l4Ep16dCBX5Kd12vuu8HtY7xbQj pb4tqPhoswkEBS8iIDb/rPcZ53+tx1RNqQYWQ= MIME-Version: 1.0 Received: by 10.52.95.108 with SMTP id dj12mr2047433vdb.39.1301504872347; Wed, 30 Mar 2011 10:07:52 -0700 (PDT) Received: by 10.52.163.71 with HTTP; Wed, 30 Mar 2011 10:07:52 -0700 (PDT) In-Reply-To: References: <95002D3F-8F13-4977-A640-446AF2745DBD@adesso.de> <1301469307.21215.199.camel@meerkat.green.sophos> Date: Wed, 30 Mar 2011 13:07:52 -0400 Message-ID: Subject: Re: Surprisingly high CPU load From: Sean Copenhaver To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=20cf3071cbd696f8b7049fb63706 X-Virus-Checked: Checked by ClamAV on apache.org --20cf3071cbd696f8b7049fb63706 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable I would imagine the merging of memcache and couchdb (well couchbase but hopefully contributed back) could result in things like this. On Wed, Mar 30, 2011 at 12:55 PM, kowsik wrote: > In the end, RAM *always* wins. Use fragment caching (rails/sinatra) or > memcached/redis before you bother Couch. That said, I'm seeing direct > doc fetches from CouchDB in the low 10's of milliseconds running on an > EC2 large instance. > > This could be an interesting "feature" in CouchDB. Since it "knows" > about the changes and revisions, it could cache the the latest > revisions of a certain number of documents (memory threshold of sorts) > in memory and return it without disk seeks. > > K. > --- > http://blitz.io > http://twitter.com/pcapr > > On Wed, Mar 30, 2011 at 3:10 AM, bryan rasmussen > wrote: > > How do people deal with this issue in production environments? Just > > adding more CPUs? Any optimizations that one commonly sees? > > > > Thanks, > > Bryan Rasmussen > > > > On Wed, Mar 30, 2011 at 11:54 AM, Filipe David Manana > > wrote: > >> On Wed, Mar 30, 2011 at 8:15 AM, Paul Hirst > wrote: > >>> > >>> You might find this an interesting read > >>> https://issues.apache.org/jira/browse/COUCHDB-1092 > >>> > >>> The performance improvements discussed in that bug sound extremely > >>> appealing but the discussion has gone quiet which is a great shame. I= 'm > >>> still hoping something comes of it. > >> > >> It probably will, the only drawback identified in the discussion of > >> that ticket is not that hard to fix. > >> > >> Also, before moving that one forward, I've been trying several other > >> performance and disk saving approaches and measure the gains of each > >> one. In the end we'll see. Maybe that one gets dropped and something > >> better or equivalent comes out. > >> > >>> > >>> > >>> > >>> Sophos Limited, The Pentagon, Abingdon Science Park, Abingdon, OX14 > 3YP, United Kingdom. > >>> Company Reg No 2096520. VAT Reg No GB 991 2418 08. > >>> > >> > >> > >> > >> -- > >> Filipe David Manana, > >> fdmanana@gmail.com, fdmanana@apache.org > >> > >> "Reasonable men adapt themselves to the world. > >> Unreasonable men adapt the world to themselves. > >> That's why all progress depends on unreasonable men." > >> > > > --=20 =93The limits of language are the limits of one's world. =93 -Ludwig von Wittgenstein --20cf3071cbd696f8b7049fb63706--