move in definition of MINFREE from newfs so it can be used by tunefs(8)
authorKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Tue, 19 Apr 1994 15:01:25 +0000 (07:01 -0800)
committerKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Tue, 19 Apr 1994 15:01:25 +0000 (07:01 -0800)
SCCS-vsn: sys/ufs/ffs/fs.h 8.6

usr/src/sys/ufs/ffs/fs.h

index 69ba286..ef51929 100644 (file)
@@ -4,7 +4,7 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)fs.h        8.5 (Berkeley) %G%
+ *     @(#)fs.h        8.6 (Berkeley) %G%
  */
 
 /*
  */
 
 /*
  */
 #define FS_MAXCONTIG   16
 
  */
 #define FS_MAXCONTIG   16
 
+/*
+ * MINFREE gives the minimum acceptable percentage of file system
+ * blocks which may be free. If the freelist drops below this level
+ * only the superuser may continue to allocate blocks. This may
+ * be set to 0 if no reserve of free blocks is deemed necessary,
+ * however throughput drops by fifty percent if the file system
+ * is run at between 95% and 100% full; thus the minimum default
+ * value of fs_minfree is 5%. However, to get good clustering
+ * performance, 10% is a better choice. hence we use 10% as our
+ * default value. With 10% free space, fragmentation is not a
+ * problem, so we choose to optimize for time.
+ */
+#define MINFREE                5
+#define DEFAULTOPT     FS_OPTTIME
+
 /*
  * Per cylinder group information; summarized in blocks allocated
  * from first cylinder group data blocks.  These blocks have to be
 /*
  * Per cylinder group information; summarized in blocks allocated
  * from first cylinder group data blocks.  These blocks have to be