From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1B73AE7C4F6 for ; Thu, 5 Oct 2023 08:19:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:From:References:Cc:To:Subject: MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ZBtRAwAmZWBiaRPr+p61bQW8ZLs6DLNTKq0xiAGklFE=; b=OZ+Lp4LXOUwvfF ay/Ed0uRRZCf3LZpbTd8Exdx2wCDEVtsK1qAyhuP0jR5eHqwvmCz/QHku9HUILqF0NYl9L38bJSuL Q7TBB1x3H8fEprYJAeDzvam43nNmoh5Pg55U8xXYiUMv+7Skgp/4LJw3m6YPAU+/CmnOToDdVbg06 bg+sGo8bqfgaHd9a/RDfWytQ18aF72czy0zDLoZdkKY1f2RT6bChxYNwDoTExG8h+wPe3nlR6otxY mwTOFFIz9CHboumuhM7H1Z6Vkrsph0gp68P4xiEHXkIBGd8VTNGWeJ9Uwf/iRBGqezvh/CSbowl3P 14rHQTQZYe7OVLv3vJnQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qoJZp-001fEy-0R; Thu, 05 Oct 2023 08:19:21 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qoJZh-001fDE-2q for linux-arm-kernel@lists.infradead.org; Thu, 05 Oct 2023 08:19:18 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1696493952; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=p8OERLt30v5GuP5/A96MP1RVbcyVg7KG0iqkYYWA2oU=; b=d+Y3vR5cNzdHTYnMVAuZM1cuHEZcKerI3q4ZTMRJb9M3i7awQdfpZzZGgYEuN9zpmYihaz T2SsCtYKJhSf5+dRn25hjQiNx2tjdoHCYQvFj1E2yNc8gBps2Kh0sGSaRpOXDG8uMrfLbn ezYJ6aeXmyu/wY7U/IbhAEW99V/o83Y= Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-84-Q0L9DAIZNRKCStbBwyQcWQ-1; Thu, 05 Oct 2023 04:19:10 -0400 X-MC-Unique: Q0L9DAIZNRKCStbBwyQcWQ-1 Received: by mail-wm1-f72.google.com with SMTP id 5b1f17b1804b1-3fef3606d8cso5351125e9.1 for ; Thu, 05 Oct 2023 01:19:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696493949; x=1697098749; h=content-transfer-encoding:in-reply-to:organization:from:references :cc:to:content-language:subject:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=p8OERLt30v5GuP5/A96MP1RVbcyVg7KG0iqkYYWA2oU=; b=TKGtIXGcOXWz8GrvcIHGlNXoJHjc51SXy51EqnlTCrFQhyf/x2JlpZ69TGWWQd9Jkx oAlk7quoQrgEexfRG9gAaK0smx/Jtl6EK9A26ZSCtSE8QzKfOFxBqFU7MD/0PMXkyZnj TC5FII/uo3hK199oT233ZvCCexuY/GeSV3UWZqhXy0njNilk5XomM1aGJunz7L1O6HpW U4Xd0gNvdcfm2k4y4MMOZCFs+ZN2uMwWB5PWEQd60teYkOEJUN8KMdY6hlRRO5nbR0Q2 6vq+sWjvajAt/nWaFXmMtdaiG+Bn6H2RXIKWLHNOt06XUpU2ws+932XGZkQ5HgPWMMV9 g16g== X-Gm-Message-State: AOJu0YwxNY7ZpT/R16y6VQzhUJSRGWWG0k7PhcI5MrEHQee99AqxSaxF 1Xci5jQlKL7EJ9WLM/hsqq2zcGbhoHrv+rghk1e+ee7IiKqZBfyScdf3Qh/d8K20/QA+ujeXCBv wnkj2EPfe5FScwtcOMzaVIySQCp3B/EZyTZo= X-Received: by 2002:a1c:7918:0:b0:406:5303:9be2 with SMTP id l24-20020a1c7918000000b0040653039be2mr4592404wme.0.1696493949044; Thu, 05 Oct 2023 01:19:09 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGBbWTEjl1tZ+K+VDxwydJ2ZY8lKhMy6qbI1xCWeBAJWf0ILuqBVCgDtEPtvwMduKSwmGhbgQ== X-Received: by 2002:a1c:7918:0:b0:406:5303:9be2 with SMTP id l24-20020a1c7918000000b0040653039be2mr4592381wme.0.1696493948671; Thu, 05 Oct 2023 01:19:08 -0700 (PDT) Received: from ?IPV6:2003:cb:c707:d000:419d:b58e:720e:5890? (p200300cbc707d000419db58e720e5890.dip0.t-ipconnect.de. [2003:cb:c707:d000:419d:b58e:720e:5890]) by smtp.gmail.com with ESMTPSA id n5-20020a5d67c5000000b00317f70240afsm1165396wrw.27.2023.10.05.01.19.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 05 Oct 2023 01:19:08 -0700 (PDT) Message-ID: <65867977-ac07-092e-6831-91543bb2da77@redhat.com> Date: Thu, 5 Oct 2023 10:19:06 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [PATCH v6 1/9] mm: Allow deferred splitting of arbitrary anon large folios To: Ryan Roberts , Andrew Morton , Matthew Wilcox , Yin Fengwei , Yu Zhao , Catalin Marinas , Anshuman Khandual , Yang Shi , "Huang, Ying" , Zi Yan , Luis Chamberlain , Itaru Kitayama , "Kirill A. Shutemov" , John Hubbard , David Rientjes , Vlastimil Babka , Hugh Dickins Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org References: <20230929114421.3761121-1-ryan.roberts@arm.com> <20230929114421.3761121-2-ryan.roberts@arm.com> From: David Hildenbrand Organization: Red Hat In-Reply-To: <20230929114421.3761121-2-ryan.roberts@arm.com> X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231005_011913_987962_85C728AB X-CRM114-Status: GOOD ( 21.17 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 29.09.23 13:44, Ryan Roberts wrote: > In preparation for 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. > > Reviewed-by: Yu Zhao > Reviewed-by: Yin Fengwei > Reviewed-by: Matthew Wilcox (Oracle) > Reviewed-by: David Hildenbrand > Signed-off-by: Ryan Roberts > --- > mm/rmap.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/mm/rmap.c b/mm/rmap.c > index 9f795b93cf40..8600bd029acf 100644 > --- a/mm/rmap.c > +++ b/mm/rmap.c > @@ -1446,11 +1446,11 @@ void page_remove_rmap(struct page *page, struct vm_area_struct *vma, > __lruvec_stat_mod_folio(folio, idx, -nr); > > /* > - * Queue anon THP for deferred split if at least one > + * Queue anon large folio for deferred split if at least one > * page of the folio is unmapped and at least one page > * is still mapped. > */ > - if (folio_test_pmd_mappable(folio) && folio_test_anon(folio)) > + if (folio_test_large(folio) && folio_test_anon(folio)) > if (!compound || nr < nr_pmdmapped) > deferred_split_folio(folio); > } This patch can be picked up early I think. -- Cheers, David / dhildenb _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel