ulimit (was: getty/login for callback)

Lyndon Nerenberg lyndon at aurora.AthabascaU.CA
Wed Apr 26 04:59:00 AEST 1989


In article <4428 at ihuxz.ATT.COM>, burris at ihuxz (Burris) writes:
>From article <836 at twwells.uucp>, by bill at twwells.uucp (T. William Wells):
>The ulimit has NOTHING to do with the assumption that users are stupid
>or malicious. It DOES however assume that people make mistakes. Do you
>know any programmer who has NEVER hacked up a quick program with an
>infinate loop?

Yes. And those that do nearly always screw up a read loop, not
a write loop. [ I have no numbers to back this, but I've administered
a lot of machines and never seen an mistake like this fill a file
system ]

>It is not difficult at all for the administrator to set a higher
>ulimit for users that have a legitimate need, ESPECIALLY is you have
>source to the login program. I implemented this easily by having the
>login program look through a file to find users that required special
>ulimit sizes and set the appropriate ulimit before exec'ing the shell.

That's a pretty damn big ESPECIALLY. Are you aware of the price your
company charges for that source code? If I was running a commercial
shop, instead of paying a small fortune for source, I would put the
money to better use buying more drives for the disk farm.

>If you had ever been an administrator in a software development
>environment you would see the demonstrated need for the ulimit.

I have, and I don't. If you're developing on a machine that you
sell time on, you deserve what you get when you screw up.

Yes you can turn ulimit up by reconfiguring the kernel. But how do
you rationalize ulimit in a database environment where your running
striped file systems with database files in the range of 2 GBytes each?
As people move towards hypertext and graphics based environments, the
size of the files you have to deal with will increase as well. "No
problem," you say. "Just turn up the ulimit." Well I say, "When the
ulimit reaches the file size limit, what is the point of having
ulimit?" 

As a system administrator I feel that ulimit (if it's to exist) should
default to the maximum possible file size (base on the inode struct).
If *I* as a system administrator want to turn it down, fine. That
isn't too hard to do right now :-) Going the other way isn't ...



More information about the Comp.bugs.sys5 mailing list