X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-498406.4 required=5.0 	tests=AWL,BAYES_00
X-Spam-Check-By: sourceware.org
X-MDAV-Processed: mail1.multiplay.co.uk, Thu, 30 Jul 2009 17:51:01 +0100
X-Spam-Processed: mail1.multiplay.co.uk, Thu, 30 Jul 2009 17:51:00 +0100 	(not processed: message from trusted or authenticated source)
X-MDRemoteIP: 213.123.247.160
X-Return-Path: prvs=146232ce52=killing@multiplay.co.uk
X-Envelope-From: killing@multiplay.co.uk
X-MDaemon-Deliver-To: cygwin@cygwin.com
Message-ID: <8252341D7A1D44F3BF89D37082D9F72C@multiplay.co.uk>
From: "Steven Hartland" <killing@multiplay.co.uk>
To: <cygwin@cygwin.com>
References: <83iqhlbgoc.fsf@gmail.com> <4A6727A8.2090905@cornell.edu> <83iqhkur2h.fsf@gmail.com> <834osy98jo.fsf_-_@gmail.com> <83tz0xtt6c.fsf@gmail.com> <20090729023256.GC11458@ednor.casa.cgf.cx> <838wi8vt9v.fsf@gmail.com> <20090729232522.GC13645@ednor.casa.cgf.cx> <20090730164520.GA17582@calimero.vinschen.de>
Subject: Re: Emacs can't start-process more than 30~40 processes
Date: Thu, 30 Jul 2009 17:50:59 +0100
MIME-Version: 1.0
Content-Type: text/plain; 	format=flowed; 	charset="iso-8859-1"; 	reply-type=original
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com


----- Original Message ----- 
From: "Corinna Vinschen"

> On Jul 29 19:25, Christopher Faylor wrote:
>> On Wed, Jul 29, 2009 at 03:32:28PM +0800, Haojun Bao wrote:
>> >Christopher Faylor <cgf-use-the-mailinglist-please@cygwin.com> writes:
>> >
>> >> On Tue, Jul 28, 2009 at 10:52:44AM +0800, Haojun Bao wrote:
>> >>>I have debugged it again, and I think I have more clue. I have read the
>> >>>how-cygheap-works.txt, and this might be a known problem.
>> >>>[...]
>> >> it is a "small" number then something is wrong and we're allocating too
>> >> much of the cygheap.  The cygheap was always supposed to be relatively
>> >> small.  Maybe we're abusing it too much in 1.7.
>> >
>> >There are quite some fds. In start-process, emacs will allocate 1 PTY
>> >and 1 pipe for each process it starts.
>> 
>> Yes, I assumed that there were a bunch of fds but I was looking for an
>> exact number rather than "quite some".  I can't give exact details about
>> how to find the number now but I thought that since you were looking at
>> the code it wouldn't be too hard to figure this value out.
>> 
>> Anyway, Corinna has a stopgap fix for this which will probably show up
>> in a 1.7.0-* release sometime soon.
> 
> The stopgap fix is in 1.7.0-53.

Ahh this might also be the cause of the issue we where seeing when
I started the thread:-
maximum number of cygwin processes per user?

    Regards
    Steve


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

