Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp1732873lqg; Mon, 4 Mar 2024 01:52:44 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU3Y/zHWTsDQxGrFBXNxCquYy7VxoQewtEVR07OL+AC0vj1lRvTEuH9L8hHlfFr0BqtzQe61K3ovx76e07BLTzKHWmNiUkwITWY/8CizA== X-Google-Smtp-Source: AGHT+IF2+OPXm0Bm1+Ms8idNcLrJu5XJRjh2OIG9EHU38XEPZfhyZ5Dqal0lP+YaSX4O9pLuAhX+ X-Received: by 2002:a05:6830:442b:b0:6e4:e888:9475 with SMTP id q43-20020a056830442b00b006e4e8889475mr1977917otv.22.1709545964638; Mon, 04 Mar 2024 01:52:44 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709545964; cv=pass; d=google.com; s=arc-20160816; b=z35cnCCwhHDzy7h9iAMvjyOLaJAxekCKI9S+uaap1cuCULS0aCduD7r9RINr9nSlth 9A/8sG/LRbgqjS5FSqbCPTLJqPQAO2qOxxmTSqZNLnppxBchnECWWuP2cLa7z4cLGDgk +VWVvq8Uhf2DK1KsAbctw0DksMH+/TFsCq1vL34YSz1DQYTR6tvrhCQ80Q9M9i4+4Dy5 ba9qmRt/AdxUYs7vBjAgpzBjheYhOFzGroDcfC2Ba0K+ZsFtLNmjdVhSR5Dgfln6t1Mc Et95Sx/Xl7bidQJVV1e6EihSnSPRPxO63EvpOo1dUUV5PNuOksMZ8CvwN+FaLeoN36UL CLgQ== 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=B21QuwH/dfSqqp1XUmhhAdWrFXja2i9kPdy8vRcWLkU=; fh=b2IFfOM/UoQOXzlirGmW3EptH8MlpvyPQYOAMI9PDl0=; b=FaGmUcQGRupsBp3+6xu7MZmIG4bNKl8DFjx0WA/VAJsY6iVkGZikKu0H4liZHLTUay vWMTU+Niq+m6ydKmBll3l/P8Zp76bllh3oUp3MMRD6AycPePyg/vcMGVngoyjpjUTgwx Br9Y2tOcxo4YivQcT8KeoicrFNUqRSdqSNLRwIyN7WOpRymgrlkDWH8burqRaVyEPAp7 9oe/zfjReg8O+3ULcYojbjz6myCFslAtpZrXC/q+sJF6ZbBuBLJVCjfd/4E83cNxu87z MdtMsXqoy0ipGhntuhi1fRoUP0+RTXHi3WQwKtypkGv+W5ywltatVnDZYf2goJEvkaBy 101w==; 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-90356-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90356-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d17-20020a631d11000000b005d8e3a18794si7895910pgd.474.2024.03.04.01.52.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 01:52:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-90356-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; 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-90356-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90356-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 38399280D05 for ; Mon, 4 Mar 2024 09:52:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8DF0F250E2; Mon, 4 Mar 2024 09:50:38 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5DFE2241E3; Mon, 4 Mar 2024 09:50:35 +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=1709545837; cv=none; b=JW5fuglhcmmpr/IURSD4UPYwogDPRmjmThxpxzjDJTtkjNOM5VyU+Dxsbyk8G2ZgoJY1RFpvYbaLhrjULdZlH7zTqqNZEsMXzvYQki0FS4cB2mE5DOW2vx0kwjznEDKH3+moGQLhk/VcVQQccBiIt5YTtapqXBqocg+7kYfi1JE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709545837; c=relaxed/simple; bh=H7NXG0DJNfXrnrJCrvS2GZLlDD9IRnE/n5Zgd4qxAwg=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=kN/Lr/6DDL8/FFlgD5PSkGKLArY16I9TpNfWlis6/GNL55gDrP8QMxPr4neiSqtPB7Eh0LCzjiOhgMKW58AL2T9ka2UtzzSuB5Dn9ZaODxONgOHfon1DbE9JK2Wv8nzu12sP4MEaO4C83FA5WVew/DpGRJH+2/WBpPt70Igj5XM= 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 704111FB; Mon, 4 Mar 2024 01:51:11 -0800 (PST) Received: from [10.57.10.152] (unknown [10.57.10.152]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id B11203F738; Mon, 4 Mar 2024 01:50:31 -0800 (PST) Message-ID: <0be630f0-ce8e-4a80-b42f-697ea603cfc6@arm.com> Date: Mon, 4 Mar 2024 09:50:31 +0000 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: [PATCH v5 8/8] mm: huge_memory: enable debugfs to split huge pages to any order. Content-Language: en-US To: Zi Yan Cc: "Pankaj Raghav (Samsung)" , linux-mm@kvack.org, "Matthew Wilcox (Oracle)" , David Hildenbrand , Yang Shi , Yu Zhao , "Kirill A . Shutemov" , Ryan Roberts , =?UTF-8?Q?Michal_Koutn=C3=BD?= , Roman Gushchin , Zach O'Keefe , Hugh Dickins , Luis Chamberlain , Andrew Morton , linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kselftest@vger.kernel.org, Mark Brown References: <20240226205534.1603748-1-zi.yan@sent.com> <20240226205534.1603748-9-zi.yan@sent.com> <082e48c8-71b7-4937-a5da-7a37b4be16ba@arm.com> <7E498B77-6CC9-4FC6-B980-D79EEC548CD0@nvidia.com> <0685EC19-CDB8-4CD3-BC39-82DE59B5D10C@nvidia.com> From: Aishwarya TCV In-Reply-To: <0685EC19-CDB8-4CD3-BC39-82DE59B5D10C@nvidia.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 01/03/2024 21:10, Zi Yan wrote: > On 1 Mar 2024, at 15:02, Zi Yan wrote: > >> On 1 Mar 2024, at 14:37, Zi Yan wrote: >> >>> On 1 Mar 2024, at 4:51, Aishwarya TCV wrote: >>> >>>> On 26/02/2024 20:55, Zi Yan wrote: >>>>> From: Zi Yan >>>>> >>>>> It is used to test split_huge_page_to_list_to_order for pagecache THPs. >>>>> Also add test cases for split_huge_page_to_list_to_order via both >>>>> debugfs. >>>>> >>>>> Signed-off-by: Zi Yan >>>>> --- >>>>> mm/huge_memory.c | 34 ++++-- >>>>> .../selftests/mm/split_huge_page_test.c | 115 +++++++++++++++++- >>>>> 2 files changed, 131 insertions(+), 18 deletions(-) >>>>> >>>> >>>> Hi Zi, >>>> >>>> When booting the kernel against next-master(20240228)with Arm64 on >>>> Marvell Thunder X2 (TX2), the kselftest-mm test 'split_huge_page_test' >>>> is failing in our CI (with rootfs over NFS). I can send the full logs if >>>> required. >>>> >>>> A bisect (full log below) identified this patch as introducing the >>>> failure. Bisected it on the tag "next-20240228" at repo >>>> "https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git". >>>> >>>> This works fine on Linux version 6.8.0-rc6 >>> >>> Hi Aishwarya, >>> >>> Can you try the attached patch and see if it fixes the failure? I changed >>> the test to accept XFS dev as input, mount XFS on a temp folder under /tmp, >>> and skip if no XFS is mounted. >> >> Please try this updated one. It allows you to specify a XFS device path >> in SPLIT_HUGE_PAGE_TEST_XFS_PATH env variable, which is passed to >> split_huge_page_test in run_vmtests.sh. It at least allow CI/CD to run >> the test without too much change. > > OK. This hopefully will be my last churn. Now split_huge_page_test accepts > a path that is backed by XFS and run_vmtest.sh creates a XFS image in /tmp, > mounts it in /tmp, and gives the path to split_huge_page_test. I tested > it locally and it works. Let me know if you have any issue. Thanks. > > -- > Best Regards, > Yan, Zi Hi Zi, Tested the patch by applying it on next-20240304. Logs from our CI with rootfs over nfs is attached below. "Bail out! cannot remove tmp dir: Directory not empty" is still observed. Test run log: # # ------------------------------ # # running ./split_huge_page_test # # ------------------------------ # # TAP version 13 # # 1..12 # # ok 1 Split huge pages successful # # ok 2 Split PTE-mapped huge pages successful # # # Please enable pr_debug in split_huge_pages_in_file() for more info. # # # Please check dmesg for more information # # ok 3 File-backed THP split test done <6>[ 639.821657] split_huge_page (111099): drop_caches: 3 <6>[ 639.821657] split_huge_page (111099): drop_caches: 3 # # # No large pagecache folio generated, please provide a filesystem supporting large folio # # ok 4 # SKIP Pagecache folio split skipped <6>[ 645.392184] split_huge_page (111099): drop_caches: 3 <6>[ 645.392184] split_huge_page (111099): drop_caches: 3 # # # No large pagecache folio generated, please provide a filesystem supporting large folio # # ok 5 # SKIP Pagecache folio split skipped <6>[ 650.938248] split_huge_page (111099): drop_caches: 3 <6>[ 650.938248] split_huge_page (111099): drop_caches: 3 # # # No large pagecache folio generated, please provide a filesystem supporting large folio # # ok 6 # SKIP Pagecache folio split skipped <6>[ 656.500149] split_huge_page (111099): drop_caches: 3 <6>[ 656.500149] split_huge_page (111099): drop_caches: 3 # # # No large pagecache folio generated, please provide a filesystem supporting large folio # # ok 7 # SKIP Pagecache folio split skipped <6>[ 662.044085] split_huge_page (111099): drop_caches: 3 <6>[ 662.044085] split_huge_page (111099): drop_caches: 3 # # # No large pagecache folio generated, please provide a filesystem supporting large folio # # ok 8 # SKIP Pagecache folio split skipped <6>[ 667.591841] split_huge_page (111099): drop_caches: 3 <6>[ 667.591841] split_huge_page (111099): drop_caches: 3 # # # No large pagecache folio generated, please provide a filesystem supporting large folio # # ok 9 # SKIP Pagecache folio split skipped <6>[ 673.172441] split_huge_page (111099): drop_caches: 3 <6>[ 673.172441] split_huge_page (111099): drop_caches: 3 # # # No large pagecache folio generated, please provide a filesystem supporting large folio # # ok 10 # SKIP Pagecache folio split skipped <6>[ 678.726263] split_huge_page (111099): drop_caches: 3 <6>[ 678.726263] split_huge_page (111099): drop_caches: 3 # # # No large pagecache folio generated, please provide a filesystem supporting large folio # # ok 11 # SKIP Pagecache folio split skipped <6>[ 684.272851] split_huge_page (111099): drop_caches: 3 <6>[ 684.272851] split_huge_page (111099): drop_caches: 3 # # # No large pagecache folio generated, please provide a filesystem supporting large folio # # ok 12 # SKIP Pagecache folio split skipped # # Bail out! cannot remove tmp dir: Directory not empty # # # Totals: pass:3 fail:0 xfail:0 xpass:0 skip:9 error:0 # # [FAIL] # not ok 51 split_huge_page_test # exit=1 # # ------------------ Thanks, Aishwarya