Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Jan 2014 16:22:10 +0000 (UTC)
From:      Kirk McKusick <mckusick@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r260828 - stable/10/sys/ufs/ffs
Message-ID:  <201401171622.s0HGMAKY064444@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mckusick
Date: Fri Jan 17 16:22:10 2014
New Revision: 260828
URL: http://svnweb.freebsd.org/changeset/base/260828

Log:
  MFC of 260088:
  
  Fine tune filesystem block allocations under low free-space
  conditions (-r254995) based on further operational experience.
  
  Submitted by:  Dmitry Sivachenko
  Fix Tested by: Dmitry Sivachenko

Modified:
  stable/10/sys/ufs/ffs/ffs_alloc.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/ufs/ffs/ffs_alloc.c
==============================================================================
--- stable/10/sys/ufs/ffs/ffs_alloc.c	Fri Jan 17 16:17:07 2014	(r260827)
+++ stable/10/sys/ufs/ffs/ffs_alloc.c	Fri Jan 17 16:22:10 2014	(r260828)
@@ -517,12 +517,12 @@ ffs_reallocblks_ufs1(ap)
 	fs = ip->i_fs;
 	ump = ip->i_ump;
 	/*
-	 * If we are not tracking block clusters or if we have less than 2%
+	 * If we are not tracking block clusters or if we have less than 4%
 	 * free blocks left, then do not attempt to cluster. Running with
 	 * less than 5% free block reserve is not recommended and those that
 	 * choose to do so do not expect to have good file layout.
 	 */
-	if (fs->fs_contigsumsize <= 0 || freespace(fs, 2) < 0)
+	if (fs->fs_contigsumsize <= 0 || freespace(fs, 4) < 0)
 		return (ENOSPC);
 	buflist = ap->a_buflist;
 	len = buflist->bs_nchildren;
@@ -744,12 +744,12 @@ ffs_reallocblks_ufs2(ap)
 	fs = ip->i_fs;
 	ump = ip->i_ump;
 	/*
-	 * If we are not tracking block clusters or if we have less than 2%
+	 * If we are not tracking block clusters or if we have less than 4%
 	 * free blocks left, then do not attempt to cluster. Running with
 	 * less than 5% free block reserve is not recommended and those that
 	 * choose to do so do not expect to have good file layout.
 	 */
-	if (fs->fs_contigsumsize <= 0 || freespace(fs, 2) < 0)
+	if (fs->fs_contigsumsize <= 0 || freespace(fs, 4) < 0)
 		return (ENOSPC);
 	buflist = ap->a_buflist;
 	len = buflist->bs_nchildren;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201401171622.s0HGMAKY064444>