Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp352836rdb; Tue, 23 Jan 2024 01:23:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IETGpBRiz86xv309bAx0IGvZnc9Qwl7+FXJsvsQPiZ0CXTJYIJ1vA2qFtATV607TxeDahY4 X-Received: by 2002:a17:907:7e91:b0:a30:334a:b8d4 with SMTP id qb17-20020a1709077e9100b00a30334ab8d4mr1353365ejc.233.1706001828699; Tue, 23 Jan 2024 01:23:48 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706001828; cv=pass; d=google.com; s=arc-20160816; b=QHOg1wfi4R5UrLf7ytB8C9n5y6n8NFzcTipiab3CtEhJdsduYjz/cNLojM1zwDmkTo I8u03f3KVG9qGrpNUCS5LTEuxJN3p6AIRM/ZCZ/xj1MWYqCBav/7yEqajTY0iFtoCto8 /KHEmbM5bdUr/HBhOnhKpWK/OCsli6IuGcWbKZf5vrcZ70Shil3Uww0eHqzT6RI9w9gS 3IEqy5PHlkQUCBErOC6gBwyxEmiFVd7/j4kFmBgFYqn3QMZnH5LAvBzBI+nPRpQ82++x fmVWidBTwKwqWR+H3D7SSOzEI3Cvsfrsa5/wa8gDLLZkepTHt+0qZ5fOGkwY0GmZPtz1 SdMw== 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=DTApP4S1k3dEXWJmniLixmtmKRLIlj4SKR16HBfOec0=; fh=rEWxQiE8LUz8NXzUts2E/ciwC2tP8uEW9yjJ6V9FJao=; b=sANiI1DWwkSPg6v4V55+2HUSfBkZHUZujhNWmLBNEcSMkrXLEW63UWKsXWYC5BGQz+ RPjOYyvt6Ko7oJpLaYjES5/4htGip2JeFh4yjsvYTHYw6tfjJzpsLwatjCA1Pz/yQYVJ hdUYWXaSpFBxxBmF3+aCqyrP/PayBSbAHvW+wNQvvzPWCPJC3CgMAQCgSoih+10BpJky kiTIbPjtYFB19CEGFvOxkAD2OrmVI4mLPu31i5sswFRzlDBMkF5jLw5P8NiOEW8lWTpn L+x2zqZnAR1gYm0HFoxQcspgowhSZlvSsGyP+Yq+Z4UBOc9DXmy2qtCYyV7faelol47A O94Q== 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-34991-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-34991-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id c24-20020a170906171800b00a2cebb4ad80si10636818eje.322.2024.01.23.01.23.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 01:23:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-34991-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; 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-34991-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-34991-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 43B0D1F29C43 for ; Tue, 23 Jan 2024 09:23:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2A08A59B4B; Tue, 23 Jan 2024 09:23:41 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9E2A858ABB; Tue, 23 Jan 2024 09:23:38 +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=1706001820; cv=none; b=EGyLDLEePS3E/ENmp8U3pdV+zau+7UStqXK2jeVWgXG90WxqSBYakQI6JpCHnchKCDHPQxU05wRPwFuWQT2Ch57op0ZSDz51PFl6bdRNFxaJ/YmQw4kdi2L2OqOZG5e3WhjIXlIukTJPaplYsjmqSWex4VvtjvEA0Q3oynf05o0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706001820; c=relaxed/simple; bh=oG2yIczf8/y17txyC32qJgSVw5RnlOFlFIHspGw8Dc0=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=ps3ftugxvtNwcoffhO/pgB9cRKxyxckmw9BWpprq2LLMcTcwgts1AnavwXmzU6G2UceD6CPyBepmspbf0hcvGEr5wTeeemjFe2mEU6LAsxMKIPXxVNjDdQTj+05ytOUOlXxlCQZ771MM4zK6sbmbJz7Dkc244j3UZLi6zCwChWU= 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 7BF331FB; Tue, 23 Jan 2024 01:24:23 -0800 (PST) Received: from [10.57.77.165] (unknown [10.57.77.165]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 1C2423F5A1; Tue, 23 Jan 2024 01:23:36 -0800 (PST) Message-ID: Date: Tue, 23 Jan 2024 09:23:35 +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] selftests/mm: run_vmtests.sh: add missing tests Content-Language: en-GB To: Muhammad Usama Anjum Cc: kernel@collabora.com, linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Andrew Morton , Shuah Khan References: <20240116090641.3411660-1-usama.anjum@collabora.com> <06d796a1-1ae2-4f97-8fd6-0e3529ae2799@arm.com> From: Ryan Roberts In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 23/01/2024 07:51, Muhammad Usama Anjum wrote: > On 1/22/24 2:59 PM, Ryan Roberts wrote: >>>>> +CATEGORY="hugetlb" run_test ./hugetlb-read-hwpoison >>>> >>>> The addition of this test causes 2 later tests to fail with ENOMEM. I suspect >>>> its a side-effect of marking the hugetlbs as hwpoisoned? (just a guess based on >>>> the test name!). Once a page is marked poisoned, is there a way to un-poison it? >>>> If not, I suspect that's why it wasn't part of the standard test script in the >>>> first place. >>> hugetlb-read-hwpoison failed as probably the fix in the kernel for the test >>> hasn't been merged in the kernel. The other tests (uffd-stress) aren't >>> failing on my end and on CI [1][2] >> >> To be clear, hugetlb-read-hwpoison isn't failing for me, its just causing the >> subsequent tests uffd-stress tests to fail. Both of those subsequent tests are >> allocating hugetlbs so my guess is that since this test is marking some hugetlbs >> as poisoned, there are no longer enough for the subsequent tests. >> >>> >>> [1] https://lava.collabora.dev/scheduler/job/12577207#L3677 >>> [2] https://lava.collabora.dev/scheduler/job/12577229#L4027 >>> >>> Maybe its configurations issue which is exposed now. Not sure. Maybe >>> hugetlb-read-hwpoison is changing some configuration and not restoring it. >> >> Well yes - its marking some hugetlb pages as HWPOISONED. >> >>> Maybe your system has less number of hugetlb pages. >> >> YEs probably; What is hugetlb-read-hwpoison's requirement for size and number of >> hugetlb pages? the run_vmtests.sh script allocates the required number of >> default-sized hugetlb pages before running any tests (I guess this value should >> be increased for hugetlb-read-hwpoison's requirements?). >> >> Additionally, our CI preallocates non-default sizes from the kernel command line >> at boot. Happy to increase these if you can tell me what the new requirement is: > I'm not sure about the exact requirement of the number of hugetlb for these > tests. But I specify hugepages=1000 and tests work for me. 1000 hugepages @2M is ~2G, which is quite a big ask for small arm systems. And for big arm systems that use 64K base pages, the default hugepage size is 512M, so 1000 of those is 512G which is also quite a big ask. So I'd prefer not to make 1000 hugepages the requirement. Looking at the test, I think its using 8 default sized hugepages; But supporting it properly is still complex as the HWPOISON operation is destructive. I'll reply with more detail against the v2 patch. > > I've sent v2 [1]. Would it be possible to run your CI on that and share > results before we merge that one? > > [1] > https://lore.kernel.org/all/20240123073615.920324-1-usama.anjum@collabora.com > >> >> hugepagesz=1G hugepages=0:2,1:2 hugepagesz=32M hugepages=0:2,1:2 >> default_hugepagesz=2M hugepages=0:64,1:64 hugepagesz=64K hugepages=0:2,1:2 >> >> Thanks, >> Ryan >> >