mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-19 02:04:19 +08:00
83104d449e
Trim CoW reservations made on behalf of a cowextsz hint if they get too old or we run low on quota, so long as we don't have dirty data awaiting writeback or directio operations in progress. Garbage collection of the cowextsize extents are kept separate from prealloc extent reaping because setting the CoW prealloc lifetime to a (much) higher value than the regular prealloc extent lifetime has been useful for combatting CoW fragmentation on VM hosts where the VMs experience bursty write behaviors and we can keep the utilization ratios low enough that we don't start to run out of space. IOWs, it benefits us to keep the CoW fork reservations around for as long as we can unless we run out of blocks or hit inode reclaim. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Christoph Hellwig <hch@lst.de>
51 lines
1.7 KiB
C
51 lines
1.7 KiB
C
/*
|
|
* Copyright (c) 2000-2005 Silicon Graphics, Inc.
|
|
* All Rights Reserved.
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License as
|
|
* published by the Free Software Foundation.
|
|
*
|
|
* This program is distributed in the hope that it would be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write the Free Software Foundation,
|
|
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
*/
|
|
#include "xfs.h"
|
|
#include "xfs_sysctl.h"
|
|
|
|
/*
|
|
* Tunable XFS parameters. xfs_params is required even when CONFIG_SYSCTL=n,
|
|
* other XFS code uses these values. Times are measured in centisecs (i.e.
|
|
* 100ths of a second) with the exception of eofb_timer and cowb_timer, which
|
|
* are measured in seconds.
|
|
*/
|
|
xfs_param_t xfs_params = {
|
|
/* MIN DFLT MAX */
|
|
.sgid_inherit = { 0, 0, 1 },
|
|
.symlink_mode = { 0, 0, 1 },
|
|
.panic_mask = { 0, 0, 255 },
|
|
.error_level = { 0, 3, 11 },
|
|
.syncd_timer = { 1*100, 30*100, 7200*100},
|
|
.stats_clear = { 0, 0, 1 },
|
|
.inherit_sync = { 0, 1, 1 },
|
|
.inherit_nodump = { 0, 1, 1 },
|
|
.inherit_noatim = { 0, 1, 1 },
|
|
.xfs_buf_timer = { 100/2, 1*100, 30*100 },
|
|
.xfs_buf_age = { 1*100, 15*100, 7200*100},
|
|
.inherit_nosym = { 0, 0, 1 },
|
|
.rotorstep = { 1, 1, 255 },
|
|
.inherit_nodfrg = { 0, 1, 1 },
|
|
.fstrm_timer = { 1, 30*100, 3600*100},
|
|
.eofb_timer = { 1, 300, 3600*24},
|
|
.cowb_timer = { 1, 1800, 3600*24},
|
|
};
|
|
|
|
struct xfs_globals xfs_globals = {
|
|
.log_recovery_delay = 0, /* no delay by default */
|
|
};
|