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 ADF72CCDF for ; Fri, 18 May 2012 20:58:02 +0000 (UTC) Received: (qmail 71165 invoked by uid 500); 18 May 2012 20:58:01 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 71091 invoked by uid 500); 18 May 2012 20:58:01 -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 71081 invoked by uid 99); 18 May 2012 20:58:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 May 2012 20:58:01 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [176.9.39.58] (HELO mail.cedarsoft.com) (176.9.39.58) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 May 2012 20:57:53 +0000 Received: from [192.168.0.79] (HSI-KBW-078-043-000-174.hsi4.kabel-badenwuerttemberg.de [78.43.0.174]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.cedarsoft.com (Postfix) with ESMTPSA id 39C191E0BB6 for ; Fri, 18 May 2012 22:57:32 +0200 (CEST) Message-ID: <4FB6B7BC.9080403@cedarsoft.com> Date: Fri, 18 May 2012 22:57:32 +0200 From: Johannes Schneider User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120430 Thunderbird/12.0.1 MIME-Version: 1.0 To: user@couchdb.apache.org Subject: Re: Performance decrease from 1.0.1 to 1.2.0 References: <4FB69C07.7070705@cedarsoft.com> In-Reply-To: X-Enigmail-Version: 1.5pre Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Thanks for the hint. Will try it out. But I am sure, there is a good reason for enabling that algorithm? On 18.05.2012 22:27, Adam Kocoloski wrote: > 40ms indicates Nagle's algorithm is kicking in and trying to reduce > the number of packets sent over the wire. Try setting the > following in the .ini configuration: > > socket_options = [{nodelay, true}] > > I believe that was the default in 1.0 and has changed since then. > Cheers, Adam > > On May 18, 2012, at 2:59 PM, Johannes Schneider wrote: > > Hi guys, > > > I am using Ubuntu 12.04 (x86_64) with the default CouchDB > installation. And I have created some very small tests to check the > performance. > > It is just one simple "get". > > > With 1.0.1 it used to take about 1 or 2 milli seconds. Since the > upgrade the same GET takes about 40 millis. I am quite sure that > there is some type of misconfiguration... Anybody has a hint for > me? Are there any special configuration options that changed from > 1.0.1 to 1.2.0 (nothing found in release notes)? Or did Canonical > some magic? > > > > Debug output in couch.log: [Fri, 18 May 2012 18:55:35 GMT] [debug] > [<0.400.0>] 'GET' > /couch_unit_test_1337367299363_55042/_design/all/_view/byTypeAndId?startkey=%5B%22lens%22%5D&include_docs=true&endkey=%5B%22lens%22,%7B%7D%5D > > {1, > > > 1} from "127.0.0.1" Headers: [{'Accept',"text/html, image/gif, > image/jpeg, *; q=.2, */*; q=.2"}, {'Connection',"keep-alive"}, > {'Host',"localhost:5984"}, {'User-Agent',"Java/1.6.0_26"}] [Fri, 18 > May 2012 18:55:35 GMT] [debug] [<0.400.0>] OAuth Params: > [{"startkey","[\"lens\"]"}, {"include_docs","true"}, > {"endkey","[\"lens\",{}]"}] [Fri, 18 May 2012 18:55:35 GMT] [debug] > [<0.400.0>] request_group {Pid, Seq} {<0.402.0>,5} [Fri, 18 May > 2012 18:55:35 GMT] [info] [<0.400.0>] 127.0.0.1 - - GET > /couch_unit_test_1337367299363_55042/_design/all/_view/byTypeAndId?startkey=%5B%22lens%22%5D&include_docs=true&endkey=%5B%22lens%22,%7B%7D%5D > > 200 > > > The map function. ------------------------------ function( doc ) { > var type = doc['@type']; var id = doc['_id']; > > if ( type == null || id == null ) { return } > > emit( [type, id] ); } ------------------------------ > > > No other documents are available (returns "total_rows":0 > > > > Thanks, > > Johannes > > - -- Johannes Schneider - blog.cedarsoft.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQEcBAEBAgAGBQJPtre8AAoJEAytD9R7Qv6dcKEH/RhHUVBbyJsUSUK5vx4eD5sR GBIQrvvAHqLiQ9eQ8jH5jucvF3uhX8dBHEID19IbGDmpGbzk+LQtNtkKsaC5844J pOzJDC1ObvYwtQFaPeUX3mNkV7nkKwrIoB5x1zB1/4utQmlPMkxCrv4XlJ79DcPx 1m59DItFzCTSLUxzG1r1/g3u93xAsxPpBMp0IXFseuXOmuiO5v64u7hXriN3eSWT 6PVhz88AzJTZlYH+10uMuMPbaxcosgNOtbVJDPGXXysziuHEe4gpJB3fQwbs1uow cmVdhB2Ln8I/MJzuGaKwtBncLPnafPSdYwlhsOBEwSVbc5tEDw2wkLKwHBtQsVk= =b6eZ -----END PGP SIGNATURE-----