Add a sysctl for the ZFS abd_scatter_enabled setting.

Submitted by:	Yamagi Burmeister <lists@yamagi.org> (original version)
Approved by:	re (rgrimes)
MFC after:	3 days
This commit is contained in:
Mark Johnston 2018-08-29 02:49:18 +00:00
parent 26ffc1ab46
commit 394e8d20d9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=338365

View File

@ -153,6 +153,8 @@ size_t zfs_abd_chunk_size = 4096;
#if defined(__FreeBSD__) && defined(_KERNEL)
SYSCTL_DECL(_vfs_zfs);
SYSCTL_INT(_vfs_zfs, OID_AUTO, abd_scatter_enabled, CTLFLAG_RWTUN,
&zfs_abd_scatter_enabled, 0, "Enable scattered ARC data buffers");
SYSCTL_ULONG(_vfs_zfs, OID_AUTO, abd_chunk_size, CTLFLAG_RDTUN,
&zfs_abd_chunk_size, 0, "The size of the chunks ABD allocates");
#endif