Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 46915 invoked from network); 20 Mar 2009 09:17:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Mar 2009 09:17:42 -0000 Received: (qmail 82541 invoked by uid 500); 20 Mar 2009 09:17:40 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 82509 invoked by uid 500); 20 Mar 2009 09:17:40 -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 82498 invoked by uid 99); 20 Mar 2009 09:17:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Mar 2009 02:17:40 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of paul.joseph.davis@gmail.com designates 209.85.132.246 as permitted sender) Received: from [209.85.132.246] (HELO an-out-0708.google.com) (209.85.132.246) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Mar 2009 09:17:32 +0000 Received: by an-out-0708.google.com with SMTP id b2so617592ana.5 for ; Fri, 20 Mar 2009 02:17:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=+mKHVseNeJGtR+BZctJjDHkNhrDsLd8HjMtYxAWc19U=; b=U8jdO5aSJdEVUNNnaHS0z4kpAyFRZJzDrVwe6R7lqX0kKQZPu3mZSpKnGSd+ZVNPmr rS3RxYR3OLpeVsLFgO4HvlnCYiMjS4/AldOcXGPrbIuVWd25/WDwEnPCYg64St4aoPwW N3qWUqjTs6Qm5YKJJ0ikZs3WGEvpQEx3E3Qf0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=L84WEBPvE0h3ST74JLbZa0dkguO8c+rz3Faugq6hPZI6TmeEPx6v5aO97JUaEmHt2P 4c/g7IfBC5YyqDSCvXvXvyO35qF31SsTR/HVTbMzV6sXk1rWXIoDFAoskLmM7tIhZU/4 j0F0KYgN6XvU4cMTkBg3IZZgnFoocrD88cVWM= MIME-Version: 1.0 Received: by 10.100.43.10 with SMTP id q10mr3817418anq.1.1237540630866; Fri, 20 Mar 2009 02:17:10 -0700 (PDT) In-Reply-To: References: <41139fcb0903192334n6028e604v24d4d31cae735191@mail.gmail.com> Date: Fri, 20 Mar 2009 05:17:10 -0400 Message-ID: Subject: Re: using mutliple cores for view computation From: Paul Davis To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On Fri, Mar 20, 2009 at 5:03 AM, Cedric Vivier wrote: > On Fri, Mar 20, 2009 at 4:49 PM, Paul Davis wrote: > >> A slight clarification, JS itself is multi-threaded. Couchjs is just >> not implemented as a threaded view server. I've contemplated giving >> view servers the ability to exectute multiple jobs simultaneously but >> there are a couple of things that make it not a priority. > > > I also think keeping view servers as simple as possible makes sense. > Otoh is it possible to make CouchDb evenly distribute jobs to several > spawned couchjs view server instances? Not yet. The idea has been floated, but the disk IO caveat lurks there like a menacing monster. > (and the OS scheduler would make sure that the different view server > processes ends up running on different cores I guess... though of course the > 'bottleneck' might be the I/O anyways) > > Regards, >