This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Problems with the cpp change after 2000-06-18
On Mon, Jul 03, 2000 at 10:41:38AM -0700, H . J . Lu wrote:
> On Mon, Jul 03, 2000 at 10:22:01AM -0700, Zack Weinberg wrote:
> > On Mon, Jul 03, 2000 at 10:09:19AM -0700, H . J . Lu wrote:
> > > Hi, Zack,
> > >
> > > I am not sure if I like the cpp change after 2000-06-18 when cpp keeps
> > > so many files open. The problem is on a 4way SMP machie, I can do
> > >
> > > # make MAKE="make -j 8"
> > >
> > > in the Linux kernel build. My system file descriptor limit is reached
> > > in minutes. Then other processes on my machine start dying. I know you
> > > put in a fix so that cpp won't die. But it doesn't help other processes.
> > > I think you should put a limit on the number of opened files in cpp.
> >
> > Try using ulimit -n.
> >
>
> I have to build kernel as root. I am not sure "ulimit -n" will help.
Funny, I've never had any trouble building kernels as an unprivileged
user.
In any case, resource limits apply to uid 0 processes just as they
would any other process; sure, they can call setrlimit() and raise
them, but cpp doesn't do that.
zw