Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp1227089rwo; Wed, 2 Aug 2023 10:30:37 -0700 (PDT) X-Google-Smtp-Source: APBJJlEPONWJZNOmUqGJEbn44vDfYPfmzZEqR+8r6YAk82efKlP3+k/xFFk/9DFmdMiURHEQdICa X-Received: by 2002:a17:90a:be10:b0:268:169e:8497 with SMTP id a16-20020a17090abe1000b00268169e8497mr20442364pjs.13.1690997437220; Wed, 02 Aug 2023 10:30:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690997437; cv=none; d=google.com; s=arc-20160816; b=Ywy4cizqhD0sObRgvhv1DYIs+f4yx9xM1EtrjoViJy9wBHzvu8V1/8t2sYwx82n5FI /H2x22y2U54nUCCFxgfXHXUg2gEn7yd408tliDisHDgXa0Pk4B9e19lELoXekvDcPCGl KvMBtgNjcKaCxFrCcesK6JqyMPwHzBssrE5k2wkzkMujDEJreQonNF+frtUcBiXuCHwL 5AS83ctriuJuBWRzZWbkyrfSyXF8h6spKDQKHDvB7Jiwh3cXR+3T6Nsln/auqUA4p2Ey 7g/if+CeeYjsw/v8J6pkbsH7bWwOSiiO1Hm8sXU+0uZn5WjUcr7ZC+KoJybXAINkhz7X 9e6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=/HiRldT2G6GzpLSLP4EwtJNax/SO6hwG02IxOftO9E8=; fh=RRC0d0bmK98acO9qLar64FwjpeUNFvMxPi4L1c08CB4=; b=YmDa94wzg8o/YRGBk1HRXTPKdvpO+csRQpLzdPnRU8WWsMtLh6oEpvSfiE8WR3eytI fMgdGjQEhjA42ViM0GjrRr8OQW2FMC0jCjpsFP6a7XV0txKROvBBuNVlkpxHtiRwoFGV 2ccuArmzhXExWo3nlzk0lpHZHobQEVgZHRCnEPOiOKRTFFQiDjwH19mcgy+ZKA8LtAEf eA4nPnvV3HwUafDXYA/GNlwFrFG9I+ywTH+W8KgSWfD3eAVZt/SvMkkp6efmzh4bNTCJ kwLeebg3U7ExDcmLV4EppUeUamgoTI8t3aWxpZ5kJcXGPZ6cMkWa6KeotMq2A7VKfyoK +tQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b="bmDUn/wW"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id me3-20020a17090b17c300b002681895d0d9si1529265pjb.120.2023.08.02.10.30.15; Wed, 02 Aug 2023 10:30:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b="bmDUn/wW"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S233462AbjHBREA (ORCPT + 99 others); Wed, 2 Aug 2023 13:04:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233523AbjHBRDk (ORCPT ); Wed, 2 Aug 2023 13:03:40 -0400 Received: from mail-qt1-x82e.google.com (mail-qt1-x82e.google.com [IPv6:2607:f8b0:4864:20::82e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 94C60139 for ; Wed, 2 Aug 2023 10:03:25 -0700 (PDT) Received: by mail-qt1-x82e.google.com with SMTP id d75a77b69052e-40c72caec5cso15711cf.0 for ; Wed, 02 Aug 2023 10:03:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1690995796; x=1691600596; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=/HiRldT2G6GzpLSLP4EwtJNax/SO6hwG02IxOftO9E8=; b=bmDUn/wWoQiozTuFj9W9r+8AZ6IeqgRCIb9UJ4cNGrMbOsb5BoofRxwtT+/Qfn34w8 iu/qEtk1in3BNhGBmQUnoky8JHS6QOOLwQzG+PZ5GDOuAGyY1LdCZHWj/l3gy/mIfaGJ 0WmTeqx90p5r95bd1DK8HBtZm4QKhSckPQ4ki9irFtaEwx6pjIweOyY0HHxB5WVBgz8O DXGPrI/EQZyALVebLqtuDmmJAPRqmZ/2eNNKMSIb8nqV3BMrpF8LQiarXAQt3k7E68IM 1KaPfFxg+RLLCHik5SBt0IHXK756WtwN7TVLZOehoma8yRwIflLSZUM6tyPa7QJ3DTXn TAQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690995796; x=1691600596; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=/HiRldT2G6GzpLSLP4EwtJNax/SO6hwG02IxOftO9E8=; b=OaoaA/uZ53713RNZ8ipXaAdtO3iEi9orASonRcj59ir4hlVaTq5ZJs3uupbhj4SkaE FprerCiy1l49AkmNDTJI46cyeHJFpxy9G6wzCDI0ZjsFOFJY4RO/2WsQVOMKGvBFaakK FZDBIB4Y0u/FevsI2BWBQUc7a38ItNw7pzmFv6DG/w8ndyRe1tBsC60gsOA8jy57+ZQ3 epMCLMd/hHHcU859voSBmQJu5fzFBEOdQ/oM6R12YL1E5YTGabG4AB28FbInEgf4cVzO EnT5R8d1PCBJGgHdszRFuuJYDEv0RElWkicjk2unHVcjGL/7/hRqzTtxRZC/KiqmCSxD e88Q== X-Gm-Message-State: ABy/qLZ+p5yKGPL3IUMI3rUhHHyINfkn0Prb4r4qkwI/4ADv2Ln6HhmD OCt1YbhiVEIrFooe1G3tl2nTzFY4Rp4Wx6+5gDLVqA== X-Received: by 2002:ac8:58d4:0:b0:3f8:5b2:aef5 with SMTP id u20-20020ac858d4000000b003f805b2aef5mr1045439qta.29.1690995796169; Wed, 02 Aug 2023 10:03:16 -0700 (PDT) MIME-Version: 1.0 References: <20230727141837.3386072-1-ryan.roberts@arm.com> In-Reply-To: From: Yu Zhao Date: Wed, 2 Aug 2023 11:02:40 -0600 Message-ID: Subject: Re: [PATCH v4 0/3] Optimize large folio interaction with deferred split To: Ryan Roberts Cc: Andrew Morton , Matthew Wilcox , Yin Fengwei , David Hildenbrand , Yang Shi , "Huang, Ying" , Zi Yan , Nathan Chancellor , Alexander Gordeev , Gerald Schaefer , "Kirill A. Shutemov" , linux-kernel@vger.kernel.org, linux-mm@kvack.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 2, 2023 at 10:42=E2=80=AFAM Ryan Roberts = wrote: > > Hi Andrew, > > After discussion about this in Matthew's THP Cabal, we have decided to ta= ke a > different approach with this patch set. Could you therefore remove it fro= m > mm-unstable, please? Sorry about the noise. > > I'm going to try 2 different approaches: > - avoid the split lock contention by using mmu gather (suggested by Kiri= ll) > - expand the zap pte batching to also cover file folios (as requested by= Yu). Also we didn't have the chance to clarify before Ryan dropped out from the meeting: I don't think this series is a prerequisite for the other series ("variable-order, large folios for anonymous memory") at all. They can move along in parallel: one is specific for anon and the other (this series) is generic for all types of large folios.