Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1311105pxk; Sat, 12 Sep 2020 20:40:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzftRlxtgksmM91GqP8yWxAOgSmKlyhfUXSqKhB8m0nyVhYacjdpB6L1URdY7Knami5GRU4 X-Received: by 2002:a17:906:1115:: with SMTP id h21mr8803603eja.273.1599968453479; Sat, 12 Sep 2020 20:40:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599968453; cv=none; d=google.com; s=arc-20160816; b=nG6GGK5c2FKNv8ROV+9axqhNyzNMSrYDP8SfZu2vLchQGfeAWo4tXKJsSg+rRryXRd u+Ajx0dYdOlDm5xLeb7tnuP9Co91+BGctslO1V8Jt6BQFOJSCmEa8yRT2Ivec6sdutYY 0WAb1DewBWK8gKPkFSWNu4ga8bc65eYz5f87E9iSuJqlcXwU0fyZ3I936GT5mzKFUZwr lEVlK6XE0eonBTi78WjU248mZrMNR8nOcGHXactjFKpXseSeVzwO72MlT0UjvkGXlrMN /l/EltNbbXaNZwhMyJuUdUMGKeSoS3+ww3PLSNS5FSaOAphxV9a10gKZF8ncrmSaBpwn XMBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=ZYGqdYamY4+zA1k9YbkPZAzoov94etFgvoPUgrubo8I=; b=RZw8XW5dYA8zR2sq6LKjgCDPzHzripNLmZdXWLkH3rk7SGzJqBRCf9InxHJHFhKsAs gTjk0rXmzHs27vmdvBgYQO40S4wS+56FlQCx+SoktpE0mAx8IpvI08a5kUfwpXbKuKPF qEw7PUmTaczJW6eT8oPIH6iuq/SN9iYCKT+jPSl76au4hroRtBgJrQw4CbVE+EXQ3p+A dhTXwBwloHxPi3J5vWKTyYaK8GdyOzODa07sjxRz8Y2+pEYnDeNrzRh5djZSiaxDEa6S pAgtnL4BL1qLE4FopjNQNkg5EkXoTUUoqTXQJn3SetUZ/2EqSlTa4SF7k2CFeKJzmHlp HYpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=Co2zECnD; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bg14si4347996ejb.368.2020.09.12.20.40.16; Sat, 12 Sep 2020 20:40:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=Co2zECnD; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725921AbgIMDkM (ORCPT + 99 others); Sat, 12 Sep 2020 23:40:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725910AbgIMDkL (ORCPT ); Sat, 12 Sep 2020 23:40:11 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 09C66C061573; Sat, 12 Sep 2020 20:40:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=ZYGqdYamY4+zA1k9YbkPZAzoov94etFgvoPUgrubo8I=; b=Co2zECnDOBV1f+thSQ7plIGWME bSemBFVqyXyzDaeb01IFgpK+aWoGXS2k1HDI+SJpZBJqwACUz7zBvNhDvtI8QbPX7NEw6qG5Jh6wp /YftdGpqRMe9CrI8WDCaqUM39jGK4l/IaE8DZ+AuCqJC2MSDaMtWQE2XLJldnADQymohGjJ0flrQ3 YZ1GAuVzCs4zwAPbNl8+aSnnOsdP4VLJ055PPB6xPxChAkvEu/2ONjBmIcy1MYBS7KBaTjQAEWpVn 6vfDm4MICOgSOVvB4d9ovAuq8wcwCvXSnx7buM0cAjWU3SqxsJqD+GfsmK3/qbft0mcXH6qFO4SPo AhITR88g==; Received: from willy by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1kHIs0-0004kj-K4; Sun, 13 Sep 2020 03:40:04 +0000 Date: Sun, 13 Sep 2020 04:40:04 +0100 From: Matthew Wilcox To: Linus Torvalds Cc: Dave Chinner , Amir Goldstein , Hugh Dickins , Michael Larabel , Ted Ts'o , Andreas Dilger , Ext4 Developers List , Jan Kara , linux-fsdevel Subject: Re: Kernel Benchmarking Message-ID: <20200913034004.GF6583@casper.infradead.org> References: <8bb582d2-2841-94eb-8862-91d1225d5ebc@MichaelLarabel.com> <0cbc959e-1b8d-8d7e-1dc6-672cf5b3899a@MichaelLarabel.com> <20200913004057.GR12096@dread.disaster.area> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Sat, Sep 12, 2020 at 07:39:31PM -0700, Linus Torvalds wrote: > The real worry with (d) is that we are using the page lock for other > things too, not *just* the truncate check. Things where the inode lock > wouldn't be helping, like locking against throwing pages out of the > page cache entirely, or the hugepage splitting/merging etc. It's not > being truncated, it's just the VM shrinking the cache or modifying > things in other ways. Actually, hugepage splitting is done under the protection of page freezing where we temporarily set the refcount to zero, so pagecache lookups spin rather than sleep on the lock. Quite nasty, but also quite rare. > But the page locking code does have some extreme downsides, exactly > because there are so _many_ pages and we end up having to play some The good news is that the THP patchset is making good progress. I have seven consecutive successful three-hour runs of xfstests, so maybe we'll see fewer pages in the future.