[webkit-reviews] review requested: [Bug 68540] ParallelJobs: maximum number of threads should be determined dynamically : [Attachment 108171] proposed patch

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Sep 21 10:01:11 PDT 2011


Balazs Kelemen <kbalazs at webkit.org> has asked  for review:
Bug 68540: ParallelJobs: maximum number of threads should be determined
dynamically
https://bugs.webkit.org/show_bug.cgi?id=68540

Attachment 108171: proposed patch
https://bugs.webkit.org/attachment.cgi?id=108171&action=review

------- Additional Comments from Balazs Kelemen <kbalazs at webkit.org>
This was tested on Linux and Mac, and the Windows implementation just need to
work if MSDN doesn't lie. The other OS-s should work according to
http://stackoverflow.com/questions/150355/programmatically-find-the-number-of-c
ores-on-a-machine but if that's not the case those can be fixed later (since
those are not very intensively developed/tested platforms anyway).
This implementation determines the logical number of cores. This should to be
ok, according to benchmark results. I tested it on Linux with Methanol - the
SVG test set - on a 2 physical / 4 logical core machine. Using all the 4 cores
was a win:
trunk: 2841 ms
Parallel Jobs (generic) enabled: 1974 ms
PJ enabled + patch: 1770 ms


More information about the webkit-reviews mailing list