mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-19 06:44:31 +00:00
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
This commit is contained in:
parent
0a15841568
commit
f1c1cdbb9c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=184934
|
@ -351,6 +351,8 @@ ffs_snapshot(mp, snapfile)
|
|||
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 @@ ffs_snapshot(mp, snapfile)
|
|||
goto out;
|
||||
error = cgaccount(cg, vp, nbp, 1);
|
||||
bawrite(nbp);
|
||||
if (cg % 10 == 0)
|
||||
ffs_syncvnode(vp, MNT_WAIT);
|
||||
if (error)
|
||||
goto out;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue