ULIMIT adjustment in System V kernel creation

Leslie Mikesell les at chinet.chi.il.us
Sat Jul 22 13:34:31 AEST 1989


In article <32409 at apple.Apple.COM> ric at Apple.COM (Ric Urrutia) writes:

>Another way of doing it would be to write a c program that sets ulimit
>to some value and then exec's /etc/getty.  You could call it something
>like ungetty and pass it an argument (whatever ulimit you wanted).  Then
>you could simply replace the getty entries in /etc/inittab with the 
>name of your new program.  This seems a lot cleaner and you can set the
>ulimit to whatever you want per tty.

Unfortunately not everything that writes file is started by a getty.
For example, many things that write log entries are started directly
by init running the rc? scripts.  Other things are started by cron.
SysV should let you fix these by putting the entries in the root
crontab as "ulimit nnnn ; su -c user command ..." but that is pretty
ugly.  Even more unfortunately, many background processes inherit their
ulimit from more or less random parents.  Suppose you send mail to
another machine and your ulimit is set low.  Mail will invoke uucico
to deliver the file.  Guess what happens if the other machine has a
huge file waiting to be picked up....


Les Mikesell



More information about the Comp.unix.wizards mailing list