Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1119234rwb; Sun, 18 Sep 2022 00:39:38 -0700 (PDT) X-Google-Smtp-Source: AMsMyM64qSbDSlMN245uZfGzkumS7HXnzLTrCwAaLpFBdlxfENnZiH/w+WFB91TYUciEIqkSf/CF X-Received: by 2002:a17:90a:1b6e:b0:1f5:1902:af92 with SMTP id q101-20020a17090a1b6e00b001f51902af92mr25023373pjq.238.1663486777911; Sun, 18 Sep 2022 00:39:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663486777; cv=none; d=google.com; s=arc-20160816; b=jpqioWsI5RMMPAe0n+/yWwaNVDfmxSfv1os+tZ8AhybEa7q3udngsEt26rx+um6t3M 6m1qBEUkODpjWVKdj9/ojcAZZni10p9089IaHNmKmYHjxWvoj3Bh084dZGZIJZrPDmz6 T5Nrbz8lb7gtu5SbUnA5b6ukvQQqdYjWwHFt72GTC4qjUFsuvuY20Trdi9Q3bnF2Z/LK MYKt7AUMROLoP0noRlHhQzfdBw8e2wFUEpdcp2PyTsLGPUWeIuNV4s28FXzSCrDfI+j7 9rQAq1jG8k9EtkMzwAI6TjpNgSFEf0J0XqS7RtVWva93vCFMOJSEIDw5OqQJgVnGOhX2 9+TQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=qCa0v5oJRZFX44Hc9lQUURk9vGqkMgp/IEnnubLa538=; b=LfTOHU84QOCeTQaBFX4rRKG7VmTzlL9OahCRqjGYULM7nbLXwdwly7xQYsSzSec1wT 3tVDIoNR1wcQyeL1UVJP7tn/C+dHxd80j0AAhOYVNolKEjJGg+w3WvpjaQMXt0E7MSem MkR/4ymMIxS+B6WJt57O5xKY8xxSymRKb8SLP0o78f3YRgOcOVICL0yWUNL2BWcltrgh B91+iIsvgvUHXm5IWQDlO+aCaONQDJjvahv4CKqeGHc5wUnpaRnHDphqNaR9funarcSr SEe30dcaru34oeCE2dx62+uslO9hVran/jJcz2dj7+TzBM3K8A+eINQpz88QX1LBilPv L4gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Kpk7nMOv; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q18-20020a656a92000000b0042b438eeee1si29481457pgu.148.2022.09.18.00.39.21; Sun, 18 Sep 2022 00:39:37 -0700 (PDT) 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=@kernel.org header.s=k20201202 header.b=Kpk7nMOv; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229505AbiIRHcY (ORCPT + 99 others); Sun, 18 Sep 2022 03:32:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229447AbiIRHcW (ORCPT ); Sun, 18 Sep 2022 03:32:22 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 967C3222B9 for ; Sun, 18 Sep 2022 00:32:21 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 27AF4B80E34 for ; Sun, 18 Sep 2022 07:32:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0D256C433C1; Sun, 18 Sep 2022 07:32:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1663486338; bh=Sz9RGbEOczmoZukIVTYFVfeQaabX+3wQGSh1Zq8l9Nw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Kpk7nMOvNxPCgzfWL8B7YRw+96Of517uH8tWw47I6ow5yZN9RV6ektnF9nRltloQY O9tyz3oX7MLW3H+ssn7TUmmGOIlxYW+uia0t2y0F5Hauiw4qDvk0wXxtaLshNBLKXP gDPss1T13vYRBLg6KEgRUNJfxZAKrQMLnkP32I9oBZBm+TIp+FrQ3JexaneJPivu/3 pFdxQ+PXsslDO+uXSo6aejDoteuMswe9xLwgF1Da/VGtlESU1Ba45E+SkcxtDkWLxY cjZ6Ftc8ATVkLsK54eVVQ0BP4JGyG54mh/Kdk89kkCghmL4m/TFXB/ChKSs5m9CruZ Lod4N+fULyO9Q== Date: Sun, 18 Sep 2022 10:32:05 +0300 From: Mike Rapoport To: Rebecca Mckeever Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, David Hildenbrand Subject: Re: [PATCH v6 0/4] memblock tests: add NUMA tests for memblock_alloc_try_nid* Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 Tue, Sep 13, 2022 at 12:21:08AM -0500, Rebecca Mckeever wrote: > These patches add additional tests for memblock_alloc_try_nid() and > memblock_alloc_try_nid_raw() that use a simulated physical > memory that is set up with multiple NUMA nodes. Additionally, most of > these tests set nid != NUMA_NO_NODE. > > To set up a simulated physical memory with multiple NUMA nodes, patch 1 > introduces setup_numa_memblock(). This function uses a previously > allocated dummy physical memory. It can be used in place of > setup_memblock() in tests that need to simulate a NUMA system. > > These tests are run twice, once for memblock_alloc_try_nid() and once > for memblock_alloc_try_nid_raw(), so that both functions are tested with > the same set of tests. When the tests run memblock_alloc_try_nid(), they > test that the entire memory region is zero. When the tests run > memblock_alloc_try_nid_raw(), they test that the entire memory region is > nonzero. > > Rebecca Mckeever (4): > memblock tests: add simulation of physical memory with multiple NUMA > nodes > memblock tests: add top-down NUMA tests for memblock_alloc_try_nid* > memblock tests: add bottom-up NUMA tests for memblock_alloc_try_nid* > memblock tests: add generic NUMA tests for memblock_alloc_try_nid* > > .../testing/memblock/scripts/Makefile.include | 2 +- > tools/testing/memblock/tests/alloc_nid_api.c | 1466 ++++++++++++++++- > tools/testing/memblock/tests/alloc_nid_api.h | 16 + > tools/testing/memblock/tests/common.c | 31 + > tools/testing/memblock/tests/common.h | 22 +- > 5 files changed, 1524 insertions(+), 13 deletions(-) Applied, thanks! -- Sincerely yours, Mike.