Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp17052735rwd; Mon, 26 Jun 2023 20:05:35 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5jgjm/09y9P7dnFEd6JJ4b+m/zQnzm2ElZW00nGxHO9XwY5QtfPEgXvxGzkz9B9pTUjrmM X-Received: by 2002:a2e:7209:0:b0:2b4:5a0b:9290 with SMTP id n9-20020a2e7209000000b002b45a0b9290mr19929349ljc.21.1687835135447; Mon, 26 Jun 2023 20:05:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687835135; cv=none; d=google.com; s=arc-20160816; b=S4qqepslijqU8FaVsZzmyilWbNNxIF6l68gA74Rb0mzv9MoT0HaVA8ykd8z+hoGn7P UcEpxjhIVn6DdWf9y4WhcqfHcXlFuKnZoBkmzFrP/7OVrsgNRYuTAlNEW0Rg8gRlxVZQ Tnl60lNlOJKyKFtEyxAf/RJ8HvNeQqEne6ZeoKqEyC+0HcXVJ9nwePkV5/bScdh9/gAb rOIt9Op9hZtgKNSxEAoqAvv+WLcPG6vYdMHMY/eVGpTHWE1MHJNxpFpZgyEK6fnqCPVX zmrgtNB7JmX/hr+Tp+9MfIlUBVcRFS1vgnpO2ZDCKOn32eNSmsavctTdgTjEzFIflcUZ kWQg== 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=K6m+wEFcEkBY8kPY3Kx1wllLpYaRIsGxbOUyAAHvddU=; fh=zTYFNic+S8YlfmSZQ9M48CdblHrjHKKPw48r1IJBtXA=; b=XvByNHvKuuvrbBqG2AJqjbZK5ZVLzXUltLi13AO7L7HdcyRniEDnIB1Re9/9bYOAy4 RWoK4LWTUvi1DPH4WTuz9K9WqVwidCfL9TXHW0L/q/Ng/l00oeFL5xvbMs0X7uIcvZNx xuWnYCNXzqBriSa3V3G4hsz+M+VcpBicdqYfrmacTAvFN4mBwnETFvWR1UCFxyUvqZHU mQtpAS4qj8yDzPlpA+YYsYyh7+HH6wc0SHxQ7c9wbPtqmfy28D2Cx3t1/+JV3iNqbCUl N/BU8p/rY/iap5Zsvk0mySGNUISheVBklZOCxEtIZBmIxwM0NfnRSr6iNqc4boApNuw6 NPIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=ExOjo+32; 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 q17-20020a056402033100b0051bfd314b71si3354214edw.59.2023.06.26.20.05.08; Mon, 26 Jun 2023 20:05:35 -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=ExOjo+32; 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 S229488AbjF0Czg (ORCPT + 99 others); Mon, 26 Jun 2023 22:55:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229459AbjF0Czc (ORCPT ); Mon, 26 Jun 2023 22:55:32 -0400 Received: from mail-qt1-x831.google.com (mail-qt1-x831.google.com [IPv6:2607:f8b0:4864:20::831]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 725CF19A1 for ; Mon, 26 Jun 2023 19:55:31 -0700 (PDT) Received: by mail-qt1-x831.google.com with SMTP id d75a77b69052e-401d1d967beso136301cf.0 for ; Mon, 26 Jun 2023 19:55:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1687834530; x=1690426530; 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=K6m+wEFcEkBY8kPY3Kx1wllLpYaRIsGxbOUyAAHvddU=; b=ExOjo+32OkxgczlDHvAA93Sbizsv21cvgNnqKyveTvbuoZMVxqcmZEgPgSllcehguu dbX+ENH+6Ay2FKPsfQQPRgwk9gig7UN/Bqn5dy0/3Lt52aEGpC6a0CWZuDlLqxGVuynQ ePD+CMarbkoMLKhi58XFMsuv2TxpZMqD4UY8o5PNiJT66wQAkDvlNiFFn0BYTqgMvXPt 9NcqlCm40PM9effdAviY9KeE8HRGVu4E/rigBJg7RATr+OyC7hI4fz3nHHxtdPodsK9Y PNjY12fUxpUwZPWspB5JgiUTyLdHqVtoy8OZEW6quF96sK7Xy1kFz342QD8ZJJbxbPpN +zpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687834530; x=1690426530; 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=K6m+wEFcEkBY8kPY3Kx1wllLpYaRIsGxbOUyAAHvddU=; b=GYEkHHHyYE+sBbgKkaOcWW6BK2YeMKYixksHiwtlnSK9ADHqTxDPsrxJ0PzyPbiQNx O8JGvWoIXdJQq54nsuXJ9pS1SG6daBsk7BeSop3iax3dPmApHvanr+gsOKE6pR6+yhAP sKiEdmClP+i0kEwnmepJ+V7zAJzZOtQ0uN/Sc3g4FS2XFDz4K1cFt6vTkmGpaGAqINkZ zXjkIETkQ9qKFoSmwug4lfx6M7zTk1cPg5oFFpt4SdA4JDAnRen4UEn04qYitn9EpbQ2 mSpPP+IjCWhxVJ/CxBg63W7qyy9GIp47XxRmimZrF+xsvIaOf908F5Su1SvC6Sc/9O/Y YpJw== X-Gm-Message-State: AC+VfDwZfhftNqo6DM+Bd1T0BD9xwXB65kYYboUGqfBlnUzp3AS2Yga/ 6HKPAY82gfVmk3WRb/vw3nqlVTSbrqQ7DwDRfHerZg== X-Received: by 2002:a05:622a:d1:b0:3f0:af20:1a37 with SMTP id p17-20020a05622a00d100b003f0af201a37mr70012qtw.15.1687834530512; Mon, 26 Jun 2023 19:55:30 -0700 (PDT) MIME-Version: 1.0 References: <20230626171430.3167004-1-ryan.roberts@arm.com> <20230626171430.3167004-7-ryan.roberts@arm.com> In-Reply-To: <20230626171430.3167004-7-ryan.roberts@arm.com> From: Yu Zhao Date: Mon, 26 Jun 2023 20:54:54 -0600 Message-ID: Subject: Re: [PATCH v1 06/10] mm: Allow deferred splitting of arbitrary large anon folios To: Ryan Roberts Cc: Andrew Morton , "Matthew Wilcox (Oracle)" , "Kirill A. Shutemov" , Yin Fengwei , David Hildenbrand , Catalin Marinas , Will Deacon , Geert Uytterhoeven , Christian Borntraeger , Sven Schnelle , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-alpha@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-ia64@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-s390@vger.kernel.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_NONE,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 Mon, Jun 26, 2023 at 11:15=E2=80=AFAM Ryan Roberts wrote: > > With the introduction of large folios for anonymous memory, we would > like to be able to split them when they have unmapped subpages, in order > to free those unused pages under memory pressure. So remove the > artificial requirement that the large folio needed to be at least > PMD-sized. > > Signed-off-by: Ryan Roberts Reviewed-by: Yu Zhao