Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 49273 invoked from network); 3 Mar 2006 16:23:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 Mar 2006 16:23:20 -0000 Received: (qmail 11379 invoked by uid 500); 3 Mar 2006 16:24:00 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 11160 invoked by uid 500); 3 Mar 2006 16:23:59 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Id: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 11113 invoked by uid 99); 3 Mar 2006 16:23:59 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Mar 2006 08:23:59 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [193.70.193.55] (HELO mail2a.webresidence.it) (193.70.193.55) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Mar 2006 08:23:58 -0800 Received: from [192.168.233.64] (151.5.148.94) by mail2a.webresidence.it (7.2.059.5) (authenticated as m.spinetti) id 434C474700062718 for dev@apr.apache.org; Fri, 3 Mar 2006 17:23:36 +0100 Message-ID: <44086D24.60304@pisa.iol.it> Date: Fri, 03 Mar 2006 17:21:56 +0100 From: Marco Spinetti User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.3) Gecko/20040910 X-Accept-Language: en-us, en MIME-Version: 1.0 To: dev-apr Subject: [Fwd: Modules architecture diff] Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Investing on my multi-threads architecture, today my apache blocked!! Two apache childs blocked and they were consuming all my CPU. As soon as I discovered this problem, I tryed to do strace pids of childs: futex(0x80d29b0, FUTEX_WAIT, 2, NULL) = -1 EAGAIN (Resource temporarily unavailable) It seems there is some problems with threads .... Do you know if there is some known bugs with apr threads? --Marco -------- Original Message -------- Subject: Modules architecture diff Date: Thu, 02 Mar 2006 12:33:52 +0100 From: Marco Spinetti To: apache-modules@covalent.net, dev@apr.apache.org Hi all, I'm experimentig some strange performance results for my modules and I hope you can explain me why. I made a test between two modules architecture: my modules have to connect to variuos external sources simultaneously. So I tries these two architectures: 1) No Blocking IO: I 'm using apr poll (apr_pollset_poll) 2) Multi threads: I'im using apr threads; I'm using apache 1.3.34 and my host is RHEL 3 (Linux version 2.4.21-9.0.3.ELsmp) with 2 CPU and 2GB memory. I was expecting that multi-threads architecture was better because with apr_poll you read from opened descriptors a lot of times. In architecture 2) I'm using apr pool for all my memory allocations, while in the first architecture I'm using apache pool too. Analyzing (with gsl) the distribution, the mean, variance and standard deviation of reply time the No Blocking IO is much better: in the multi-threads architecture the variance is greater by a factor of 10. Any ideas about these differences? Were my expectations wrong? Thanks for the support Bye --Marco -- +-----------------------------------------+ Software Engineer - Spinetti Marco Direzione SS.PSM.TS Mobile: +39 329 4424216 Fisso : +39 050 6184264 Fax : +39 050 6184244 E-mail: m.spinetti@pisa.iol.it Italia Online S.r.l. Wind Telecomunicazioni Spa Via Malagoli, 12 - 56124 Pisa PI +-----------------------------------------+