Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp988542ybx; Fri, 1 Nov 2019 14:42:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqzhK7RAHRVZPdCA4TNANIzsq89S1ppsj+EmcVqzr8s9IwGv3vor6VPFzQH71D36bvUexnGQ X-Received: by 2002:a17:906:4c97:: with SMTP id q23mr11759171eju.78.1572644566119; Fri, 01 Nov 2019 14:42:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572644566; cv=none; d=google.com; s=arc-20160816; b=kpk/WnEPf6av29niBKG7nZ9Bcjk9fPIiHjL98UhFYQajKGkKmR61U8Hs3GNCrUabXF Kt2bZ6eSWwL7ipYSgq2z6scmDWrq+JdBaAIvY0N77s9DxBGSdc+ZV5F+D8Xz6CknKSYK nL4dKUkRo82xjoYHDSwFZw6O2/ujfZR8kdXs6596eFHjdLBLnyCAjCRD4mhZdMTON5Dx Cas0qA8pix+wiaMcnTRja3AqDWFZ+60uohp7AYVefowWfwPrWngmjHrKWwUFEdcs2QcV 6j8A/365qYMvCHeRvKbQGLAYpKBg55COKEwv94j8YZ6N7jXEQ/w75rJz8agAkXVX4zXK W/UA== 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=9jNhHQE8aAAJZyJ0m/UM+YdYU8tEjUYXtPHohH9WlFQ=; b=vScuwx2GvjAbMcm2xs8rbjQgi3GJ8o4tK6oALE+6dqQ74rINfu3hp6pnB6fTDv0ZNj eaobdbKyvMkUnFnvIpaAv1h13sYdkme4/Z3LPuwIfc4HRPLgHe58s9Y+LvpHqDHnL60T ME54MuUUkhzBJATCvp//jcSZMWMl+4bfLmveLdduVC/EjZ7zNolBkfWBnOLXDZoHX6Lb KyqKWQTwyR5HrP4JMNtjCY5Y6Pltd30QYWymnmF1JfU1+mWmJZkl/pDFaOu2ZY9QRDHT 1fo0ZuuoSU9a4xGn8sC+dq1dzFv65tS3nUGpZ1uaH5AhaTfuPPmICyt1oqzSM/suLyip wVBw== 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 u59si1511477edc.193.2019.11.01.14.42.22; Fri, 01 Nov 2019 14:42:46 -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 S1726986AbfKAVko (ORCPT + 99 others); Fri, 1 Nov 2019 17:40:44 -0400 Received: from mail105.syd.optusnet.com.au ([211.29.132.249]:43735 "EHLO mail105.syd.optusnet.com.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725989AbfKAVko (ORCPT ); Fri, 1 Nov 2019 17:40:44 -0400 Received: from dread.disaster.area (pa49-180-67-183.pa.nsw.optusnet.com.au [49.180.67.183]) by mail105.syd.optusnet.com.au (Postfix) with ESMTPS id DBCB03A0834; Sat, 2 Nov 2019 08:40:40 +1100 (AEDT) Received: from dave by dread.disaster.area with local (Exim 4.92.3) (envelope-from ) id 1iQeeu-0006bm-DO; Sat, 02 Nov 2019 08:40:40 +1100 Date: Sat, 2 Nov 2019 08:40:40 +1100 From: Dave Chinner To: Brian Foster Cc: linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 02/28] xfs: Throttle commits on delayed background CIL push Message-ID: <20191101214040.GX4614@dread.disaster.area> References: <20191031234618.15403-1-david@fromorbit.com> <20191031234618.15403-3-david@fromorbit.com> <20191101120426.GC59146@bfoster> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191101120426.GC59146@bfoster> User-Agent: Mutt/1.10.1 (2018-07-13) X-Optus-CM-Score: 0 X-Optus-CM-Analysis: v=2.2 cv=G6BsK5s5 c=1 sm=1 tr=0 a=3wLbm4YUAFX2xaPZIabsgw==:117 a=3wLbm4YUAFX2xaPZIabsgw==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=kj9zAlcOel0A:10 a=MeAgGD-zjQ4A:10 a=20KFwNOVAAAA:8 a=7-415B0cAAAA:8 a=0MiyBbjkrBVIBRQmzFcA:9 a=CjuIK1q_8ugA:10 a=biEYGPWJfzWAr4FL6Ov7:22 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 01, 2019 at 08:04:26AM -0400, Brian Foster wrote: > On Fri, Nov 01, 2019 at 10:45:52AM +1100, Dave Chinner wrote: > > From: Dave Chinner > > > > In certain situations the background CIL push can be indefinitely > > delayed. While we have workarounds from the obvious cases now, it > > doesn't solve the underlying issue. This issue is that there is no > > upper limit on the CIL where we will either force or wait for > > a background push to start, hence allowing the CIL to grow without > > bound until it consumes all log space. > > > > To fix this, add a new wait queue to the CIL which allows background > > pushes to wait for the CIL context to be switched out. This happens > > when the push starts, so it will allow us to block incoming > > transaction commit completion until the push has started. This will > > only affect processes that are running modifications, and only when > > the CIL threshold has been significantly overrun. > > > > This has no apparent impact on performance, and doesn't even trigger > > until over 45 million inodes had been created in a 16-way fsmark > > test on a 2GB log. That was limiting at 64MB of log space used, so > > the active CIL size is only about 3% of the total log in that case. > > The concurrent removal of those files did not trigger the background > > sleep at all. > > > > Signed-off-by: Dave Chinner > > Reviewed-by: Brian Foster > > --- > > I don't recall posting an R-b tag for this one... Argh, sorry. I must have screwed up transcribing them from the mailing list. > That said, I think my only outstanding feedback (side discussion aside) > was the code factoring in xlog_cil_push_background(). I'll go back and look at that, 'cause clearly I was looking at the wrong patch when I screwed up the rvb tag... Cheers, Dave. -- Dave Chinner david@fromorbit.com