diff options
author | mav <mav@FreeBSD.org> | 2017-03-17 07:52:56 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2017-03-17 07:52:56 +0000 |
commit | 4e0e9017929d742b8b45a542ca73a0158e08a172 (patch) | |
tree | 3f57036dccf8c66c7c5f234564473e20c12ea201 /sys/cddl | |
parent | 825dbb48235cc4b9421bff30c3e2b8e7bfb8f9e0 (diff) | |
download | FreeBSD-src-4e0e9017929d742b8b45a542ca73a0158e08a172.zip FreeBSD-src-4e0e9017929d742b8b45a542ca73a0158e08a172.tar.gz |
MFC r307397: Add vfs.zfs.zil_log_limit sysctl.
It is at least partially broken now, but that is another question.
Diffstat (limited to 'sys/cddl')
-rw-r--r-- | sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zil.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zil.c b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zil.c index 8167cc7..b048847 100644 --- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zil.c +++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zil.c @@ -944,6 +944,8 @@ uint64_t zil_block_buckets[] = { * Limit checking is disabled by setting zil_slog_limit to UINT64_MAX. */ uint64_t zil_slog_limit = 1024 * 1024; +SYSCTL_QUAD(_vfs_zfs, OID_AUTO, zil_slog_limit, CTLFLAG_RWTUN, + &zil_slog_limit, 0, "Maximal commit size to use SLOG"); #define USE_SLOG(zilog) (((zilog)->zl_logbias == ZFS_LOGBIAS_LATENCY) && \ (((zilog)->zl_cur_used < zil_slog_limit) || \ ((zilog)->zl_itx_list_sz < (zil_slog_limit << 1)))) |