svn commit: r324160 - stable/11/sys/cddl/contrib/opensolaris/uts/common/fs/zfs
Andriy Gapon
avg at FreeBSD.org
Sun Oct 1 14:58:45 UTC 2017
Author: avg
Date: Sun Oct 1 14:58:43 2017
New Revision: 324160
URL: https://svnweb.freebsd.org/changeset/base/324160
Log:
MFC r323797: add vfs_zfs.abd_chunk_size tunable
It is reported that the default value of 4KB results in a substantial
memory use overhead (at least, on some configurations). Using 1KB seems
to reduce the overhead significantly.
PR: 222377
Modified:
stable/11/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/abd.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/abd.c
==============================================================================
--- stable/11/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/abd.c Sun Oct 1 14:50:58 2017 (r324159)
+++ stable/11/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/abd.c Sun Oct 1 14:58:43 2017 (r324160)
@@ -150,6 +150,13 @@ boolean_t zfs_abd_scatter_enabled = B_TRUE;
*/
size_t zfs_abd_chunk_size = 4096;
+#if defined(__FreeBSD__) && defined(_KERNEL)
+SYSCTL_DECL(_vfs_zfs);
+
+SYSCTL_ULONG(_vfs_zfs, OID_AUTO, abd_chunk_size, CTLFLAG_RDTUN,
+ &zfs_abd_chunk_size, 0, "The size of the chunks ABD allocates");
+#endif
+
#ifdef _KERNEL
extern vmem_t *zio_alloc_arena;
#endif
More information about the svn-src-all
mailing list