Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3861705pxu; Mon, 30 Nov 2020 11:49:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJyjS4eZMhT0jPqKDtoB850QMke31zYW5y4qXbIukkuHdNg4ksuPer3oYsNKyYt31iuES5/W X-Received: by 2002:a05:6402:312b:: with SMTP id dd11mr7577682edb.308.1606765742195; Mon, 30 Nov 2020 11:49:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606765742; cv=none; d=google.com; s=arc-20160816; b=od3w6nlAVpcGbl0Q70Vhxdi1KEfw7RQHmyMy1gDEGhZGu1TBcnVb2rY1u/8yHOWJBE I41QKAeioo1wzZm2fcOIdlYyTqtG2/TX+M8hBu840GttmTUkUNDfrYpAp5Ko3+flwguE jlWXDD3WH/ApSWR+MffOFKrcaGiMs9AdVrJYxKgLnCaF7sihgMxMdRonISskLt3EZ7jv nBg50nmwBV/EGDJ09LflJeO4x3kVpnxVWLJoXxLxlGIFIrw6CgJbJig40FFgD/KWj1MJ WbKNjulFVbgCKbBSwbNPI+udl1Ub8d86Gp/IBg7Th2jdcM0doRagNYt1kc4MDk2H/Vfo oMQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date:dkim-signature; bh=lzfoUfWajb4p4eNOmNvuQscrN072WhSa9bylfU2yzX0=; b=EalPscwfUnh1a3n0usfcXTYfDpIHIOk9jlksvzpMIarkDNEjaBzk6aUboEEiaN5AZ1 N7p9xBjGvN8ITADhpcpdHJnrjAMMCVhEumXHwT+KpeHQV5c1ZavxtHgax+uIsNLyYG0m vIbf1T5Q0FVvTQfsqn63ooROgsjJV0L/9xHJG/XLkqd7WNjHqJDwpFh1R+HKzi2mIdvg G6s4ypT1PSQ7s3bqSyV+1loAwrSW51IraAZjj1FGJ53i3E0ceQoiKsheOq33oMy8NGVg CPAOzq5enSAsoUHaDBBvpRV6xNRZwenTUXrFR9Mi9bRxwLCgSNYGZhVdQKcr0iJyLnqU 8WWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=hTSPjl64; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id rk28si11483121ejb.711.2020.11.30.11.48.38; Mon, 30 Nov 2020 11:49:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=hTSPjl64; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726364AbgK3Tqq (ORCPT + 99 others); Mon, 30 Nov 2020 14:46:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40782 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726769AbgK3Tqq (ORCPT ); Mon, 30 Nov 2020 14:46:46 -0500 Received: from mail-oi1-x242.google.com (mail-oi1-x242.google.com [IPv6:2607:f8b0:4864:20::242]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6E6BC0613D4 for ; Mon, 30 Nov 2020 11:46:05 -0800 (PST) Received: by mail-oi1-x242.google.com with SMTP id k26so15521359oiw.0 for ; Mon, 30 Nov 2020 11:46:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=lzfoUfWajb4p4eNOmNvuQscrN072WhSa9bylfU2yzX0=; b=hTSPjl64XJLko7MKmjQjMrFqQD4dLlsqADqMsqR+j3i/O/jTAASbFKHNMbwdnvdsxG UJZzukjaYm4Ayg5ODgCXo7kBIzIPle5y9CI+Kg0QDNPFnkM+gvFH6a3kk3YxqcjE4PK+ 5Ug7f208kwZgD9lrNpKuOhc3h5tIhD2YRYHrxrNcd5iGfogG4HJ3wUxs7dn6SybwpDDI QoCDuivGuqPcKB0Rpts8le3YCMv1xr3gwRxTqgomXagAehDHvGJaMA2BgjzI29OMV144 Wt2U7BFKpldDf9PtgttIyJVQoDmqVwizngX7QNriPx1R7PxMM84LS0ElqDUgaQD5PwV3 wPtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=lzfoUfWajb4p4eNOmNvuQscrN072WhSa9bylfU2yzX0=; b=W3Fyd4lbfMMappEmIB+DQmkcOa5ophty9IM76P9/scHFY7wW33h3k82PzlSi1BZ0Z5 sUhji5EiTpYJijyvNqvP2qOzqmO2LPP1OvEcAPgpzFDCuljzIcvQjQ4neauNfx+CTBVH 9+IGaGaApdHqxGFOn0PwUEVwUp7CdAKewvEe4erl7eHSEnbFcCvvAxOprFC7a0tEKlcV DzlHQezZAQHeALiI4GsWcehqRRPDJrzGx53HNbiHRFCUSPhU/XonbYUEaCM3SLm1Aq8c Aj6s9Ue4YMc/OBLSzi/48Fkz3WYBHwU5/xmqQehouYGTCWjP2cCQegkdxDh62qzUUQzD Gb4g== X-Gm-Message-State: AOAM531ong4AyK6X9CZ5S+IWbntFirY6pl6DTLU2/tat/XKp9bWP/nlu BJweNxmKIg+TL7I6Bh9zsIuuyQ== X-Received: by 2002:a05:6808:7cd:: with SMTP id f13mr432496oij.38.1606765564711; Mon, 30 Nov 2020 11:46:04 -0800 (PST) Received: from eggly.attlocal.net (172-10-233-147.lightspeed.sntcca.sbcglobal.net. [172.10.233.147]) by smtp.gmail.com with ESMTPSA id i4sm9994210oos.31.2020.11.30.11.46.03 (version=TLS1 cipher=ECDHE-ECDSA-AES128-SHA bits=128/128); Mon, 30 Nov 2020 11:46:04 -0800 (PST) Date: Mon, 30 Nov 2020 11:45:46 -0800 (PST) From: Hugh Dickins X-X-Sender: hugh@eggly.anvils To: Matthew Wilcox cc: Hugh Dickins , Andrew Morton , Jan Kara , William Kucharski , Linux-FSDevel , linux-mm , Christoph Hellwig , Johannes Weiner , Yang Shi , dchinner@redhat.com, linux-kernel Subject: Re: [PATCH v4 00/16] Overhaul multi-page lookups for THP In-Reply-To: <20201126200703.GW4327@casper.infradead.org> Message-ID: References: <20201117153947.GL29991@casper.infradead.org> <20201117191513.GV29991@casper.infradead.org> <20201117234302.GC29991@casper.infradead.org> <20201125023234.GH4327@casper.infradead.org> <20201125150859.25adad8ff64db312681184bd@linux-foundation.org> <20201126121546.GN4327@casper.infradead.org> <20201126200703.GW4327@casper.infradead.org> User-Agent: Alpine 2.11 (LSU 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 26 Nov 2020, Matthew Wilcox wrote: > On Thu, Nov 26, 2020 at 11:24:59AM -0800, Hugh Dickins wrote: > > > But right now it's the right fix that's important: ack to yours below. > > > > I've not yet worked out the other issues I saw: will report when I have. > > Rebooted this laptop, pretty sure it missed freeing a shmem swap entry, > > not yet reproduced, will study the change there later, but the non-swap > > hang in generic/476 (later seen also in generic/112) more important. It's been a struggle, but I do now have a version of shmem_undo_range() that works reliably, no known bugs, with no changes to your last version outside of shmem_undo_range(). But my testing so far has been with the initial optimization loop (of trylocks in find_lock_entries()) "#if 0"ed out, to give the final loop a harder time. Now I'll bring back that initial loop (maybe cleaning up some start/end variables) and retest - hoping not to regress as I do so. I'll send it late today: I expect I'll just send the body of shmem_undo_range() itself, rather than a diff, since it's too confusing to know what to diff against. Or, maybe you now have your own improved version, and will want me to look at yours rather than sending mine. Andrew, if you're planning another mmotm soon, please remove/comment mm-truncateshmem-handle-truncates-that-split-thps.patch and any of its "fixes" as to-be-updated: all versions to date have been too buggy to keep, and a new version will require its own review, as you noted. I think that means you also have to remove mm-filemap-return-only-head-pages-from-find_get_entries.patch which I think is blameless, but may depend on it logically. > > The good news is that I've sorted out the SCRATCH_DEV issue with > running xfstests. The bad news is that (even on an unmodified kernel), > generic/027 takes 19 hours to run. On xfs, it's 4 minutes. Any idea > why it's so slow on tmpfs? I sent a tarball of four xfstests patches on Thursday, they're valid: but generic/075 and generic/112, very useful for this testing, suffer from an fsx build bug which might or might not affect you: so I'll now reply to that mail with latest tarball. Hugh