Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 67721 invoked from network); 4 Aug 2010 19:19:17 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 4 Aug 2010 19:19:17 -0000 Received: (qmail 20348 invoked by uid 500); 4 Aug 2010 19:19:15 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 20302 invoked by uid 500); 4 Aug 2010 19:19:15 -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 20291 invoked by uid 99); 4 Aug 2010 19:19:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Aug 2010 19:19:15 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ghempton@gmail.com designates 74.125.82.54 as permitted sender) Received: from [74.125.82.54] (HELO mail-ww0-f54.google.com) (74.125.82.54) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Aug 2010 19:19:10 +0000 Received: by wwb31 with SMTP id 31so3094426wwb.23 for ; Wed, 04 Aug 2010 12:18:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=Uh5f3FN6qUKpjfOlzj6/913oJccGM2GeUTnrnY8nYGU=; b=jbM0bXGJQyui/Uns39F8/Yy1J7CpY/up8P8Av+oDe6BZ6BvraF5w+MPEEnxWMyEmH+ KhVRH2KeyS8WXCGomczOxnCY3BoAAo5H+3vNIcbuH9WgqozyyrJ4tIUcwBfthWoLWiOt /bZTVOC307HpnphV0KwXccWBPy8RE9Cnd9D4U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=vIajViPMMTffLHVzQAn8kq23h2H4UnbdnbeEs4UunZ9tnX5JLMcjBMMqx+sOaSEcRr +4CkgN7LH6gyjvbJ0+YuP9gs09oDczZxFDjK5oKQ/XMdKYMTurZu1/ejJZcd66+OL0xQ 1ijvd53cP6GkO5hqWCB8NuZ4/4zAuvJ8/tSnc= MIME-Version: 1.0 Received: by 10.216.67.6 with SMTP id i6mr2452710wed.44.1280949526737; Wed, 04 Aug 2010 12:18:46 -0700 (PDT) Received: by 10.216.156.83 with HTTP; Wed, 4 Aug 2010 12:18:46 -0700 (PDT) Date: Wed, 4 Aug 2010 12:18:46 -0700 Message-ID: Subject: View Building Grinds System to Halt From: Gordon Leland Hempton To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=000e0cdf6fea8462e1048d044de1 --000e0cdf6fea8462e1048d044de1 Content-Type: text/plain; charset=ISO-8859-1 I am working with a database of ~10 mil docs and 30GB size. I am trying to build a view consisting of a single field as the key and a null document. After creating the view and trying to access it, the couchdb beam.smp command eventually goes up to 12.3GB virtual memory and uses 3.7GB of physical memory. Memory is clearly the bottleneck as the CPU usage is around 5-15%. My system only has 4GB of memory so naturally all this paging is slowing everything down to a crawl. After a few minutes this usage will go back down, but it will get to the same levels every time I access the view (which is still building and has been for 12 hours). Is this normal? How can I improve this? -- Gordon L. Hempton http://componentlab.com http://hempton.com --000e0cdf6fea8462e1048d044de1--