1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-17 10:26:15 +00:00

Allow tuning zfs_max_recordsize via loader tunable. Tuning is NOT

recommended.

Requested by:	Slawa Olhovchenkov <slw zxy spb ru>
MFC after:	2 weeks
This commit is contained in:
Xin LI 2014-11-18 18:40:01 +00:00
parent c600d3070d
commit 18144ab1a3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=274673

View File

@ -51,6 +51,8 @@
#include <sys/dsl_userhold.h>
#include <sys/dsl_bookmark.h>
SYSCTL_DECL(_vfs_zfs);
/*
* The SPA supports block sizes up to 16MB. However, very large blocks
* can have an impact on i/o latency (e.g. tying up a spinning disk for
@ -61,6 +63,9 @@
* of this setting.
*/
int zfs_max_recordsize = 1 * 1024 * 1024;
SYSCTL_INT(_vfs_zfs, OID_AUTO, max_recordsize, CTLFLAG_RDTUN,
&zfs_max_recordsize, 0,
"Maximum block size. Expect dragons when tuning this.");
#define SWITCH64(x, y) \
{ \