Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 3284 invoked from network); 29 Mar 2011 17:03:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 29 Mar 2011 17:03:25 -0000 Received: (qmail 38896 invoked by uid 500); 29 Mar 2011 17:03:23 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 38816 invoked by uid 500); 29 Mar 2011 17:03:23 -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 Delivered-To: moderator for user@couchdb.apache.org Received: (qmail 22167 invoked by uid 99); 29 Mar 2011 13:27:22 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) X-Virus-Scanned: amavisd-new at adesso.de From: "Grauel, Moritz" To: "user@couchdb.apache.org" Date: Tue, 29 Mar 2011 15:26:52 +0200 Subject: Surprisingly high CPU load Thread-Topic: Surprisingly high CPU load Thread-Index: AcvuFPfym3/Dzv0aQ7ixOk+dtrwcbQ== Message-ID: <95002D3F-8F13-4977-A640-446AF2745DBD@adesso.de> Accept-Language: de-DE Content-Language: de-DE X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: de-DE Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-TBoneOriginalFrom: "Grauel, Moritz" X-TBoneOriginalTo: "user@couchdb.apache.org" X-TBoneDomainSigned: false X-Virus-Checked: Checked by ClamAV on apache.org Hi, I am currently evaluating CouchDB. During my tests I have observed suprisi= ngly high CPU load. I have installed a fresh CouchDB 1.0.2, created a DB an= d inserted one doc { 'hello':'world'}. Then I just fetch this single document as often as possible. My expectation= s are, that the network should be the bottleneck in this simple case. However the CPU Load of couchdb is very high. with 5 concurrect threads fet= ching the document I get around 90% cpu usage. Serving the json as a static= file with an apache yields about twice as many requests as couchdb and onl= y about 50% cpu load. I have repeated this test on linux in a vm, linux directly on the metal and= osx and the results are more or less similar. I am very aware of the fact, that my 'benchmarks' are very rough... however= I am concerned about the actual performance of couchdb when serving lots o= f requests. Why is CouchDB generating such a high load? Why isn't couch able to saturat= e the network? I have tried disabling compression and setting the loglevel to error with n= o effect. Regards, Mo =