Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2887416lqz; Wed, 3 Apr 2024 11:19:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVPvGVJ22vQK1dek5yGP1yp7L7BdfKySpH9xCd3DLYXWC3Cz5ikdtagA/isMQ1HQrjkYgAlh5zLgUOEvrr2uf/78NHqx8qoAmVaUxyJkg== X-Google-Smtp-Source: AGHT+IGVnD6PvuAjeC+lV5rZEDPFYylpIaJCEMq6wBqgCU5J0KjrHiYhjNyqUn2Y6lzexDJ7/pS+ X-Received: by 2002:a05:6870:c087:b0:220:8b8f:fc4d with SMTP id c7-20020a056870c08700b002208b8ffc4dmr84418oad.39.1712168376485; Wed, 03 Apr 2024 11:19:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712168376; cv=pass; d=google.com; s=arc-20160816; b=KY4mcKcU4vN8iqXANCV3bNg3tQKdlkbeoK2Ir7Defbp/GvxGEaIYOFvh0Dxm71vpRz 9lNPFUQkladZIFeA6D9HPgdYZcutaUps+SEr4RH+VX9imWItsLn/P2mmkJrK7MxGMEbf amRc8A+0/KrN2EFxq9+IJhaL1GG/L9rbn36jhZlva4U0YaV2L391ttnwGqPV/zA6dV9w ZcLG6CwyweLRFsi8cMcGDF2L7YKICitIuerKMCuBruQeKwxv3cZzJdOdy9fvHTHyvqzO U12gXkzTd8kxetorBhpcDU4kfmuRqLvsNNoKJl2f1bDqspVINW4B+ReiNvu8zJqEyjPl 3dBA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=xdeUv3Ofjr2iqkst/jH7iP0eOxc0lfoJcFP/WPP4Da8=; fh=2zqUDUi0u+gYwn3KAXfgZBCZsAVDzYkhZBs0VZ6kGFM=; b=Z1c4gu2aFLA22oz39ipriwTFAGs+z6nkeigIJdeZRB9Br9wKU9BuDax2Qxhtmd7BN6 vnOfah2O+IhMXz5KJLQh+j8Yz8MIOHRQtro9CRRLaStU+tPGxPKlgwHSyantu1AZWItM 8ZMbpvgRQRRsVdF1KXpeAprkus3EbVc1N+CIPjIXW33HBx88VqoZP/uZesTk7gHM5JS2 ovmXld3RfNRNLGLcN55NGTx/NLlX/rb5FL/Sx4kANFIXg9RRn7KGMAVezFZh3w04u1V5 I+rRw6h++krcDvODRNXW67GjloQlfc9vFdbqJSfVMB9JoyR24y2GniS41SSx+SQp5NpK QoBQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=NUn2RWIH; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-130432-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130432-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id b18-20020a05620a119200b0078bdcec08a7si8737095qkk.167.2024.04.03.11.19.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 11:19:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-130432-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=NUn2RWIH; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-130432-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130432-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 253151C21A60 for ; Wed, 3 Apr 2024 18:19:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BBA03153572; Wed, 3 Apr 2024 18:19:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="NUn2RWIH" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 67BDA152DF0 for ; Wed, 3 Apr 2024 18:19:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712168369; cv=none; b=bF6gBxWhaWa1pMPPAlkry0v0ptZS6A297KKfpZmDcJwpv5pmEEIna0lJVeConNORqscAPR7m8shI+BxTnU4Fy4KGqMh4ch4SVEIEszDs0LV8yWWneTehJdc9CX6G84ASpNRizQnOzRDTS8AvywbCC9QkSmhs7CvQiK3mywi9jO0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712168369; c=relaxed/simple; bh=rbR2FKkHDQVwqEiEdZlkVNBjzTI0TMlrIpI+c+AB13A=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=PaflO7kNdqHazef1TPA9KmTokZJRYFaCeONheGS2Dwsw57eAPF89OzrDH0wWmzWZ4BZ4OuRCzQ1wZyGOWeX7Jzx/IBdJBf6xU2JnbNZuOx+0eJ0TOY/F0SGQOqe5eeaF3CVQHPLLK7ZfhyJ5bnlksvSRFdADuuQMyrKbbONnRZw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=NUn2RWIH; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1712168366; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=xdeUv3Ofjr2iqkst/jH7iP0eOxc0lfoJcFP/WPP4Da8=; b=NUn2RWIHCk2nZogVkzbCR8HWXGAriwl8iVsOU8ZoEyi9M8o0YcYAfSzTHvnnUj9TAoPGZ/ 6Xlzm1UZHrIS5qE91QE9FeD2pFZNC8olfLK8d6mSEOen0CRf2nvfah2omgyd4+Md5jqzcD GFFwaTfqlh+WpUSMx2lv9NBNjdovo8c= Received: from mail-oo1-f72.google.com (mail-oo1-f72.google.com [209.85.161.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-538-Lh1zHIUQMj2bCvaXZsb-Mw-1; Wed, 03 Apr 2024 14:19:24 -0400 X-MC-Unique: Lh1zHIUQMj2bCvaXZsb-Mw-1 Received: by mail-oo1-f72.google.com with SMTP id 006d021491bc7-5a4d25f4795so35143eaf.0 for ; Wed, 03 Apr 2024 11:19:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712168364; x=1712773164; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=xdeUv3Ofjr2iqkst/jH7iP0eOxc0lfoJcFP/WPP4Da8=; b=c3Hx3bMFOHWbcMTQmQ3tHwAz+ccpzmJCbMzyOwrieKwcFT65xbvneHrZALTr0ocjYy RxC0L3W4y7lEvhSzIIQmCBi+N6kgvmR9K0gmk0Lcpd13d1YWYeyIrFLq/HN1DA9lHBxm vZPcRFvdHiJN2P1gnd8K8sHQw/+cU/l5bgdj3ldz3shiuq+7seysnmojoXHrYWlwOOuG xpadtlG9DudZlYzDpcD1ZU7o8lx+BFoRMftKpYzH4sk11h+JUHr8Ya2CdcXU1uxCGaHn ZJCaP3M2wUYq9NeB57HL5IoobzusV9N6MXppGGImgvV7+q6PZmJdWqpbtHRcrj3W5Pkh O3cw== X-Forwarded-Encrypted: i=1; AJvYcCVIv6Pl3t5GHi0hEbC8YaCBsrkPisCPkZXmG45Gw1B7ytJYUE1mEcwRGWgMsihpqG8Xdoz8WXCzxIMcU0NIw1voTSXSMN/ygdDn8kl9 X-Gm-Message-State: AOJu0Yz1efqwns9OVNxpdO6hbW45w0mCwNfSySNyrgAeoeIHs/seVRvc VtGEgQG6/2ijdMgY3gKihikX5/1lLfVtBZvKsjRBC2msjupPFKgqgGRTIMttABZx/Il2ZG7rXE0 n+UEGv56fv8nvuEh+PnliwFcmUDKPmGDganaHhgtz89Qme2UwPMDKGOcrsmCTYA== X-Received: by 2002:a05:6820:ec6:b0:5a6:2c6b:d3b with SMTP id en6-20020a0568200ec600b005a62c6b0d3bmr207971oob.0.1712168363824; Wed, 03 Apr 2024 11:19:23 -0700 (PDT) X-Received: by 2002:a05:6820:ec6:b0:5a6:2c6b:d3b with SMTP id en6-20020a0568200ec600b005a62c6b0d3bmr207951oob.0.1712168363366; Wed, 03 Apr 2024 11:19:23 -0700 (PDT) Received: from x1n ([99.254.121.117]) by smtp.gmail.com with ESMTPSA id fa13-20020a05622a4ccd00b00430bc1186aesm6767744qtb.28.2024.04.03.11.19.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 11:19:23 -0700 (PDT) Date: Wed, 3 Apr 2024 14:19:19 -0400 From: Peter Xu To: Ryan Roberts Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrew Morton , Muhammad Usama Anjum , David Hildenbrand , Nico Pache , Muchun Song Subject: Re: [PATCH] selftests/mm: run_vmtests.sh: Fix hugetlb mem size calculation Message-ID: References: <20240321215047.678172-1-peterx@redhat.com> <1c20b717-c5b5-4bdf-8fcd-d46db135b7fa@arm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1c20b717-c5b5-4bdf-8fcd-d46db135b7fa@arm.com> On Wed, Apr 03, 2024 at 12:04:00PM +0100, Ryan Roberts wrote: > > diff --git a/tools/testing/selftests/mm/run_vmtests.sh b/tools/testing/selftests/mm/run_vmtests.sh > > index c2c542fe7b17..b1b78e45d613 100755 > > --- a/tools/testing/selftests/mm/run_vmtests.sh > > +++ b/tools/testing/selftests/mm/run_vmtests.sh > > @@ -152,9 +152,13 @@ done < /proc/meminfo > > # both of these requirements into account and attempt to increase > > # number of huge pages available. > > nr_cpus=$(nproc) > > -hpgsize_MB=$((hpgsize_KB / 1024)) > > -half_ufd_size_MB=$((((nr_cpus * hpgsize_MB + 127) / 128) * 128)) > > Removing this has broken the uffd-stress "hugetlb" and "hugetlb-private" tests > (further down the file), which rely on $half_ufd_size_MB. Now that this is not > defined, they are called with too few params: Those FAILs can be burried in some other libc mismatch issues for me so I overlooked.. My apologies. I'll send a fixup soon, thank you Ryan! -- Peter Xu