From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alex Harsanyi <alexharsanyi@gmail.com> Newsgroups: gmane.emacs.devel Subject: Re: "resource temporarily unavailable" errors on windows 7 Date: Fri, 16 Mar 2012 09:12:50 +0800 Message-ID: <CAH-ciFogDptK=4YptzUrvsN2cz+2KB+0rdE+-DMSvJ1c9UKXGQ@mail.gmail.com> References: <CAH-ciFoNr0U7FfJ488MCLSS+zCc6WFF1YrZsQaXXfbL0V8docw@mail.gmail.com> <83aa3lybos.fsf@gnu.org> <CAH-ciFpTUaMyqZgy-OBrM0S=DKq=KVRsg8Y74DYuEgvOyDk-=Q@mail.gmail.com> <CAH-ciFryjk30BsozbaNx8n19aa5LaJFG_=EU1x+osoX3v=Kmsg@mail.gmail.com> <83vcm9w3th.fsf@gnu.org> <CAH-ciFq+srBc2=g3kmy9gfJGPcBfS=VajPnjcMB4pn1G-cwqNg@mail.gmail.com> <83obs0wb0p.fsf@gnu.org> <CAH-ciFpFFt4FQXOGD8hLkKC6ws80dKz6NE8Pn6+VWkyjCZBS2g@mail.gmail.com> <CAH-ciFpUX2T6_xxFrq1aAJOhhasRmFaZK4mWeZJJEfYoXQ8oMg@mail.gmail.com> <83d38fvzsc.fsf@gnu.org> <CAH-ciFqo0BaRHkyzAFWHnrrYXULUnUMNKLX8JueO4TDLj=YA7A@mail.gmail.com> <837gymwlvz.fsf@gnu.org> <834ntpwxsc.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1331860408 9791 80.91.229.3 (16 Mar 2012 01:13:28 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 16 Mar 2012 01:13:28 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii <eliz@gnu.org> Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 16 02:13:25 2012 Return-path: <emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org> Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from <emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org>) id 1S8LjO-0005r0-P9 for ged-emacs-devel@m.gmane.org; Fri, 16 Mar 2012 02:13:22 +0100 Original-Received: from localhost ([::1]:38705 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org>) id 1S8LjO-0005DI-4F for ged-emacs-devel@m.gmane.org; Thu, 15 Mar 2012 21:13:22 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:51020) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <alexharsanyi@gmail.com>) id 1S8LjJ-00059Y-Hp for emacs-devel@gnu.org; Thu, 15 Mar 2012 21:13:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <alexharsanyi@gmail.com>) id 1S8LjH-0006PN-PK for emacs-devel@gnu.org; Thu, 15 Mar 2012 21:13:17 -0400 Original-Received: from mail-wg0-f49.google.com ([74.125.82.49]:41092) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <alexharsanyi@gmail.com>) id 1S8Liu-0006NS-TQ; Thu, 15 Mar 2012 21:12:53 -0400 Original-Received: by wgbdr1 with SMTP id dr1so88741wgb.30 for <multiple recipients>; Thu, 15 Mar 2012 18:12:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=myk60y4+S4xH5GUh5Ka6TzlR7SwaSQc8QX5QtOaQyLQ=; b=fVS9Htd5opeEBUI05CE0guSq5Pduq7wzLF3mfvv7UmhbZYmuLdv8TYFexd1IDC9SM5 f9BpxWU8uccuzjfEx68VWLoK4jo07+AFCOInXzPkS31CRX1lj8O7GJ5of45omUrivTED ZP+cx+J819BlYlcrtOc7SkW9ZfeAniz8ivXTOdLdX26+Or8NJy3zJl7UsR5+gy2nO/CG JHyij4mrBAQhfcV3lsgzKLTgmbLsESjnO/o69srA4otypYsI/sCGatyZDamb4L/NhOLz r5Tt9yZfet670E1xcqM0AP191vlL42M0jfEezanYMh5fB4Eg4hjEcCkXbncaEzjAxa1r PL5w== Original-Received: by 10.216.143.209 with SMTP id l59mr376138wej.87.1331860370288; Thu, 15 Mar 2012 18:12:50 -0700 (PDT) Original-Received: by 10.223.64.212 with HTTP; Thu, 15 Mar 2012 18:12:50 -0700 (PDT) In-Reply-To: <834ntpwxsc.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 74.125.82.49 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." <emacs-devel.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-devel>, <mailto:emacs-devel-request@gnu.org?subject=unsubscribe> List-Archive: <http://lists.gnu.org/archive/html/emacs-devel> List-Post: <mailto:emacs-devel@gnu.org> List-Help: <mailto:emacs-devel-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-devel>, <mailto:emacs-devel-request@gnu.org?subject=subscribe> Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:149093 Archived-At: <http://permalink.gmane.org/gmane.emacs.devel/149093> 2012/3/16 Eli Zaretskii <eliz@gnu.org>: >> Date: Thu, 15 Mar 2012 06:04:00 +0200 >> From: Eli Zaretskii <eliz@gnu.org> >> Cc: emacs-devel@gnu.org >> >> > Date: Thu, 15 Mar 2012 08:02:42 +0800 >> > From: Alex Harsanyi <alexharsanyi@gmail.com> >> > Cc: emacs-devel@gnu.org >> > >> > >> =A0 =A0cp->thrd =3D CreateThread (NULL, 64 * 1024, reader_thread, c= p, >> > >> 0x00010000, &id); >> > > >> > > And does this smaller stack reservation improve the situation, if yo= u >> > > return the initial memory request in allocate_heap to its original >> > > value. >> > > >> > >> > Yes it does. =A0I'm using a build with allocate_heap starting at 2GB >> > (the original value) and this updated CreateThread call as my working >> > Emacs. =A0 I will continue to use it and I will report if I see any mo= re >> > errors. >> >> OK, thanks. =A0If you don't see any problems with this, we could think >> about making this fix permanent. > > As part of your testing, please try the code below, which should allow > you to see whether Emacs can launch many simultaneous subprocesses (it > can support up to 31 on Windows). > > Thanks. > > > =A0(progn > =A0 (dotimes (i 25) > =A0 =A0 (start-process "hi" nil "ls") > =A0 =A0 (message "%d" i))) The above code worked fine on my fixed Emacs. Alex