Date: Fri, 17 Mar 2017 07:52:56 +0000 (UTC) From: Alexander Motin <mav@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r315440 - stable/11/sys/cddl/contrib/opensolaris/uts/common/fs/zfs Message-ID: <201703170752.v2H7qu2J009527@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mav Date: Fri Mar 17 07:52:56 2017 New Revision: 315440 URL: https://svnweb.freebsd.org/changeset/base/315440 Log: MFC r307397: Add vfs.zfs.zil_log_limit sysctl. It is at least partially broken now, but that is another question. Modified: stable/11/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zil.c Directory Properties: stable/11/ (props changed) Modified: stable/11/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zil.c ============================================================================== --- stable/11/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zil.c Fri Mar 17 04:16:14 2017 (r315439) +++ stable/11/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zil.c Fri Mar 17 07:52:56 2017 (r315440) @@ -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))))
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201703170752.v2H7qu2J009527>