Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 8795 invoked from network); 27 Sep 2008 07:29:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Sep 2008 07:29:39 -0000 Received: (qmail 71977 invoked by uid 500); 27 Sep 2008 07:29:30 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 71956 invoked by uid 500); 27 Sep 2008 07:29:30 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 71947 invoked by uid 99); 27 Sep 2008 07:29:30 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 27 Sep 2008 00:29:30 -0700 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [213.191.128.81] (HELO mxout2.iskon.hr) (213.191.128.81) by apache.org (qpsmtpd/0.29) with SMTP; Sat, 27 Sep 2008 07:28:28 +0000 Received: (qmail 24024 invoked from network); 27 Sep 2008 09:28:29 +0200 X-Remote-IP: 213.191.142.123 Received: from unknown (HELO mx.iskon.hr) (213.191.142.123) by mxout2.iskon.hr with SMTP; 27 Sep 2008 09:28:29 +0200 Received: (qmail 19568 invoked from network); 27 Sep 2008 09:28:29 +0200 X-AVScan: ClamAV X-Remote-IP: 89.164.4.16 Received: from 4-16.dsl.iskon.hr (HELO mturk.csb) (89.164.4.16) by mx.iskon.hr with SMTP; 27 Sep 2008 09:28:29 +0200 Message-ID: <48DDE09A.5060802@apache.org> Date: Sat, 27 Sep 2008 09:28:26 +0200 From: Mladen Turk User-Agent: Thunderbird 2.0.0.14 (X11/20080515) MIME-Version: 1.0 To: dev@httpd.apache.org Subject: Re: svn commit: r699481 - /httpd/httpd/trunk/server/mpm/winnt/child.c References: <20080926201510.F2417238889E@eris.apache.org> In-Reply-To: <20080926201510.F2417238889E@eris.apache.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org wrowe@apache.org wrote: > Author: wrowe > Date: Fri Sep 26 13:15:10 2008 > New Revision: 699481 > > URL: http://svn.apache.org/viewvc?rev=699481&view=rev > Log: > Reimplement ThreadStackSize to behave as on unix for any > Windows 2003/2008 (XP/Vista) servers. Virtual allocations > will only consume pages once referenced, while the page > alignment will vary by ThreadStackSize setting so that the > maximum number of threads and minimum stack VM profile will > be wasted. > > - child_handles[i] = (HANDLE) _beginthreadex( > + child_handles[i] = CreateThread(NULL, ap_thread_stacksize, Why did you change the _beginthreadex to CreateThread? Won't that bring back CRT local Tls problems that forced using _beginthreadex at the first place? Also I have concerns with chosen 64K thread stack size for some other threads in this patch series. Perhaps a 256K will be more safe (particularly for winnt_accept), because 64K on stack overflow OS will allocate 1M actually, so this either needs to get carefully calculated or traced by some tool, cause larger initial commit size might eventually use less memory. Regards -- ^(TM)