Return-Path: Delivered-To: apmail-incubator-couchdb-dev-archive@locus.apache.org Received: (qmail 88637 invoked from network); 6 Nov 2008 00:18:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Nov 2008 00:18:31 -0000 Received: (qmail 82423 invoked by uid 500); 6 Nov 2008 00:18:37 -0000 Delivered-To: apmail-incubator-couchdb-dev-archive@incubator.apache.org Received: (qmail 82382 invoked by uid 500); 6 Nov 2008 00:18:37 -0000 Mailing-List: contact couchdb-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: couchdb-dev@incubator.apache.org Delivered-To: mailing list couchdb-dev@incubator.apache.org Received: (qmail 82368 invoked by uid 99); 6 Nov 2008 00:18:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Nov 2008 16:18:37 -0800 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 jchris@gmail.com designates 64.233.170.190 as permitted sender) Received: from [64.233.170.190] (HELO rn-out-0910.google.com) (64.233.170.190) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Nov 2008 00:17:19 +0000 Received: by rn-out-0910.google.com with SMTP id m7so317477rnd.3 for ; Wed, 05 Nov 2008 16:17:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=LPV77kvxo0x0xTsChTCWXp+7XGuuoAh86/BsLpypTq4=; b=tlnXFn2p39L4n1iFOdR2y5fRFkrZZpbzNqXIRMJoD+CRWFnda3u3Feo6jgn9g07Ggs FecCA1REJlqZoWuv0vtvF5jMxdJufsSGShrWkqQXKs0VKKAU8oeNMzH/JVIrpTPxcsO1 PSh5ZYdo3ag5YSPSEcCFWa59SsRFSneBB8diI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=FTJL7+/1ZBwrfhdqQ1asXvRF1U6yGpMuUGZSIhnlDFMezUKHqX9fhC5hg+3rx+AKTt KivpzDcBu6FRSbpJIFzqCXDv8ILJxIEQBiWOx26xLm1K64qiEk+8ClE3EEBVhYYk68U6 fPwJuhrDhK44VD0nWUOONUByytQkilboNyNuM= Received: by 10.65.212.18 with SMTP id o18mr1484615qbq.21.1225930670326; Wed, 05 Nov 2008 16:17:50 -0800 (PST) Received: by 10.64.193.12 with HTTP; Wed, 5 Nov 2008 16:17:50 -0800 (PST) Message-ID: Date: Wed, 5 Nov 2008 16:17:50 -0800 From: "Chris Anderson" Sender: jchris@gmail.com To: couchdb-dev@incubator.apache.org Subject: Re: increasing ERL_MAX_PORTS In-Reply-To: <9CC63AB0-9DA3-47E9-8208-346DED0C6F3E@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <9CC63AB0-9DA3-47E9-8208-346DED0C6F3E@gmail.com> X-Google-Sender-Auth: 6ffd56fd2a54466d X-Virus-Checked: Checked by ClamAV on apache.org On Wed, Nov 5, 2008 at 12:10 PM, Adam Kocoloski wrote: > When I increased ERL_MAX_PORTS to 50000 (chosen ~arbitrarily) the crashes > disappeared. Hope it helps, > Thanks for the tip, Adam. >> [{erlang,open_port,[{spawn,"couch_erl_driver"},[]]}, >> {couch_util,drv_port,0}, >> {couch_util,collate,3}, >> {couch_view,less_same_type,2}, >> {couch_view,less_list,2}, >> {lists,dropwhile,2}, >> {couch_btree,reduce_stream_kp_node,11}, >> {couch_btree,fold_reduce,7}]}}, Armchair optimization I realize, but I wonder if CouchDB could save some cycles by hanging onto the couch_erl_driver instances. If opening ports is fairly expensive, view generation could speed up some here, I think. -- Chris Anderson http://jchris.mfdz.com