Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2179999ybi; Thu, 20 Jun 2019 10:22:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqxNVLKaCvUJKluNmI5lbSVAr+75LbmFUpYz9k5+Q3IV+wA4732o663EGSrKyc9QeVV9oijv X-Received: by 2002:a17:90a:ac14:: with SMTP id o20mr776714pjq.114.1561051368960; Thu, 20 Jun 2019 10:22:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561051368; cv=none; d=google.com; s=arc-20160816; b=nWXlz2h3JuxG3Tm8zdlojt1f3tXH72AhlUBufX8Rc79hTPulvHp1Hq40SlCaLcSXi0 glG/QC2otk7aPM82eDADTvF5vy8mU2ObWfHJl3cedWO8CThD1VbqLX56uDMA/9MfNgR3 3TI2aY0sRoImrG0o5LmBCJB8GU9/W9Gza2n/h01Jt+mJqsLkbLq94fk0f6lIo6f6eHy8 91OJtZtml6sLNGbzTsO9JekRoFcbX04GwAMBjmrrIzCyfABXY8NZXA+TIQhfMIvvn4H8 4BqsPn6VC788fyXCVH/PxiQsR+ltDXZ5IOh85pZEWkEYg1Rs6kAke+XW9NEovIH//SWB GOOQ== 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:mail-followup-to :message-id:subject:cc:to:from:date; bh=ANxCRHapZpcmauP58fFGvA44oGdcasiueMrytFA9ELA=; b=c7Dl/5ucDnvQkr1ulrjSJn2C+5UbypEr9skO0VwPSm2+k0WOu+19tUx1O/TRffxjce 9ZXpxf1jj3pxcwY8tLfSse5dlbKjnaoda8u1+TeI7Y+tszbh8mGniGgBROB3GYL0YTbj wREqNF9svEyJmIoYk7B/RupRfLdatlpb9fAv82iq+nhVS3/b5eZuPjQ0/3lFNeYFxTUs 1cg70p5eYZ8kYrzbV6PseUOg4SxeMS/zlPNlvVBpRugwa28EubvM8e9fe5pGK4U4cibY e8zUM8HT0hWrVvlHa2b2xLO59eycndLeAuDPFS1dQu+e2t5A8R3fqoZGVAGLohJ5AItd 8oLg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 l10si18584pgq.226.2019.06.20.10.22.33; Thu, 20 Jun 2019 10:22:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731967AbfFTRWW (ORCPT + 99 others); Thu, 20 Jun 2019 13:22:22 -0400 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:32922 "EHLO outgoing.mit.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726637AbfFTRWW (ORCPT ); Thu, 20 Jun 2019 13:22:22 -0400 Received: from callcc.thunk.org (guestnat-104-133-0-109.corp.google.com [104.133.0.109] (may be forged)) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id x5KHM8mu014348 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 20 Jun 2019 13:22:09 -0400 Received: by callcc.thunk.org (Postfix, from userid 15806) id 528DC420484; Thu, 20 Jun 2019 13:22:08 -0400 (EDT) Date: Thu, 20 Jun 2019 13:22:08 -0400 From: "Theodore Ts'o" To: Ross Zwisler Cc: Jan Kara , Ross Zwisler , linux-kernel@vger.kernel.org, Alexander Viro , Andreas Dilger , Jan Kara , linux-ext4@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, Fletcher Woodruff , Justin TerAvest Subject: Re: [PATCH 2/3] jbd2: introduce jbd2_inode dirty range scoping Message-ID: <20190620172208.GB4650@mit.edu> Mail-Followup-To: Theodore Ts'o , Ross Zwisler , Jan Kara , Ross Zwisler , linux-kernel@vger.kernel.org, Alexander Viro , Andreas Dilger , Jan Kara , linux-ext4@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, Fletcher Woodruff , Justin TerAvest References: <20190619172156.105508-1-zwisler@google.com> <20190619172156.105508-3-zwisler@google.com> <20190620110454.GL13630@quack2.suse.cz> <20190620150911.GA4488@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190620150911.GA4488@google.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 20, 2019 at 09:09:11AM -0600, Ross Zwisler wrote: > We could definitely keep separate dirty ranges for each of the current and > next transaction. I think the case where you would see a difference would be > if you had multiple transactions in a row which grew the dirty range for a > given jbd2_inode, and then had a random I/O workload which kept dirtying pages > inside that enlarged dirty range. > > I'm not sure how often this type of workload would be a problem. For the > workloads I've been testing which purely append to the inode, having a single > dirty range per jbd2_inode is sufficient. My inclination would be to keep things simple for now, unless we have a real workload that tickles this. In the long run I'm hoping to remove the need to do writebacks from the journal thread altogether, by always updating the metadata blocks *after* the I/O completes, instead of before we submit the I/O. - Ted