ulimit (was: getty/login for callback)

Robert C. White Jr. rwhite at nusdhub.UUCP
Wed Apr 19 07:44:28 AEST 1989


in article <19516 at genrad.UUCP>, jpn at genrad.uucp (John P. Nelson) says:
> Despite the tone, I really would be happy if someone could demonstrate
> a useful purpose for "ulimit".

While I can make no calim about the reason the default size being what it
is, the ulimit is a distinctly useful concept.

Remembering that UNIXis a software development environment (at least
in it's historical role) the idea of having a curb agains a single file
undergoing runaway growth make alot of sense.  IF you are expecting a
system to produce a small file, say 4k, the ability put a choke of 40k
on it has some real use and value (including the fact that the program
itself can lower the threshold but not raise it.).  Since root can set
it to anything it wants, it is flexable enough for just about any
useage environment.

The real flaw in the ulimit idea is that there is (was) no good way to
set the default to something other than the compiled value.  The
tuneable parameter was a good idea that got rid of most of the problem
in most useages, as was the login-hack before it (abet a bit ugly), but
the continued lack of an by-account limiting mechanisim (say adding a
field to /etc/shadow which will allow login to adjust the accounts
ulimit setting if the field is not blank) is still a bit inexcuseable.

Rob.



More information about the Comp.bugs.sys5 mailing list