Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp456215lqh; Tue, 7 May 2024 04:42:32 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVycmnTwhmJalw1tTYBT/2M4hI6333qIFdIBOSGb2GlTXHSlWpgiVzEQVCyVDwvJcJRsU+dRiIEuLledj4+y3OVhTwzkIEyfOMrEmEg7w== X-Google-Smtp-Source: AGHT+IGZGWTpahWKSAuuYvJtU42pgNR4AFN312r1cD7Y3xkuO76ixUQOswUPWGIuzeRwBeQlFiKv X-Received: by 2002:a05:6e02:214b:b0:36c:4887:4438 with SMTP id d11-20020a056e02214b00b0036c48874438mr16118970ilv.8.1715082149847; Tue, 07 May 2024 04:42:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715082149; cv=pass; d=google.com; s=arc-20160816; b=Qxmdnpu6hNUHvYzDzOFJDjMXgBI7uUIYdLXCSwHtOxsNtMq1ErOEINwhdCODkUwZYf JGR2h4fOqH+Bpl1xajJh4it9U+Fy9TRYM3WfdbXhVj5BZsLWnDlxV7TuLkcjFxmHhZU7 8m9CobxwM57CZtnV+RTcy0NQDgdC27H90eo1t9N4JTT/Em+bmXjjnu540JXw06CrdpzR SXOVnRnyyEdREY9XUwVsZp2jl99cbHfhT/4CQ0ZPPWQJqf1BN7O0DFtHuT75sMlav8HY BawlV/BcTwqCmcE/K1jLIU/+1PGZE8yX/R9IcTXYO/kJKjhLC1BwksblenXjQQjg1h5Q IQmQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=l7Wo4d0I7/CtdEXen86TYP3aHHetOUoI4GE7ztPqRM4=; fh=sP9uQvnD0VabZBx+r4Kg9X+z3NncFkJ6ylJF++NJMso=; b=Z9N01y0VA2TXMxx1TuJpm5Q2lpjIBvmmb8tqhDGQfvTebnheGQMlj1pMb8LpXSf8xH R2T+JcS0x0WCDa6RrCXugVrFRK4TYqwF7+yVHtpIjwZ0p7wDtZECQ5cwskBOpCKrmzBO HGpqdHr016UdSaBudPqCZNuXGyOsMaNTPiB+I96/17Sc+m2rwoijTJgeYuRblp/6K/Tk e/E7WYI6vMNTCOxtYEYPusRQy16+T7cLpKAKOPD2FDy29cGAyeDIuICd4DJatvttGBrX //KmQr8kY/UmbIGH5MA2ZihFmZL5UKgxhBgPqcR0GeT/2jeINkm0qgltISbMxQEmwOvb 8fJA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-171181-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171181-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id o16-20020a635d50000000b005f7f6a880dasi10260570pgm.161.2024.05.07.04.42.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 04:42:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-171181-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-171181-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171181-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 195FAB271D4 for ; Tue, 7 May 2024 11:14:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C22451514F5; Tue, 7 May 2024 11:14:31 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8EB2B13CFAD for ; Tue, 7 May 2024 11:14:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715080471; cv=none; b=ijQ4Ke7QJqqAKhYrfzxXE8ckn/Ns3QS9Ug8k0ixIesHOk3fRfMTQDe48ipxTkCp2vBnHthwrVRCaraBKr5ENM30ZROqe3hgybdvlDvCxNOmdtOyyNmHIYHKPjmHSfpyqdSxf2IzbOQu3t23rwfXeUtiZmidyuJTVraZaJnKOzbU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715080471; c=relaxed/simple; bh=tHtyNgQFPnB8LZGdJBwFOEDK1zs2B7UXa7WzegLmIys=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=ij1eGEE0sGoDukjxLh4MBY6upw6j5uK+P0tH+l02C+uwcNrPKXAUPNUbi47C9pDTJJU82jwCKWnjHA2X3YMc/sOtsLu1UezpJQgr5Rt7FoWr01j6VvEoe/GmCvYm9hV86qpuvd4oHnDR+SfYH7Wex6RS/XDhABJhary8gdPjoKk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id DD70D1063; Tue, 7 May 2024 04:14:54 -0700 (PDT) Received: from [10.1.34.181] (XHFQ2J9959.cambridge.arm.com [10.1.34.181]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 86B623F587; Tue, 7 May 2024 04:14:27 -0700 (PDT) Message-ID: <4e7ce57f-cad1-44d5-a1d8-4cd47683a358@arm.com> Date: Tue, 7 May 2024 12:14:26 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RESEND PATCH] mm: align larger anonymous mappings on THP boundaries Content-Language: en-GB To: David Hildenbrand , Kefeng Wang , Yang Shi Cc: Matthew Wilcox , Yang Shi , riel@surriel.com, cl@linux.com, akpm@linux-foundation.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Ze Zuo References: <20231214223423.1133074-1-yang@os.amperecomputing.com> <1e8f5ac7-54ce-433a-ae53-81522b2320e1@arm.com> <1dc9a561-55f7-4d65-8b86-8a40fa0e84f9@arm.com> <6016c0e9-b567-4205-8368-1f1c76184a28@huawei.com> <2c14d9ad-c5a3-4f29-a6eb-633cdf3a5e9e@redhat.com> From: Ryan Roberts In-Reply-To: <2c14d9ad-c5a3-4f29-a6eb-633cdf3a5e9e@redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 07/05/2024 12:13, David Hildenbrand wrote: > >> https://github.com/intel/lmbench/blob/master/src/lat_mem_rd.c#L95 >> >>> suggest. If you want to try something semi-randomly; it might be useful to rule >>> out the arm64 contpte feature. I don't see how that would be interacting here if >>> mTHP is disabled (is it?). But its new for 6.9 and arm64 only. Disable with >>> ARM64_CONTPTE (needs EXPERT) at compile time. >> I don't enabled mTHP, so it should be not related about ARM64_CONTPTE, >> but will have a try. > > cont-pte can get active if we're just lucky when allocating pages in the right > order, correct Ryan? No it shouldn't do; it requires the pages to be in the same folio.