Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 62234 invoked from network); 6 Apr 2006 12:33:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 6 Apr 2006 12:33:33 -0000 Received: (qmail 76038 invoked by uid 500); 6 Apr 2006 12:33:27 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 75985 invoked by uid 500); 6 Apr 2006 12:33:27 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 75973 invoked by uid 99); 6 Apr 2006 12:33:27 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Apr 2006 05:33:27 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [203.199.198.234] (HELO venus.amiindia.co.in) (203.199.198.234) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Apr 2006 05:33:25 -0700 Received: from venus.amiindia.co.in (localhost.localdomain [127.0.0.1]) by venus.amiindia.co.in (8.12.11/8.12.11) with ESMTP id k36CR8DP028246 for ; Thu, 6 Apr 2006 17:57:08 +0530 Received: from [127.0.0.1] (unknown [10.0.0.58])by venus.amiindia.co.in (Postfix) with ESMTP id 4828D33266Ffor ; Thu, 6 Apr 2006 17:57:08 +0530 (IST) Message-ID: <44350A1E.1010605@amiindia.co.in> Date: Thu, 06 Apr 2006 18:01:26 +0530 From: Shree User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ant Users List Subject: Re: Parallel vs Sequential References: <7feebe1f0604041442j66c49703i5df35fba0a22a7fb@mail.gmail.com> <87psjw4qrv.fsf@www.samaflost.de> <44339E0F.3000006@amiindia.co.in> <4433CF2B.1090706@apache.org> In-Reply-To: <4433CF2B.1090706@apache.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-imss-version: 2.5 X-imss-result: Passed X-imss-scores: Clean:99.90000 C:8 M:6 S:5 R:5 X-imss-settings: Baseline:5 C:3 M:3 S:4 R:3 (0.2500 0.2500) X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi Conor, You had said that " was not intended as a performance enhancer, but the ant manual says Parallel tasks have a number of uses in an Ant build file including: * Taking advantage of available processing resources to reduce build time Following example was also cited in the ant manual "This example shows two independent tasks being run to achieve better resource utilization during the build. In this instance, some servlets are being compiled in one thead and a set of JSPs is being precompiled in another." Apart from , I have also experiment-ed using concat tasks, where there will be significant file i/o. Even then is not at par with sequential. Any clarifications will be highly helpful. Thank you, Best rgds Shreedhar Conor MacNeill wrote: >Any performance improvement using will depend significantly >on what you are doing in parallel and on what hardware resources your >platform provides. > >For example, the tasks could be interacting in ways you don't >expect. Maybe these tasks block each other somehow. I have no idea. > >In the end, was not originally intended as a performance >enhancer. It was originally designed to allow you to run two operations >at once, where those operations may block without the other. The classic >example is starting a server and then running tests against that server. >These can not be performed sequentially. > >If can deliver a performance benefit, that would be nice but >it will depend on your platform. > >Conor > > >Shree wrote: > > >>Hi Stefan, >> >>I tried evaluating the performance of " task" with sequential >>way doing(without using ) a set of tasks. I find >>does not help to improve the performance much and infact it sometimes >>even slower than sequential(as far I had experimented with some examples). >> >>I did several examples. One such method was - I tried compiling c files >>in 3 different folders(src1,src2,src3). The destination folder for the >>created objs were different say src1->obj1, src2->obj2, src3->obj3. I >>had 3 xml files, parallel.xml, sequential.xml and template.xml. >>Template.xml contains the logic for compiling cfiles. >> >> >> >> >> >> >> >> >> >> >> >> >> >> >>Parallel.xml is the main build file that invokes the target "all" >>within a parallel task, so all the c-files in the 3 different folders >>are compiled into objs parallely while sequential is another build file >>that invokes the target "all" for each folders sequentially(without >>parallel task). I expected parallel to finish faster, but found >>sequential outperforming parallel most of the times. >> >>Code snippet from parallel.xml >>------------------------------- >> >> >> >> >> >> >value="${env.include};${basedir}\cSource\Build"/> >> >> >> >> >> >value="${env.include};${basedir}\cSource\Build"/> >> >> >> >> >> >value="${env.include};${basedir}\cSource\Build"/> >> >> >> >> >>whereas in sequential.xml I do not use task. Comparing the >>time for compiling files in sequential and parallel mode, I find using >> does not improve the performance. If one argues that there >>are " no i/o or legitimate cpu wait/sleep" in the above code, for which >>- I also experimented with task that performs file i/o(Concat task) in >>parallel and sequential mode, still there were no results in favor of >> task. What is wrong and where one should use "Parallel" tasks ? >> >>Thank you, >> >>Best regards >>Shreedhar >> >> >> >>--------------------------------------------------------------------- >>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org >>For additional commands, e-mail: user-help@ant.apache.org >> >> >> >> > >--------------------------------------------------------------------- >To unsubscribe, e-mail: user-unsubscribe@ant.apache.org >For additional commands, e-mail: user-help@ant.apache.org > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org