Hard disk space - how to alter the 10% 'root only' space

Hard disk space - how to alter the 10% 'root only' space

Post by Tom Jobbin » Fri, 20 Aug 1999 04:00:00



Hi,

Does anyone know if there's any way of altering the 10% buffer space FreeBSD
marks on a drive

E.g. on a 1gb drive, the first 900mb are usable - after that is used, df
reports 0 bytes free, and the remaining 100mb is writable to only by root
(and as it's used, df reports negative amoutns of space)

I do like this idea, however I would like to be able to alter it a bit -
e.g. reduce the size of the buffer from 10% to 5%.  Also, I would like to
change it such that one or two other users can write to it.  Would this be
possible?  I dont mind doing this by group - e.g. putting the users
concerned into group wheel

Any help would be appreciated

Tom

 
 
 

Hard disk space - how to alter the 10% 'root only' space

Post by Martin We » Fri, 20 Aug 1999 04:00:00




Quote:> Does anyone know if there's any way of altering the 10% buffer space FreeBSD
> marks on a drive

From newfs(8):

     -m free space %
             The percentage of space reserved from normal users; the minimum
             free space threshold.  The default value used is defined by
             MINFREE from <ufs/ffs/fs.h>, currently 8%.  See tunefs(8) for
             more details on how to set this option.

From tunefs(8):

     -m minfree
             Specify the percentage of space held back from normal users; the
             minimum free space threshold.  The default value used is 8%.
             This value can be set to zero, however up to a factor of three in
             throughput will be lost over the performance obtained at a 10%
             threshold. Settings of 5% and less force space optimization to
             always be used which will greatly increase the overhead for file
             writes.  Note that if the value is raised above the current usage
             level, users will be unable to allocate files until enough files
             have been deleted to get under the higher threshold.

Regards,

Martin
--
FreibergNet Systemhaus GbR                   Martin Welk * Sales, Support
Systemhaus fr Daten- und Netzwerktechnik           phone +49 3731 781387
Unternehmensgruppe Liebscher & Partner                fax +49 3731 781377
D-09599 Freiberg * Am St. Niclas Schacht 13    http://www.freibergnet.de/