From owner-freebsd-fs@freebsd.org Fri Nov 13 18:17:31 2015 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1DC46A2EEBD for ; Fri, 13 Nov 2015 18:17:31 +0000 (UTC) (envelope-from fusionfoto@gmail.com) Received: from mail-qk0-x22b.google.com (mail-qk0-x22b.google.com [IPv6:2607:f8b0:400d:c09::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CCDAF1967 for ; Fri, 13 Nov 2015 18:17:30 +0000 (UTC) (envelope-from fusionfoto@gmail.com) Received: by qkfo3 with SMTP id o3so55386160qkf.1 for ; Fri, 13 Nov 2015 10:17:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=yR31niZpOAnojjwtusJVSJyGyDcg9+/QubyycyxxDtE=; b=RAybwezBy4OPURIpb5D8FeV2wl0zuYqHI6lkYQWfXS5ssjgQni3bO+o4Nh5ScYLA/H GgNzxJt6c2iXaZzO13/u8NkCtn92riAtN7OLwUIlcwY81qxsjMGrwXd4nZdJNrLCUd41 eRX34DrV+myncEC4FQo8KdU8RSeeS3d5aNS7mLsGEGUvc51A4mmwy7K7TZLGExiZ1P/m rBpoMHqfJkI43GGKPGB6dOF3oij5vRq2/ONeMgeu6WJZHokRRxrCvMkOv1mVG9qZ13aq 42Txv0BR8FWPFuRc1QVAsKDCvxpA0PNVH/M/K4PBCRDC5cmEm2CBwaVPMZAw/IBCuWaR wwIA== MIME-Version: 1.0 X-Received: by 10.140.42.164 with SMTP id c33mr13556411qga.66.1447438649825; Fri, 13 Nov 2015 10:17:29 -0800 (PST) Received: by 10.55.41.163 with HTTP; Fri, 13 Nov 2015 10:17:29 -0800 (PST) In-Reply-To: References: <5629E4F5.3030500@multiplay.co.uk> Date: Fri, 13 Nov 2015 13:17:29 -0500 Message-ID: Subject: Fwd: Adjusting zvol_immediate_write_sz From: FF To: freebsd-fs@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Nov 2015 18:17:31 -0000 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!