svn commit: r185054 - in stable/7/sys: . ufs/ffs
Doug Ambrisko
ambrisko at FreeBSD.org
Tue Nov 18 10:21:36 PST 2008
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;
}
More information about the svn-src-all
mailing list