🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.bugs.sys5
Article #1035

Re: ulimit (was: getty/login for callback)

#1035
From: Richard A. O'Keefe
Date: Fri, 21 Apr 1989 09:14
30 lines
2036 bytes
In article <1325@nusdhub.UUCP> rwhite@nusdhub.UUCP (Robert C. White Jr.) writes:
>in article <1021@quintus.UUCP>, ok@quintus.UUCP (Richard A. O'Keefe) says:
>> BUT you want to do [ulimit] on a per-file basis.

>The problem with this is that the code in the debug version would be
>substantially different than the eventual release material (changing
>limits if any and whatnot).

Why?  How can I call my program debugged if I haven't tested it on a
couple of real data sets as well as the tests I happened to think of?

>I believe that the general limit is a
>better idea because it allows for *uniform* and *scaled* runaway
>growth patterns to be more easily perceived.

My point is that the problem with a general limit is that it doesn't
allow some common failure modes to be detected *at*all*.  Returning to
by 1M -vs- 4k file, if there is a mistake in my program such that each
record for the 4k file is being written 20 times, I'm going to use a
fair bit of disc space I didn't intend to.  "Uniform and scaled runaway"
is not the only kind, you know.  Note that my proposal has ulimit as
a special case, so having a per-file limit inherited from a per-process
value but settable down by fcntl() would reduce to the present scheme if
you didn't choose to use that fcntl().

>The small limit for initial development; large limits for dynamic testing;
>and installation limits for final product -- type development paths
>do tend to produce strong code and procedure.

Test what you can as soon as you can on real data, that's my motto.
Technical Details
Message-ID: <1037@quintus.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!lll-winken!arisia!quintus!ok
References: <1021@quintus.UUCP> <1325@nusdhub.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!lll-winken!arisia!quintus!ok
From: ok@quintus.UUCP (Richard A. O'Keefe)
Newsgroups: comp.bugs.sys5
Subject: Re: ulimit (was: getty/login for callback)
Message-ID: <1037@quintus.UUCP>
Date: 21 Apr 89 09:14:35 GMT
References: <1021@quintus.UUCP> <1325@nusdhub.UUCP>
Reply-To: ok@quintus.UUCP (Richard A. O'Keefe)
Distribution: usa
Organization: Quintus Computer Systems, Inc.
Lines: 30