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 3150FC54EE9 for ; Thu, 8 Sep 2022 12:26:23 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id BC0666B0072; Thu, 8 Sep 2022 08:26:22 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id B6F516B0073; Thu, 8 Sep 2022 08:26:22 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A104E8D0001; Thu, 8 Sep 2022 08:26:22 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 8F27F6B0072 for ; Thu, 8 Sep 2022 08:26:22 -0400 (EDT) Received: from smtpin26.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 5B62D1C0054 for ; Thu, 8 Sep 2022 12:26:22 +0000 (UTC) X-FDA: 79888841004.26.7AF437D Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by imf11.hostedemail.com (Postfix) with ESMTP id E2C3040071 for ; Thu, 8 Sep 2022 12:26:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1662639981; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ljVEaXF428z2LXt8TxR00ttSDkE8DJv1cjDz3q325ZI=; b=Rc3eoaz1UnSSdvaD0l3Okmp50lhX1B0ztfwDJeUvqbomhahduHsr/+FlXWY4ajo+QjEZkJ a6uBF6CAO8SWwhypMLlBvl3+Z3T8KCJO1HhJfCimhulILsO/qtNj8tsINVdGyNiZEkHT7C 9J1GwL1i53k00VaKOQxgTBZP78Q/EH4= Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-522-Ct0rr1LCPf2Am98p91xCnA-1; Thu, 08 Sep 2022 08:26:20 -0400 X-MC-Unique: Ct0rr1LCPf2Am98p91xCnA-1 Received: by mail-wm1-f69.google.com with SMTP id n7-20020a1c2707000000b003a638356355so8441711wmn.2 for ; Thu, 08 Sep 2022 05:26:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:organization:from:references :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date; bh=ljVEaXF428z2LXt8TxR00ttSDkE8DJv1cjDz3q325ZI=; b=mtzVGtV8G27MuE6mMfAEinE7rMqaMrnTdkTD+XrdaC7fw0wiEksRxgBEYdrrTLcjAq FGUcpjtGW214iVdsWibJFq097udoOH4zmHdt9h48r930pCNDVjJp+uM85R3UM8Uok7po VxlgdXpdg2x6Mhl/9SFQVvrkcSjdLDPj4uqICh16G0DlJryZ7tjbnM/318D6avpNMTbT XiyKPVuz2EuMbpmFABX8b972crF78OtmwBebJpNrImOV6KPTB2v5LeiRk7hFKw8/weVt o5E5jqsbj0TJ9K6G8anlgrQ896OXW/JkAKMkDKPr9QFjm/1plXxhDKkFIvJ5dyd690dQ QYWA== X-Gm-Message-State: ACgBeo1ZK/AXHE5mk7eqzR4tReKfJWo0ApSXK4lQvPOlA2g57C0lWe+/ BR6byTgpXcr1b7VZG2pBF24zG38hjqX1ds9KSwyJU2gqCIPQdwZXLuvv/ZHehoqYKcXHBt3gX7b 4WSufq6QMRxQ= X-Received: by 2002:a05:6000:188a:b0:226:f057:43bb with SMTP id a10-20020a056000188a00b00226f05743bbmr5094052wri.647.1662639979321; Thu, 08 Sep 2022 05:26:19 -0700 (PDT) X-Google-Smtp-Source: AA6agR5LOaBHCbLDHBhiBwqUR0qoVAM1VYRbQXxvDhFMeWeWnyPj5OVlpXGh+I5PauuckYp2ewt7nA== X-Received: by 2002:a05:6000:188a:b0:226:f057:43bb with SMTP id a10-20020a056000188a00b00226f05743bbmr5094046wri.647.1662639979105; Thu, 08 Sep 2022 05:26:19 -0700 (PDT) Received: from ?IPV6:2003:d8:2f0d:ba00:c951:31d7:b2b0:8ba0? (p200300d82f0dba00c95131d7b2b08ba0.dip0.t-ipconnect.de. [2003:d8:2f0d:ba00:c951:31d7:b2b0:8ba0]) by smtp.gmail.com with ESMTPSA id i4-20020a05600c354400b003a5ea1cc63csm3032964wmq.39.2022.09.08.05.26.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 08 Sep 2022 05:26:18 -0700 (PDT) Message-ID: Date: Thu, 8 Sep 2022 14:26:18 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.0 Subject: Re: [PATCH v4 3/4] memblock tests: add bottom-up NUMA tests for memblock_alloc_try_nid* To: Rebecca Mckeever , Mike Rapoport , linux-mm@kvack.org, linux-kernel@vger.kernel.org References: From: David Hildenbrand Organization: Red Hat In-Reply-To: X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1662639981; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=ljVEaXF428z2LXt8TxR00ttSDkE8DJv1cjDz3q325ZI=; b=QjpJJZ9pRWhza3PI1kPD9lRyqC7c3Sor+kfuSZmCGkaMRLZi8utk/w+UG/Mo5NKLMuVTCz vxz/OPKOC0Q3rLsdaqiEfXTK4p3WN4ereesNe+0vAK2/b5zm+SgA7P5SGlkgqX1jW1v6YJ 9qj6K3tCgJZkTEFbzOAmwGUvwbLQ95A= ARC-Authentication-Results: i=1; imf11.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=Rc3eoaz1; spf=pass (imf11.hostedemail.com: domain of david@redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=david@redhat.com; dmarc=pass (policy=none) header.from=redhat.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1662639981; a=rsa-sha256; cv=none; b=zl5B5FgzP2hY1VP4c4WgYf0u6pSvCxSyezrzgecMO612Xzi2vF9bOdRXcnXmbW9Jr4ePga dbU2UW0jkXGDLYiVq61r3HYB96PRRNSew6OYfCj97hwYgdL3fZwjpddw4UHw/tFH1+9wgm DsemAmoUrIDUGHeV9PiXSb6UnQOha2Q= X-Rspam-User: Authentication-Results: imf11.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=Rc3eoaz1; spf=pass (imf11.hostedemail.com: domain of david@redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=david@redhat.com; dmarc=pass (policy=none) header.from=redhat.com X-Rspamd-Queue-Id: E2C3040071 X-Rspamd-Server: rspam03 X-Stat-Signature: seuiggzapuewe7hc3eppkuewsyqwt6rn X-HE-Tag: 1662639981-951017 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 04.09.22 06:21, Rebecca Mckeever wrote: > Add tests for memblock_alloc_try_nid() and memblock_alloc_try_nid_raw() > where the simulated physical memory is set up with multiple NUMA nodes. > Additionally, all of these tests set nid != NUMA_NO_NODE. These tests are > run with a bottom-up allocation direction. > > The tested scenarios are: > > Range unrestricted: > - region can be allocated in the specific node requested: > + there are no previously reserved regions > + the requested node is partially reserved but has enough space > - the specific node requested cannot accommodate the request, but the > region can be allocated in a different node: > + there are no previously reserved regions, but node is too small > + the requested node is fully reserved > + the requested node is partially reserved and does not have > enough space > > Range restricted: > - region can be allocated in the specific node requested after dropping > min_addr: > + range partially overlaps with two different nodes, where the first > node is the requested node > + range partially overlaps with two different nodes, where the > requested node ends before min_addr > - region cannot be allocated in the specific node requested, but it can be > allocated in the requested range: > + range overlaps with multiple nodes along node boundaries, and the > requested node ends before min_addr > + range overlaps with multiple nodes along node boundaries, and the > requested node starts after max_addr > - region cannot be allocated in the specific node requested, but it can be > allocated after dropping min_addr: > + range partially overlaps with two different nodes, where the > second node is the requested node > > Signed-off-by: Rebecca Mckeever > --- > tools/testing/memblock/tests/alloc_nid_api.c | 568 +++++++++++++++++++ > 1 file changed, 568 insertions(+) Acked-by: David Hildenbrand -- Thanks, David / dhildenb