Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1999752ybl; Thu, 9 Jan 2020 05:18:49 -0800 (PST) X-Google-Smtp-Source: APXvYqxM7RFj23cOs6W7GrlMkzw5FptR/5WCH/rbRyaIfaK8+0K5ZUa1a/HignXmfdPC/fxhVwGa X-Received: by 2002:a9d:5918:: with SMTP id t24mr8882126oth.310.1578575928928; Thu, 09 Jan 2020 05:18:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578575928; cv=none; d=google.com; s=arc-20160816; b=PJ0xbckq/Iot1BcEFpzmrWnloLGZUTx8zc+NytovVqMXF0U5ZR1DIjrKQ4GoPZ3XiA uX5+V9mtCZ9I+LepOBfFjC6kT85LH6AaWCnKSn97kley9k6Yhvi5T9azVhUn6WLsptyd dhUGMdEAahTpSQoTa66fK3CBCOajpvozxB0OHRGkj12rXez9deyCF5/pRzf0iWDqUB0S M/MxWleM/jaIbe7iHhAAuZaVwJ3YjG++oHFFgMoIiZ0UbzjJ/E6gxaz3BfLsFbwQzGnn 1ys0QmPwfqd/lImAXLOa3h98/YT72lNDtgybBxFuST3IDRMEimQCXxIdK/C2qpkDJXeg uHkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=DH0hu1X2f48zaRQ95KAYHg64eO0fzuby6kRfQo6uKFs=; b=X9i4dOay2RUovGaRUPtHhOWHZQ0ykGX6WV+DXJUeKUHJmQArzWfsnOAr0g/L6B1qBZ SfzHLjWX9Tvc6FdqQtWMsN4/Uu1peIzJ9jZIVCG5hodHizjfKCVPaHldBGLiT/VKZMMp GNt0tcisqUi0GPX0K8JbObDV6aKr6FXx5Gzbl0Q+bx+etbo/H9CAlYRDdXw6KxSPUirz CoLfEVldp6NcvFG64i3jk4iPAtcoS500wotNS95g1PehWs0g+jybyWOBqJITYviyVj9N sk058F+fhHmYFIgf382qFwVVrExXgjhTQ35GNntYAwl8KviUN7LOpxyvq2OHn1+BhJWB j9gg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m3si3925950otf.42.2020.01.09.05.18.29; Thu, 09 Jan 2020 05:18:48 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731083AbgAIMeq (ORCPT + 99 others); Thu, 9 Jan 2020 07:34:46 -0500 Received: from mx2.suse.de ([195.135.220.15]:38186 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731071AbgAIMeq (ORCPT ); Thu, 9 Jan 2020 07:34:46 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 91B69B2220; Thu, 9 Jan 2020 12:34:28 +0000 (UTC) Received: by quack2.suse.cz (Postfix, from userid 1000) id CE00F1E0798; Thu, 9 Jan 2020 13:34:27 +0100 (CET) Date: Thu, 9 Jan 2020 13:34:27 +0100 From: Jan Kara To: "Theodore Y. Ts'o" Cc: Ritesh Harjani , Jan Kara , Xiaoguang Wang , Ext4 Developers List , joseph.qi@linux.alibaba.com, Liu Bo Subject: Re: Discussion: is it time to remove dioread_nolock? Message-ID: <20200109123427.GD22232@quack2.suse.cz> References: <20191226153118.GA17237@mit.edu> <9042a8f4-985a-fc83-c059-241c9440200c@linux.alibaba.com> <20200106122457.A10F7AE053@d06av26.portsmouth.uk.ibm.com> <20200107004338.GB125832@mit.edu> <20200107082212.GA25547@quack2.suse.cz> <20200107171109.GB3619@mit.edu> <20200107172236.GJ25547@quack2.suse.cz> <20200108104520.3BC4A4203F@d06av24.portsmouth.uk.ibm.com> <20200108174259.GD263696@mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200108174259.GD263696@mit.edu> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Wed 08-01-20 12:42:59, Theodore Y. Ts'o wrote: > On Wed, Jan 08, 2020 at 04:15:13PM +0530, Ritesh Harjani wrote: > > > Yes, that's a good point. And I'm not opposed to that if it makes the life > > > simpler. But I'd like to see some performance numbers showing how much is > > > writeback using unwritten extents slower so that we don't introduce too big > > > regression with this... > > > > > > > Yes, let me try to get some performance numbers with dioread_nolock as > > the default option for buffered write on my setup. > > I started running some performance runs last night, and the Thanks for the numbers! What is the difference between 'default-1' and 'default-2' configurations (and similarly between dioread_nolock-1 and -2 configurations)? > interesting thing that I found was that fs_mark actually *improved* > with dioread_nolock (with fsync enabled). That may be an example of > where fixing the commit latency caused by writeback can actually show > up in a measurable way with benchmarks. Yeah, that could be. > Dbench was slightly impacted; I didn't see any real differences with > compilebench or postmark. Interestingly, dbench is also fsync(2)-bound workload (because the working set is too small for anything else to actually reach the disk in contemporary systems). But file sizes with dbench are smaller (under 100k) than with fs-mark (1MB) so probably that's what makes the difference. > dioread_nolock did improve fio with > sequential reads; which is interesting, since I would have expected > with the inode_lock improvements, there shouldn't have been any > difference. So that may be a bit of wierdness that we should try to > understand. Yes, this is indeed strange. I don't see anything the DIO read path where dioread_nolock would actually still matter. Honza -- Jan Kara SUSE Labs, CR