Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 97418 invoked from network); 20 Mar 2009 07:10:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Mar 2009 07:10:41 -0000 Received: (qmail 17893 invoked by uid 500); 20 Mar 2009 07:10:34 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 17856 invoked by uid 500); 20 Mar 2009 07:10:34 -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 17845 invoked by uid 99); 20 Mar 2009 07:10:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Mar 2009 00:10:34 -0700 X-ASF-Spam-Status: No, hits=-1.0 required=10.0 tests=RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gcdcu-couchdb-user@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from [80.91.229.2] (HELO ciao.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Mar 2009 07:10:25 +0000 Received: from root by ciao.gmane.org with local (Exim 4.43) id 1LkYri-0007jQ-MJ for user@couchdb.apache.org; Fri, 20 Mar 2009 07:10:02 +0000 Received: from d99-199-37-36.bchsia.telus.net ([99.199.37.36]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 20 Mar 2009 07:10:02 +0000 Received: from lists by d99-199-37-36.bchsia.telus.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 20 Mar 2009 07:10:02 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: user@couchdb.apache.org From: Daniel Friesen Subject: Re: using mutliple cores for view computation Date: Fri, 20 Mar 2009 00:05:32 -0700 Lines: 23 Message-ID: References: <41139fcb0903192334n6028e604v24d4d31cae735191@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: d99-199-37-36.bchsia.telus.net User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.17) Gecko/20080914 Thunderbird/2.0.0.17 ThunderBrowse/3.2.1.9 Mnenhy/0.7.5.666 In-Reply-To: <41139fcb0903192334n6028e604v24d4d31cae735191@mail.gmail.com> Sender: news X-Virus-Checked: Checked by ClamAV on apache.org JavaScript is single-threaded, views are written in JavaScript thus a view can only make use of a single core. On the positive side, it does mean that while doing a view, you still have the cpu power to handle two other views, and handle couch requests with dedicated cores. ~Daniel Friesen (Dantman, Nadir-Seen-Fire) Anand Chitipothu wrote: > I have created a new couchdb database on a quad-core machine, loaded > the database with 30 million documents and created a view. > > I accessed the view for the first time, to start the view computation. > From whatever I can see from the output of top command, beam.smp is > taking around 70% of cpu and couchjs around 30%. > > Shouldn't the view computation process use all the 4 cores for doing > the computation? > > Thanks, > Anand >