From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3CB96C32771 for ; Sun, 18 Sep 2022 07:32:22 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 4A3F680008; Sun, 18 Sep 2022 03:32:21 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 4535180007; Sun, 18 Sep 2022 03:32:21 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 31B5E80008; Sun, 18 Sep 2022 03:32:21 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 222F180007 for ; Sun, 18 Sep 2022 03:32:21 -0400 (EDT) Received: from smtpin19.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id D8F9D120A69 for ; Sun, 18 Sep 2022 07:32:20 +0000 (UTC) X-FDA: 79924388040.19.17D6B77 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf22.hostedemail.com (Postfix) with ESMTP id 6C133C000C for ; Sun, 18 Sep 2022 07:32:20 +0000 (UTC) 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 dfw.source.kernel.org (Postfix) with ESMTPS id 740F1612DC; Sun, 18 Sep 2022 07:32:19 +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: ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1663486340; a=rsa-sha256; cv=none; b=cc0X6nWrnSbQSJBhiHsirMyrZEngaz3uOXOhNW/IJ7ukLR8VdIt0+s+ThQPgVxfIepb32z +SzDZLqe5SUpGYQNJ+CyJNoGNc/YRVr5CCp+GaP7MHQOzWuOs6jxao1s+6FhrFPvTKYbCd IewIZqIrJvSgwuGNa9uvr9xbpmN58fk= ARC-Authentication-Results: i=1; imf22.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=Kpk7nMOv; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf22.hostedemail.com: domain of rppt@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=rppt@kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1663486340; h=from:from:sender: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: in-reply-to:in-reply-to:references:references:dkim-signature; bh=qCa0v5oJRZFX44Hc9lQUURk9vGqkMgp/IEnnubLa538=; b=N2NADvgHw/RRdVI1oecAlLAxa/NvSd/QhOBkRB/VPL7Z60AtAaBZr8RUfHVYVGFPaUQjRM 6hxNQJ8SMTUL2QJFglEnlR0fD5nVVE5u+0BpGzZn5XK98ChvjRNIZZ1MwrUar2baSDiEM/ Lx7csC86FJZ66fOTZ6VN1kV4QoU5xkc= X-Rspam-User: X-Rspamd-Server: rspam11 X-Rspamd-Queue-Id: 6C133C000C Authentication-Results: imf22.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=Kpk7nMOv; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf22.hostedemail.com: domain of rppt@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=rppt@kernel.org X-Stat-Signature: z7zdm3jejzrr81gspdistiaiqd7nsexq X-HE-Tag: 1663486340-620856 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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.