2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-14 00:32:11 +00:00
K. Noel Belcourt a9c45135e5 Fix poor parallel throughput on larger SMP systems.
When select() returns with data on one or more file descriptors, 
we use fread() to read data from the live descriptors.  The problem 
is that these are blocking file descriptors so most of the time 
bjam is waiting, it's actually waiting in fread(), rather than 
waiting in select().

There are two possible patches: one is to just call fread() a single  
time (not inside a loop) or we can make the file descriptors non- 
blocking.  It's more efficient to make the descriptors non-blocking  
as this allows us to read all data on a descriptor each time select()  
returns.  The first approach would not permit us to read all the data  
on a descriptor (only as much as fits into our buffer).

I tested this patch on Suse, Redhat, and Darwin.



[SVN r66650]
2010-11-20 00:15:41 +00:00
2004-11-29 07:29:19 +00:00
2010-08-13 06:39:33 +00:00
2010-07-20 08:51:03 +00:00
2010-10-30 14:32:50 +00:00
Description
Mirrored via gitea-mirror
39 MiB
Languages
C++ 73.8%
Python 22.6%
C 1.6%
Batchfile 0.7%
Shell 0.6%
Other 0.6%