Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp1925573lqg; Mon, 4 Mar 2024 07:50:31 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUgCBPNuBCe+dnfVZhuO0vZIAjwObKMdE8eLXEdgvsFnbrGgLCNiiwd5+V9ndnLE6nld2YZMIAFLLlZU1hFhXzEbzHXxDx8JjCi6Djdew== X-Google-Smtp-Source: AGHT+IEnB19eHMhUmRMTbxkP9ItrFDRgehGa4rXhy7/zVbWOi1ezVPWYR8n8DLSn7GTesfmf6Ht2 X-Received: by 2002:a05:6a20:244a:b0:1a0:f096:4ece with SMTP id t10-20020a056a20244a00b001a0f0964ecemr8797623pzc.2.1709567431014; Mon, 04 Mar 2024 07:50:31 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709567431; cv=pass; d=google.com; s=arc-20160816; b=Fa+xygi7T6plLwAh9l00Z8LYIj3bZHwm4lleot11zYYi9SqjOplEFb6HkY6rC6bEKU mhhPtKnHAa8gDej+WG6ZmgO+e8ZIfeoCRDsu33WChmjfYBG17xm7a2QB9B+nML0k+oVW 9wP5EKd6YvsS2Gw8XFPkgsnL9nUucs1PvtqZQGUp9FwOpQXa2eqqdJguxMnsp9snNv/C f1Kuz6FE1y/Q5lawmwdJm00PgzPEajhQu5IQPBabMNJFks/HefDUasuVJ+i2KWZlGdwQ cTN0hi57ZVj8L2eZ2lHuZ+7CHMemtzE71OZXdpB/p2yqi0FUV4KV4KosHrbi5Q3StZFg 2NGA== 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=mmCEnVM/DU/5PiGwCWN2y0vhFBjYWCPhSlSHY5NLSR0=; fh=b2IFfOM/UoQOXzlirGmW3EptH8MlpvyPQYOAMI9PDl0=; b=uilrrHbzCcfeKo72TR7QU8Le7MlgXIhVDeGGg1b/BXmEf9XzUAeX155Mgxk+UAO4Y6 p/525XrNdDuQpznUZ3H9obxwtC/L1uVxDxASQycoRJquAxscCZqld49LOQjikllTDomm KJUz0oeZBl8SRuUlQ4PNYjGW5SDbsEo8WuCNw7a5fmkLsr3h94HuYsb4D+tcUwO+jqq0 4dtezeujhBAGU14JUs36RACavkJtT39s7H7jq4e6lLRNQMPBpAosLkA+nDJN2GY76tka SA85TqOfqMUnZV0yI3b8i17Ievv9juczKd/zhwYfvM9GrmfmVmvu6HKAgytxnW4rep/b tVgA==; 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-90873-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90873-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 c18-20020a63d512000000b005df459686f7si8301852pgg.446.2024.03.04.07.50.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 07:50:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-90873-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-90873-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90873-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 645F42835EB for ; Mon, 4 Mar 2024 15:48:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1C2AB5102B; Mon, 4 Mar 2024 15:44:55 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 60255481AA; Mon, 4 Mar 2024 15:44:52 +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=1709567094; cv=none; b=I40aq04RlO6guk0qUenvPYoz/zdGV8rjYd1UPfokbEuLyN9VqdUnynv2uAWjpEbCKbRinIX1aoRiGG6X+07k9zYkn1rho1zLcdN9fZkP0sYEVKNSBxsd7TGbq8XwjXtdBQPgelSOVciHl+aLglU05hjjGsf/3gLsm7mtbPDhT2M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709567094; c=relaxed/simple; bh=fKPNp1+Rr8iirFvyQf/tnK31uFxjPIs1AXXdgnGOw9I=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=DBFxPyYGnU5R5MyQX8ijn56/DfzOX50Ez9A0lqGx13xCmAPB5/+P3AYkfrnw/I48sXZWJZTzh0P4Cz15SIWclGAL2biKsz1Q+ymOiX7lu/nh80tyT8Gt0dLh0SB8Qj3RFLX7iOvadqxQlCgGTcA/ggxtOSdz1Bef76aX8k7IHOk= 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 E43BDFEC; Mon, 4 Mar 2024 07:45:27 -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 5448A3F73F; Mon, 4 Mar 2024 07:44:48 -0800 (PST) Message-ID: Date: Mon, 4 Mar 2024 15:44:47 +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> <0be630f0-ce8e-4a80-b42f-697ea603cfc6@arm.com> <1829EABB-7966-4686-A5E0-F6B6D26C510E@nvidia.com> From: Aishwarya TCV In-Reply-To: <1829EABB-7966-4686-A5E0-F6B6D26C510E@nvidia.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 04/03/2024 14:58, Zi Yan wrote: > On 4 Mar 2024, at 4:50, Aishwarya TCV wrote: > >> 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. > > Hi Aishwarya, > > Do you have the config file for the CI kernel? And /tmp is also on nfs? > Any detailed information about CI machine environment? I cannot reproduce > the error locally, either on bare metal or VM. Maybe because my /tmp is > not NFS mounted? > Hi Zi, Please find the details below. Hope it helps. Do you have the config file for the CI kernel? - We are using: defconfig+https://github.com/torvalds/linux/blob/master/tools/testing/selftests/mm/config And /tmp is also on nfs? - Yes Any detailed information about CI machine environment? - We are running the test using LAVA device Cavium Thunder X2 (TX2), - We have very similar rootfs as - nfsrootfs: https://storage.kernelci.org/images/rootfs/debian/bullseye-kselftest/20240129.0/arm64/full.rootfs.tar.xz - We are using grub boot method over nfs - Additionally Ryan mentioned "Looks like it is failing because he is trying to delete the temp dir with rmdir() but rmdir() requires the directory to be empty, which it is not." Thanks, Aishwarya >> >> >> 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 > > > -- > Best Regards, > Yan, Zi