Date: Fri, 13 Nov 2015 13:17:29 -0500 From: FF <fusionfoto@gmail.com> To: freebsd-fs@freebsd.org Subject: Fwd: Adjusting zvol_immediate_write_sz Message-ID: <CAD=tpee1_dY79SRpSpx4WUjTukHXSstn%2BqBkkHOJq0-18WhZOg@mail.gmail.com> In-Reply-To: <CAD=tpefgJgFHxuReXWOmTZLzziou6qDti6_uA=rz6k=_VTz%2BsQ@mail.gmail.com> References: <CAD=tpecoOsNKkXt5Hp6rQpXcdwKdeM3bpyUyh=C7enbJHH=wZA@mail.gmail.com> <5629E4F5.3030500@multiplay.co.uk> <CAD=tpeeD9Ef-8bby2zZXa%2B0srN951DLh9FgMynJvu6Zi7CHSFA@mail.gmail.com> <CAD=tpefgJgFHxuReXWOmTZLzziou6qDti6_uA=rz6k=_VTz%2BsQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
This is what I wrote up. It compiles into 9.2 and executes fine. I looked
at the section on 9.3 and it doesn't appear that any changes would be
required. Thanks in advance, to whomever looks at it.
# pwd
/usr/src/sys/cddl/contrib/opensolaris/uts/common/fs/zfs
# more patch
--- zvol.c.orig 2015-10-23 18:50:25.000000000 -0400
+++ zvol.c 2015-10-23 18:53:04.000000000 -0400
@@ -1103,6 +1103,12 @@
* Otherwise we will later flush the data out via dmu_sync().
*/
ssize_t zvol_immediate_write_sz = 32768;
+SYSCTL_DECL(_vfs_zfs);
+TUNABLE_QUAD("vfs.zfs.zil_immediate_write_sz", &zvol_immediate_write_sz);
+SYSCTL_QUAD(_vfs_zfs, OID_AUTO, zil_immediate_write_sz, CTLFLAG_RW,
+ &zvol_immediate_write_sz, 0, "Controls ZIL behavior by adjusting size
of immediate write");
+
+
static void
zvol_log_write(zvol_state_t *zv, dmu_tx_t *tx, offset_t off, ssize_t resid,
-------
If you need me to conform it as a patch against / or /usr/src, just let me
know.
Thanks!
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAD=tpee1_dY79SRpSpx4WUjTukHXSstn%2BqBkkHOJq0-18WhZOg>
