[Webkit-unassigned] [Bug 186443] Test262-Runner: Improve files queue to optimize CPU usage/balancing

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jun 12 09:55:47 PDT 2018


https://bugs.webkit.org/show_bug.cgi?id=186443

--- Comment #6 from Leo Balter <leonardo.balter at gmail.com> ---
I had a very long time trying to get pipe/socketpair to work here. I also relying on some help from friends as Rick Waldron and even Perl committers.

Turns out, there is no way to create a queue were we can communicate from a single parent to many children properly. Perl will block the first children to set a 1:1 fetching. I have a non-working example here: https://gist.github.com/leobalter/779cbaa8a4da1e7a0148c475ab822d65

I also tried parallel queues, waiting for the children to signal for more items, but I also found no lucky there. The current resources are limiting me to block the parent itself or closing the sockets earlier than I want. Another example here: https://gist.github.com/leobalter/d5c2817af13cfbe5e59b9ec958071352

I'm avoiding to rely on threads as I'm guessing the targets won't have any compiled Perls using threads appropriately. 

I still want to fix this, but at this point I'm way out of hope. Let me know how should I follow from here.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20180612/12524a67/attachment.html>


More information about the webkit-unassigned mailing list