Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:31255 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 77803 invoked by uid 1010); 25 Jul 2007 01:52:37 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 77788 invoked from network); 25 Jul 2007 01:52:37 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Jul 2007 01:52:37 -0000 Authentication-Results: pb1.pair.com smtp.mail=ceo@l-i-e.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=ceo@l-i-e.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain l-i-e.com from 67.139.134.202 cause and error) X-PHP-List-Original-Sender: ceo@l-i-e.com X-Host-Fingerprint: 67.139.134.202 o2.hostbaby.com FreeBSD 4.7-5.2 (or MacOS X 10.2-10.3) (2) Received: from [67.139.134.202] ([67.139.134.202:4663] helo=o2.hostbaby.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 33/20-06679-1ECA6A64 for ; Tue, 24 Jul 2007 21:52:35 -0400 Received: (qmail 32587 invoked by uid 98); 25 Jul 2007 01:45:56 -0000 Received: from 127.0.0.1 by o2.hostbaby.com (envelope-from , uid 1013) with qmail-scanner-2.01 (clamdscan: 0.88.7/3752. Clear:RC:1(127.0.0.1):. Processed in 0.073703 secs); 25 Jul 2007 01:45:56 -0000 Received: from localhost (HELO l-i-e.com) (127.0.0.1) by localhost with SMTP; 25 Jul 2007 01:45:55 -0000 Received: from 209.254.223.2 (SquirrelMail authenticated user ceo@l-i-e.com) by www.l-i-e.com with HTTP; Tue, 24 Jul 2007 20:45:55 -0500 (CDT) Message-ID: <48138.209.254.223.2.1185327955.squirrel@www.l-i-e.com> In-Reply-To: <000301c7ce41$5fc5e7b0$0100a8c0@pc07653> References: <000301c7ce41$5fc5e7b0$0100a8c0@pc07653> Date: Tue, 24 Jul 2007 20:45:55 -0500 (CDT) To: "Nuno Lopes" Cc: "PHPdev" , helly@php.net Reply-To: ceo@l-i-e.com User-Agent: Hostbaby Webmail MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Subject: Re: [PHP-DEV] multi-threaded run-tests.php From: ceo@l-i-e.com ("Richard Lynch") On Tue, July 24, 2007 5:24 pm, Nuno Lopes wrote: > Recently we have moved http://gcov.php.net to a new (and much faster) > server. This allowed us to reduce the time to build all branches to > "just" 2 > days (compared with almost one week that would take previously). > However I'm still not happy :P The server has 2x2 CPU cores and I > would like > to use them :) Currently I can speed-up the make process, because it > can be > parallelized (with -j xx). But the major time is still spent with > run-tests.php. > > So, what I would like to propose is a multi-threaded version of > run-tests.php. We could spawn x processes (configurable) and one of > them > would test y extensions (I think it's better to have each extension's > tests > tested serially or they may break, because they may use the same > resources: > BDs, files, etc..). Sounds good to this naive reader. Set X high enough, and you might even find an multi-extension thread-safe issue we've been missing. :-v If I'm reading it right, for sure the pgsql extension tests are serial within the extension, as it re-uses the DB connection and presumes test db setup in early tests, so you're 100% right on the inability to parallelize that. -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So?