This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Does cpp still open many files.


On Tue, Aug 01, 2000 at 06:20:17PM +0200, eliz@is.elta.co.il wrote:
> > Date: Mon, 31 Jul 2000 12:14:01 -0700
> > From: Zack Weinberg <zack@wolery.cumb.org>
> >
> > 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 probably don't know enough about the context, but if the call to
> setrlimit is going to be relevant not only to GNU/Linux systems,
> please note that some systems might not have setrlimit in their
> library, or their setrlimit might not support RLIMIT_NOFILE.

I'm suggesting setting rlimits by hand as a temporary workaround, not
a permanent solution wired into the compiler.  (How would we decide
the proper value?)

zw

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]