ulimit (was: getty/login for callback)

Calvin Hayden cgh018 at tijc02.UUCP
Fri Apr 21 06:05:16 AEST 1989


> >>Excuse me, perhaps I'm slow.  But could someone please explain to me
> >>just what the PURPOSE of "ulimit" is?  What are it's GOOD points?  
> >
> >It is designed to keep processes from accidentally filling up file
> >systems.
> 
> Fine.  Did it has to be implemented so obnoxiously to achieve that goal?
> I've seen posting after posting complaining that the ulimit was too low,
> and that it was painful to crank it up.  It would have been a lot better
> had the default been "infinity" rather than 1MB; if somebody actually
> *does* want to limit their program's disk consumption, they can set a
> non-infinite ulimit themselves.

  If you have source, it doesn't have to be 1MB.  Our limit is 2MB.  The
change was made in the /usr/include/sys/param.h file.  The line
 ..#define CDLIMIT  (1L<<11)    /* for 1mb limit */
was changed to
 ..#define CDLIMIT  (1L<<12)    /* for 2mb limit */

  'Course, this is SysV Rel2 Ver2 source, and the change does require
the building of a new kernel.

=============
Calvin Hayden
=============



More information about the Comp.bugs.sys5 mailing list