Does cpp still open many files.

Zack Weinberg zack@wolery.cumb.org
Mon Jul 31 12:14:00 GMT 2000


On Thu, Jul 27, 2000 at 06:38:22PM -0700, H . J . Lu wrote:
> Hi, Zack,
> 
> Have you fixed
> 
> http://gcc.gnu.org/ml/gcc/2000-07/msg00037.html
> 
> The gcc from CVS has been killing my machine left and right when
> I do parallel Linux kernel build on my SMP machines.

It does still open many files.  It is supposed to close them all if
open() fails, but you might run out of system file slots first and
have some other program be affected.  Setting rlimits such that
(number of per-process files allowed) * (number of parallel gcc
instances) < (total number of open files supported) should fix that
problem.

I've been meaning to fix this for awhile but other things are higher
priority.  I'll bump it up a few levels.

zw


More information about the Gcc-bugs mailing list