Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1639893rwb; Wed, 16 Nov 2022 22:52:00 -0800 (PST) X-Google-Smtp-Source: AA0mqf5MbTaMwQmPJPuNUZaU3T5i1sx1zoCKhg569/Ah/rSvBPjfUBMtV2u9W57pPK/FqPbm6DVv X-Received: by 2002:a17:906:f02:b0:799:a731:b44d with SMTP id z2-20020a1709060f0200b00799a731b44dmr1025063eji.405.1668667920368; Wed, 16 Nov 2022 22:52:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668667920; cv=none; d=google.com; s=arc-20160816; b=RROLQlLPkRjRMoPm/aYftVlzdAfOv70yv+EUCZLgj+e9tgz77/9NVOicfq6hkr9QXK VICAG2MVYhZRIVYs5C6wmEmAmh6k0yTLx8WKQl4Z7wbeZeHmWq5YhurwtfSeWUDC3L/g JVrS5zQrk8BxVqEw1RjatC9KT57BxUb3xbufLRlZH+cETXiI56SgTN6zi3GDD/cfIVdm WBFSBuigi5TwBiwU9tDsVCZ4lSOpe8PPfs/E0uucHrGpGjYvyWYs84DgfeFXu339QFXL IFG9qESRdCbDfnPmByobfLA3E03ScT1qmDSIw4ev1BLe1MyDo+FoCjAnCWBMh/231mfW HlVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=77jIXkhrtwqKo94Wqd6nfY0jOcIj75IUYbToBjS3apo=; b=OdHc/TEZv456NRfqzSe8YkKHK9NwS8ym4EkJJIET+H2BrNxcdeBGxndD2hf9HanZFD A+d92wSuVynm4Sj9SAdx/FeGT5Sm1GSbQn6uawExGz1PrmMvaaxALCE71mMc5Z1Jtpuh Ik3Ae6jz61XRJcTbhjFMhiHOtQcLXT0KJZXgk7pC3y69vz+zax00KhsDjlaDWqYzBa2K CWj5LDc8oXgPj3SAbKm4PfSCnGhYHiPy6RpY6CQ4GB2gYHPlrNVJCIxJ07kne52PxBna UYHbRjS5PBs1SZyEghJc0dMyU/KbAOjj5mqvfHvJy1TBW5ldspyPbkwSeAJb6oa83cHM CLJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=WWU1RpAR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w4-20020a05640234c400b0045cd68a2bc5si296232edc.17.2022.11.16.22.51.39; Wed, 16 Nov 2022 22:52:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=WWU1RpAR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234664AbiKQGbm (ORCPT + 91 others); Thu, 17 Nov 2022 01:31:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232809AbiKQGbl (ORCPT ); Thu, 17 Nov 2022 01:31:41 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E10730F70 for ; Wed, 16 Nov 2022 22:30:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1668666641; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=77jIXkhrtwqKo94Wqd6nfY0jOcIj75IUYbToBjS3apo=; b=WWU1RpARVrD6uUtA+Z7kSccVQx+mBbhZPiTe5qWDWe8mjGwbNrsTqcwgpUNqjr5hzwqlQU 3V9sqLmNvsKFINufAfjaWcNPv9kZFHEU7VSfBqcYZ6odBzG/37vHEZYsf9WaJgzl4UFSf9 dhfqgqp7yn4fLyPQwjhZdzLUI0thphw= Received: from mail-qt1-f198.google.com (mail-qt1-f198.google.com [209.85.160.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-375-CRrwlddmPzefAxow6mk3fw-1; Thu, 17 Nov 2022 01:30:39 -0500 X-MC-Unique: CRrwlddmPzefAxow6mk3fw-1 Received: by mail-qt1-f198.google.com with SMTP id b20-20020ac844d4000000b003a542f9de3dso893211qto.7 for ; Wed, 16 Nov 2022 22:30:39 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=77jIXkhrtwqKo94Wqd6nfY0jOcIj75IUYbToBjS3apo=; b=R+XxtqMe0dfSTuiuzkw2Da9rigvdZq16DefYqxGycaYUNu5OB69+fhul0M+K7a4rT7 2BZm2skWiKsITWOM3uvEjBCnptAvdM7QAEFHU7bEGC0cbEeJEW/gH16f58R1DXEhNfmT UeNMrY5OpCmIotP0CGuRK7SWtazmMZw1WVeLHlj8cA0VWVmhmEZTPHqPBonPfmHHLfF6 lE2JBio7Pgmbb1vUp4NBmlIXDB7u1xdIsDmKnfOF3etCX1hBDqhHYu7ZuXEaqbi2yZuE /RNdF409o7wsPNOH/yDF5ffEXvxN+/ETdeTvMxSx4PQ4Psaa2LDFF7DKbVx2z43OdxeV 8Alg== X-Gm-Message-State: ANoB5pkIEwGgLodwCELgk9lxHS219NzQ2qN5LHeM6N6dnaJTSyjnfl5d AyQXUQAShS4LX+jlq7ugsL8WCo9RXgqs9QnV+3U6kJOmvTjLYaqFZndM6pLTmW+o5j3e63z8Vzf CYfOO57hFHzBPGB0th5I4QvKdxdafxHse5Mq4XISu X-Received: by 2002:a05:6214:5bc2:b0:4c6:5a5f:3068 with SMTP id lr2-20020a0562145bc200b004c65a5f3068mr1218584qvb.118.1668666639151; Wed, 16 Nov 2022 22:30:39 -0800 (PST) X-Received: by 2002:a05:6214:5bc2:b0:4c6:5a5f:3068 with SMTP id lr2-20020a0562145bc200b004c65a5f3068mr1218566qvb.118.1668666638872; Wed, 16 Nov 2022 22:30:38 -0800 (PST) MIME-Version: 1.0 References: <20221028132640.2791026-1-jsavitz@redhat.com> <20221108163124.a54f932f8f79f9c1d6e63903@linux-foundation.org> In-Reply-To: From: Joel Savitz Date: Thu, 17 Nov 2022 02:30:23 -0400 Message-ID: Subject: Re: [PATCH linux-next] selftests/vm: calculate variables in correct order To: Andrew Morton Cc: linux-kernel@vger.kernel.org, Shuah Khan , David Hildenbrand , Nico Pache , linux-mm@kvack.org, linux-kselftest@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 16, 2022 at 8:09 PM Joel Savitz wrote: > > On Tue, Nov 8, 2022 at 8:31 PM Andrew Morton = wrote: >> >> On Fri, 28 Oct 2022 09:26:40 -0400 Joel Savitz wrot= e: >> >> > commit b5ba705c2608 ("selftests/vm: enable running select groups of te= sts") >> > unintentionally reversed the ordering of some of the lines of >> > run_vmtests.sh that calculate values based on system configuration. >> > Importantly, $hpgsize_MB is determined from $hpgsize_KB, but this late= r >> > value is not read from /proc/meminfo until later, causing userfaultfd >> > tests to incorrectly fail since $half_ufd_size_MB will always be 0. >> > >> > Switch these statements around into proper order to fix the invocation >> > of the userfaultfd tests that use $half_ufd_size_MB. >> >> Does this fix address the failure in >> https://lkml.kernel.org/r/202211021026.61b267d1-yujie.liu@intel.com? >> >> Thanks. >> > > I have tried to reproduce this failure on a couple of different systems b= efore and after the application of this commit but I haven't had any succes= s in doing so. I suspect that there was some sort of hugepage configuration= issue on the test system but I'd have to look into it more to be sure. > > However, I noticed that on the mm-everything branch, the hugepage-mmap te= st fails: > > # ./run_vmtests.sh -t "hugetlb" > running: ./hugepage-mmap > ----------------------- > running ./hugepage-mmap > ----------------------- > Open failed: No such file or directory > [FAIL] > ... > > It appears this is due to commit 0796c7b8be84 ("selftests/vm: drop mnt po= int for hugetlb in run_vmtests.sh") > as the test still replies on the ./huge mountpoint removed in that commit= . The test passes before that patchset is applied. > > Additionally, I just noticed an extraneous 'echo "running: $1"' line in r= un_test(), the effects of which are seen above, and I have just sent a patc= h to remove it. > > Joel Resending this reply since it appears a bit of HTML slipped into the last reply and it got rejected by the lists.