Return-Path: Delivered-To: apmail-incubator-couchdb-user-archive@locus.apache.org Received: (qmail 69687 invoked from network); 17 Jun 2008 19:12:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Jun 2008 19:12:45 -0000 Received: (qmail 83297 invoked by uid 500); 17 Jun 2008 19:12:46 -0000 Delivered-To: apmail-incubator-couchdb-user-archive@incubator.apache.org Received: (qmail 83278 invoked by uid 500); 17 Jun 2008 19:12:46 -0000 Mailing-List: contact couchdb-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: couchdb-user@incubator.apache.org Delivered-To: mailing list couchdb-user@incubator.apache.org Received: (qmail 83267 invoked by uid 99); 17 Jun 2008 19:12:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Jun 2008 12:12:46 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of schickb@gmail.com designates 64.233.166.183 as permitted sender) Received: from [64.233.166.183] (HELO py-out-1112.google.com) (64.233.166.183) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Jun 2008 19:11:54 +0000 Received: by py-out-1112.google.com with SMTP id u52so2025234pyb.13 for ; Tue, 17 Jun 2008 12:12:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=Zfu0M1KVSm+otuLEyu3fzOD0ws2LGuCN3J2GS9SsFJM=; b=gsEj1PwYvJZT3hgwWYnYlYKLgTypTCUCccK5EjzKQmhvyOlgn2xQ3c3y69nNARW+NJ kUR20da6GzjJFwTUYdEBzFKxm6DJ9f95Kr1twq5s2WwpAnp347/V77MFcOnk5xjpZJk/ IvbV1UXqrx+hZuWJe/78CHrDqMGPZYc7DuNVA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=APT2EJmYsqNo+FCuvatqOzN57W7R49lJTLYTxa4divlLQEM/kVcul8gBnAvY9GJLBq fCcxgpQcVuIwVby+MDPsX5QDzhzQZbXhnCvB/lUUYmeVbloEKoh0u/5x0Rjcf+NXWRoz f7snAoOfAXNevVinE51VTAAGEfGtmbceR5UMc= Received: by 10.115.79.1 with SMTP id g1mr8495118wal.61.1213729932063; Tue, 17 Jun 2008 12:12:12 -0700 (PDT) Received: from ?192.168.1.2? ( [71.212.28.28]) by mx.google.com with ESMTPS id n6sm9474856wag.2.2008.06.17.12.12.10 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 17 Jun 2008 12:12:11 -0700 (PDT) Message-ID: <48580C64.40806@gmail.com> Date: Tue, 17 Jun 2008 12:11:32 -0700 From: Brad Schick User-Agent: Thunderbird 2.0.0.14 (X11/20080505) MIME-Version: 1.0 To: couchdb-user@incubator.apache.org Subject: Bad write performance Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org I am seeing very poor write performance running CouchDB on Ubuntu Linux 8.04. I built CouchDB from source about a week ago, and I am using the Python wrapper to access it all on localhost. I am trying to add over 90,000 documents (each is about 400 bytes) and finding that I can only add about 16 documents per second. And while this is happening, my CPU is about 75% idle. I saw this discussion of the Nagle algorithm (http://www.cmlenz.net/archives/2008/03/python-httplib-performance-problems), but I don't think that is the issue since mochiweb_sockert_server.erl now has {nodelay, true}. I've also tried adding nodelay on the client side and that didn't help. Profiling the client app I see that almost all of the time is spent in httplib.py:getresponse. So there is some bottleneck between the client and server that is not CPU bound. Any suggestions? I know very little about Erlang, is there an easy way to profile CouchDB? -Brad