From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E1F231F4C83; Fri, 28 Feb 2025 17:38:00 +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=1740764282; cv=none; b=dMzWdqTwbYTPi9PA3wXDeKpLJwsN/4VkNvYfHoPu1uGOuzCpCh6T8TjKIg2oi7xqnus+kHI7dkTJfUJDH/jgWBA+aMCstloo4ta5RuxrDBxKR5O6mxk/3FCmJO/xBAfikrnW5I34Tu73p96YWbEMI4iuPQ2gJDHkTNNAE7c7EVY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740764282; c=relaxed/simple; bh=SA0RC7kf4CsS5bAun1FM+VziZZ6BzHtIUNfIuiovJuc=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=AbM7WDJSnZNFG4x2qnL5+N37D926EGUVmLqwmwQyAgYDWMSO4UarPGEMTqYgLdIIZqfGSK5LolfZHp4g9O/lUtRCpAlnV5Jd/dyz5/KUK4qmsA2WGOTQ8b5mSztfAGS6xGG8ylAmtGiEsNsZIou7FPtjzJms07NUyBXqbjfdNOw= 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 6DB1B150C; Fri, 28 Feb 2025 09:38:15 -0800 (PST) Received: from [10.163.40.175] (unknown [10.163.40.175]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 8874D3F6A8; Fri, 28 Feb 2025 09:37:55 -0800 (PST) Message-ID: <1c3003a7-5dce-45a5-a4a8-32349ff7f06d@arm.com> Date: Fri, 28 Feb 2025 23:07:52 +0530 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 v3 06/10] selftests/mm: Don't fail uffd-stress if too many CPUs To: Brendan Jackman , Lorenzo Stoakes , Andrew Morton , Shuah Khan Cc: linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Mateusz Guzik References: <20250228-mm-selftests-v3-0-958e3b6f0203@google.com> <20250228-mm-selftests-v3-6-958e3b6f0203@google.com> Content-Language: en-US From: Dev Jain In-Reply-To: <20250228-mm-selftests-v3-6-958e3b6f0203@google.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 28/02/25 10:24 pm, Brendan Jackman wrote: > This calculation divides a fixed parameter by an environment-dependent > parameter i.e. the number of CPUs. > > The simple way to avoid machine-specific failures here is to just put a > cap on the max value of the latter. > > Suggested-by: Mateusz Guzik > Signed-off-by: Brendan Jackman > --- Reviewed-by: Dev Jain