Disk quotas and the like: is there a standard?

David Cornutt cornutt at freedom.msfc.nasa.gov
Thu Jan 10 01:53:51 AEST 1991


zwicky at erg.sri.com (Elizabeth Zwicky) writes:

>I wouldn't
>advise it unless you carefully test what happens when you attempt to
>go over your quota on a remote system in every possible combination of
>local and remote operating systems; a lot of combinations result in
>silent failure of over-quota writes, which is liable to upset people.

I've seen a related problem.  When I was at Gould, we used to have a bunch
of old Fortran applications (ported from MPX) that nobody had time to 
convert to C.  The Fortran I/O library had a bug that it did not check
for errors on writes on disk files, and so, when a write failed due to
a full file system, the application had no way of knowing about it.
(Meanwhile, the console got bombarded with messages...until the kernel
console message buffer filled up and the system bit the dust.)  I've
always wondered if it would be a useful system configuration option
or process option to force a "broken pipe" signal to any process
that failed a disk write due to exceeded quota or full file system.

On the subject of regulating disk usage without quotas, there are
two points to consider.  The first is that different user groups can
often be prevented from crashing into each other by dividing them
into different file systems.  (Yes, there are limits on how far
you can go with this, and it isn't very dynamic, but it works and
it doesn't add the overhead of a quota system.)  The other is that
I've found that Unix systems generally don't need quotas as much
as VMS systems do, since Unix systems don't retain file versions,
which tends to be the biggest cause of disk hoggage on VMS systems.
(Of course, VMS admins can control this by setting a default limit
on the number of file versions retained, but no one ever seems to 
do this for some reason.)

-- 
David Cornutt, New Technology Inc., Huntsville, AL  (205) 461-6457
(cornutt at freedom.msfc.nasa.gov; some insane route applies)
"The opinions expressed herein are not necessarily those of my employer,
not necessarily mine, and probably not necessary."



More information about the Comp.unix.questions mailing list