Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-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 988FA7226 for ; Thu, 11 Aug 2011 19:30:29 +0000 (UTC) Received: (qmail 73380 invoked by uid 500); 11 Aug 2011 19:30:28 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 73333 invoked by uid 500); 11 Aug 2011 19:30:27 -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 73325 invoked by uid 99); 11 Aug 2011 19:30:27 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Aug 2011 19:30:27 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of johnlicheng@gmail.com designates 209.85.213.180 as permitted sender) Received: from [209.85.213.180] (HELO mail-yx0-f180.google.com) (209.85.213.180) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Aug 2011 19:30:20 +0000 Received: by yxi11 with SMTP id 11so2288619yxi.11 for ; Thu, 11 Aug 2011 12:30:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=WzD0+XpSmn46xyjs2O7XsAkOh3+ZQ8IBpimy7ydRWYw=; b=KFQuTW0U9kjeUFaU1h4VUCUBqovrIOp8D1OOpDy1BHshCKchnzCGtRu5tzWtyOio34 uK6zaxhKa+M+ihHMdTdrygvDeB4Vmy6gnqc32L9xRPdOM6DB03AMEKJpYxdVGLM7bdOi AbET8irwwBXsPI1C76qTT067G+jYCauTTYHk8= Received: by 10.101.84.12 with SMTP id m12mr17408anl.62.1313091000073; Thu, 11 Aug 2011 12:30:00 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.225.16 with HTTP; Thu, 11 Aug 2011 12:29:40 -0700 (PDT) In-Reply-To: References: <9E9A84DE-CA6F-453B-9FDC-C5BCA48F0B24@apache.org> From: John Cheng Date: Thu, 11 Aug 2011 12:29:40 -0700 Message-ID: Subject: Re: CouchDB performance To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=001636ed6eb09dff3604aa3fd2d6 --001636ed6eb09dff3604aa3fd2d6 Content-Type: text/plain; charset=ISO-8859-1 On Thu, Aug 11, 2011 at 11:36 AM, John Cheng wrote: > On Thu, Aug 11, 2011 at 11:02 AM, Adam Kocoloski wrote: > >> Hi John, first thing I'd point out is that Filipe and Paul have done quite >> a lot of work on the JSON processor since 1.0.2 was released. Trunk >> contains a JSON processor that calls out to YAJL instead of relying on pure >> Erlang code. The improvement for large document bodies is pretty >> substantial. Also, processing MBs of JSON is going to be CPU-bound in >> 1.0.2. CouchDB makes good use of multicore servers to distribute some of >> the load if you throw concurrent requests at it. Hope that helps, >> >> Adam >> > > It does help here. I'll see if I can get compile the latest version of > CouchDB on Ubuntu 10 LTS. It's been an adventure trying to compile CouchDB > so far! > Just compiled CouchDB 1.1.0 Testing with doc target size = "100 kB", # of properties = "10", updates = "500", numDocs = "100" each document is approximately 100.1 kB Using increment handler function to perform update 500 updates in 42.1960351467 seconds, 11.8494545343 ops/second Now the updates dropped from 23 updates/sec to 11.84 updates/second Even inserts dropped to 24 inserts/second. Accroding to iostat, CPU was mostly idle (~85 to 92%) and I'm only getting 300 kB writes per second. I guess this could be a problem with httplib2. Is there any configuration or compile time options I may have missed that could cause such a big drop in performance? -- --- John L Cheng --001636ed6eb09dff3604aa3fd2d6--