svn commit: r184934 - head/sys/ufs/ffs
Kostik Belousov
kostikbel at gmail.com
Thu Nov 13 09:47:46 PST 2008
On Thu, Nov 13, 2008 at 05:40:21PM +0000, Doug Ambrisko wrote:
> Author: ambrisko
> Date: Thu Nov 13 17:40:21 2008
> New Revision: 184934
> URL: http://svn.freebsd.org/changeset/base/184934
>
> Log:
> 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. Better tuning can be figured out later.
>
> Tested by: Tim, others and work
> Reviewed by: Kostik Belousov
> PR: 128832
>
> Modified:
> head/sys/ufs/ffs/ffs_snapshot.c
>
> Modified: head/sys/ufs/ffs/ffs_snapshot.c
> ==============================================================================
> --- head/sys/ufs/ffs/ffs_snapshot.c Thu Nov 13 17:13:16 2008 (r184933)
> +++ head/sys/ufs/ffs/ffs_snapshot.c Thu Nov 13 17:40:21 2008 (r184934)
> @@ -351,6 +351,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
> @@ -372,6 +374,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;
> }
Thank you !
Please, MFC it for 7.1.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/svn-src-all/attachments/20081113/5ef8b762/attachment.pgp
More information about the svn-src-all
mailing list