Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Nov 2008 18:21:36 +0000 (UTC)
From:      Doug Ambrisko <ambrisko@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org
Subject:   svn commit: r185054 - in stable/7/sys: . ufs/ffs
Message-ID:  <200811181821.mAIILa1W084886@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ambrisko
Date: Tue Nov 18 18:21:36 2008
New Revision: 185054
URL: http://svn.freebsd.org/changeset/base/185054

Log:
  MFC 184934:
  
  For now on every 10 cyclinder groups flush the buffer cache to free
  up space.  If the buffer cache fills up then the disk systems can
  grind to a halt.
  
  PR:		128832
  Approved by:	re (kensmith)

Modified:
  stable/7/sys/   (props changed)
  stable/7/sys/ufs/ffs/ffs_snapshot.c

Modified: stable/7/sys/ufs/ffs/ffs_snapshot.c
==============================================================================
--- stable/7/sys/ufs/ffs/ffs_snapshot.c	Tue Nov 18 15:48:23 2008	(r185053)
+++ stable/7/sys/ufs/ffs/ffs_snapshot.c	Tue Nov 18 18:21:36 2008	(r185054)
@@ -345,6 +345,8 @@ restart:
 		if (error)
 			goto out;
 		bawrite(nbp);
+		if (cg % 10 == 0)
+			ffs_syncvnode(vp, MNT_WAIT);
 	}
 	/*
 	 * Copy all the cylinder group maps. Although the
@@ -366,6 +368,8 @@ restart:
 			goto out;
 		error = cgaccount(cg, vp, nbp, 1);
 		bawrite(nbp);
+		if (cg % 10 == 0)
+			ffs_syncvnode(vp, MNT_WAIT);
 		if (error)
 			goto out;
 	}



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