From owner-freebsd-fs@FreeBSD.ORG Mon Oct 28 17:45:05 2013 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 2F942FFA; Mon, 28 Oct 2013 17:45:05 +0000 (UTC) (envelope-from aurfalien@gmail.com) Received: from mail-pb0-x231.google.com (mail-pb0-x231.google.com [IPv6:2607:f8b0:400e:c01::231]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 040DC20A0; Mon, 28 Oct 2013 17:45:04 +0000 (UTC) Received: by mail-pb0-f49.google.com with SMTP id xb4so3932857pbc.8 for ; Mon, 28 Oct 2013 10:45:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=Ne8RnvFSIZi5FRW7OTIi+ypUewIfwVjBXdJTfHBnYVU=; b=zUqsyegrxSSv0gEgvRfpEXco5izLXafKcEfhxaJgAuBza+bcjzX1+XiyJ3giLcR8yM KLqZOVP5N3Tq2XgUokzPyoi1zcAFsRR/su0NGxdMMbTEBKTQ8XB2pHAgPCrxjR67xmzm fAoPqKwlZowkpBpsfMHtU6y+FnnSIgiLptoTmFtUEISG8rByb4UJiwmcM66XKPttMrSc Cqh6AwQIkEh3moIRFrBFe09aaoCi7ZRSHqvVQim9UMEHuZKTl1034m3Y0yopCjx91mOb AH/I/5dzeo+g9c17b7oXWq3mrFpCKsSlOUiXTWG0Ixuns9wpC6D+uZbSJk+h7bT94Wh7 ZT5g== X-Received: by 10.68.129.40 with SMTP id nt8mr17365753pbb.108.1382982304662; Mon, 28 Oct 2013 10:45:04 -0700 (PDT) Received: from briankrusicw.logan.tv ([64.17.255.138]) by mx.google.com with ESMTPSA id bp5sm29922154pbb.18.2013.10.28.10.45.03 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 28 Oct 2013 10:45:03 -0700 (PDT) Subject: Re: ZFS txg implementation flaw Mime-Version: 1.0 (Apple Message framework v1085) Content-Type: text/plain; charset=us-ascii From: aurfalien In-Reply-To: <20131028092844.GA24997@zxy.spb.ru> Date: Mon, 28 Oct 2013 10:45:02 -0700 Content-Transfer-Encoding: 7bit Message-Id: <0F1D571E-2806-4392-A5EC-BE66A3C92BF7@gmail.com> References: <20131028092844.GA24997@zxy.spb.ru> To: Slawa Olhovchenkov X-Mailer: Apple Mail (2.1085) Cc: freebsd-fs@freebsd.org, freebsd-current@freebsd.org X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Oct 2013 17:45:05 -0000 On Oct 28, 2013, at 2:28 AM, Slawa Olhovchenkov wrote: > I can be wrong. > As I see ZFS cretate seperate thread for earch txg writing. > Also for writing to L2ARC. > As result -- up to several thousands threads created and destoyed per > second. And hundreds thousands page allocations, zeroing, maping > unmaping and freeing per seconds. Very high overhead. > > In systat -vmstat I see totfr up to 600000, prcfr up to 200000. > > Estimated overhead -- 30% of system time. > > Can anybody implement thread and page pool for txg? Would lowering vfs.zfs.txg.timeout be a way to tame or mitigate this? - aurf