Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Nov 2008 19:47:40 +0200
From:      Kostik Belousov <kostikbel@gmail.com>
To:        Doug Ambrisko <ambrisko@freebsd.org>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org
Subject:   Re: svn commit: r184934 - head/sys/ufs/ffs
Message-ID:  <20081113174740.GV47073@deviant.kiev.zoral.com.ua>
In-Reply-To: <200811131740.mADHeMDr065039@svn.freebsd.org>
References:  <200811131740.mADHeMDr065039@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
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.

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (FreeBSD)

iEUEARECAAYFAkkcaDwACgkQC3+MBN1Mb4jRogCdHwD5VwFVd3hUd/sBp7izsbLU
A6wAmLBdCZZgZQMDyXajf0CewBKxbqM=
=2KHl
-----END PGP SIGNATURE-----

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