From owner-freebsd-fs@FreeBSD.ORG Thu Feb 25 11:58:28 2010 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B811E1065670 for ; Thu, 25 Feb 2010 11:58:28 +0000 (UTC) (envelope-from sfourman@gmail.com) Received: from mail-pz0-f199.google.com (mail-pz0-f199.google.com [209.85.222.199]) by mx1.freebsd.org (Postfix) with ESMTP id 8CF158FC26 for ; Thu, 25 Feb 2010 11:58:28 +0000 (UTC) Received: by pzk37 with SMTP id 37so1426351pzk.7 for ; Thu, 25 Feb 2010 03:58:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=RFgg+5waGdpX84NR4tgPls2lOAggU9YgVZ3r5IwZQm4=; b=n/4Lo+cN6Gtdrs/5fXWLYWs05tB/obPKjz+qpfDmQjRR0L1NRtaCEexxliRPo18io9 4Xn1XUIz1uAMY0bRE8UmXZVAwiC3TzN6mQLYwfapbYrlHaNnqlFDnsC/QNmcqFJqAvow KHWevO8ODk48HQUTSV6Rr6GfLRChM1FJBkwlU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=BYPIl9tduvh7KCnQ+n4/76uviacvrBvkM/mdPxZexAhukdPTg8N7nkFTjTqSs8om7Y 0gdm1cR6qk5JKZ290YtnF+2r4q3wtwWLsWNKuXlqZF+w++KS1jBhniAlsY6UbBNMYasT wkrLmVylJe0VkP5/6sB/jqAUa0yguc5iILnnc= MIME-Version: 1.0 Received: by 10.142.74.4 with SMTP id w4mr464127wfa.248.1267099101133; Thu, 25 Feb 2010 03:58:21 -0800 (PST) In-Reply-To: <1C136B0A-E98F-4F93-8480-7FACD3FE4E4B@gmail.com> References: <4B8649F4.4070303@omnilan.de> <1C136B0A-E98F-4F93-8480-7FACD3FE4E4B@gmail.com> Date: Thu, 25 Feb 2010 05:58:21 -0600 Message-ID: <11167f521002250358i46a09fb6j82aaddbd8e0b8334@mail.gmail.com> From: "Sam Fourman Jr." To: Nikolay Denev Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-fs@freebsd.org, Harald Schmalzbauer Subject: Re: ZFS write stalls (starving reads) and tuning zfs_write_limit_override X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Feb 2010 11:58:28 -0000 > Hi, > > What I posted was not a patch, but just the lines need to be added to dsl= _pool.c and it should work for either 8 or CURRENT. > Here is a patch for 8-STABLE that I just generated, can you try that one = (pasting in the email in case the email eats the attachment > ): > > --- .zfs/snapshot/orig/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl= _pool.c =A0 =A0 =A0 =A02009-08-24 07:30:23.677549074 +0300 > +++ sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_pool.c =A0 2010-02= -19 09:17:50.058020997 +0200 > @@ -47,6 +47,11 @@ > =A0uint64_t zfs_write_limit_override =3D 0; > =A0extern uint64_t zfs_write_limit_min; > > +SYSCTL_DECL(_vfs_zfs); > +TUNABLE_ULONG("vfs.zfs.write_limit_override", &zfs_write_limit_override)= ; > +SYSCTL_ULONG(_vfs_zfs, OID_AUTO, zfs_write_limit_override, CTLFLAG_RW, &= zfs_write_limit_override, 0, > + =A0 =A0"Override maximum TXG size"); > + > =A0kmutex_t zfs_write_limit_lock; > > =A0static pgcnt_t old_physmem =3D 0; > what setting have you found to be the best for zfs_write_limit_override ? Sam Fourman Jr. Fourman Networks