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 44AB7C54EE9 for ; Thu, 8 Sep 2022 12:26:59 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D94896B0073; Thu, 8 Sep 2022 08:26:58 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id D45676B0074; Thu, 8 Sep 2022 08:26:58 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C0CE76B0075; Thu, 8 Sep 2022 08:26:58 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id B188A6B0073 for ; Thu, 8 Sep 2022 08:26:58 -0400 (EDT) Received: from smtpin12.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 8DF7A1C752F for ; Thu, 8 Sep 2022 12:26:58 +0000 (UTC) X-FDA: 79888842516.12.DA7FDC5 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by imf02.hostedemail.com (Postfix) with ESMTP id 31E668008F for ; Thu, 8 Sep 2022 12:26:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1662640017; 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=dGKTlWOLxBJbYRVRE+I5qqLpnIQyGsiUrPB3sGw4lVU=; b=QswhbJums2mW6pqKHOUGOLPA1EhuBFktZF29SaHscwPG8Z/0OeE5VOjeJz1fY2WGB63EcW knXZPXdwk8oySxmmjzPBBeZy6lyo4R9R8idxLzB2+vrlAjHz6yKn8nuuOcDF3eeKnLYOcF VB3soG9AhiW4yYgCoSX1HNTC7h6lN1c= Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-672-l_JyX9yRMmCLAiBnutYktA-1; Thu, 08 Sep 2022 08:26:56 -0400 X-MC-Unique: l_JyX9yRMmCLAiBnutYktA-1 Received: by mail-wr1-f70.google.com with SMTP id r23-20020adfb1d7000000b002286358a916so3732850wra.3 for ; Thu, 08 Sep 2022 05:26:56 -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=dGKTlWOLxBJbYRVRE+I5qqLpnIQyGsiUrPB3sGw4lVU=; b=lxsily1CeBSYCGH9hR1vsPq0/QwXWCp3Q2/8XqAR48VrTSo1zgboOI7RE3LkpuLzMj WRwQd5g32Q2Fp5LDk3JmeKHtLG5BpHQIdtCYTy0ULM50mRCULBUfAm18tginvJFBz70z ZOw37uUteweEft5dHBO9s7X6j7vtxDLaH1LbZzRLt8rEZaSEtgtI0jIrEm+V7cTRc3SS mw2oHXHvRzCUy3bhnh7coLSORGxr4b5/LmoiCZn4UwCUbK/RSlKzjJQrUTf+9ks+/Xin prjdXzU6D59sSPmITqcfCNI2igglklN+3u2l3VP1rE9gR/8zUyrFkp0JK7Zq5BaFwxX+ i2AA== X-Gm-Message-State: ACgBeo29Aabt2jGEhUZjvCHnLMOzzzOeraOuODOh1cqfmvVuLZt3sbBr 8mhEefBDQbwl15wTn2yWwMxdTCV28kJicqUYWq2NUw70wOruJrnWk3eaGD5efmCg3v1JXuS2D3q Gm29N5ikP7pM= X-Received: by 2002:adf:f50e:0:b0:228:de89:dace with SMTP id q14-20020adff50e000000b00228de89dacemr4947677wro.354.1662640015554; Thu, 08 Sep 2022 05:26:55 -0700 (PDT) X-Google-Smtp-Source: AA6agR4RLyX4rOipcAbCH56Y0xAwRcokhe1SoGCFXHd1n8wkSJRF61CuC2m0VpD6vfB+0QLA3PtNBw== X-Received: by 2002:adf:f50e:0:b0:228:de89:dace with SMTP id q14-20020adff50e000000b00228de89dacemr4947666wro.354.1662640015331; Thu, 08 Sep 2022 05:26:55 -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 by14-20020a056000098e00b0021e4829d359sm1622306wrb.39.2022.09.08.05.26.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 08 Sep 2022 05:26:54 -0700 (PDT) Message-ID: Date: Thu, 8 Sep 2022 14:26:54 +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 4/4] memblock tests: add generic NUMA tests for memblock_alloc_try_nid* To: Rebecca Mckeever , Mike Rapoport , linux-mm@kvack.org, linux-kernel@vger.kernel.org References: <3644b4e2e459bb656dd29bdef0b62291528b2f65.1662264560.git.remckee0@gmail.com> From: David Hildenbrand Organization: Red Hat In-Reply-To: <3644b4e2e459bb656dd29bdef0b62291528b2f65.1662264560.git.remckee0@gmail.com> 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-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1662640018; a=rsa-sha256; cv=none; b=QxIlzYpkAc9Z9ByevKMCHqEYrHquq3yPOnqroTFwF+2j8a9VWoLU6rQtfQrhFs5J/5WYNX QLIwLtbDl5FShZwyGPPi5vr2GJc9uXrHtmXORjqszrUwZp57ryu1HhmJkOAw1tcVB1NoMb z/bBhHhhJ2RGrARDBVSPTwobSLAMB64= ARC-Authentication-Results: i=1; imf02.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=QswhbJum; spf=pass (imf02.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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1662640018; 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=dGKTlWOLxBJbYRVRE+I5qqLpnIQyGsiUrPB3sGw4lVU=; b=Rpnau7aFiMCDfphktstFtKHhOsqISjtO+DTOFhwAwbHfIoIVkXHvssKFtyziSPCb3b+tk+ wnRon37H1X49px1pjYpE7pxm3kHQl6XOOmRbYDhlL7CO2nw+1PTqehzeoAy1KRognG3X46 Tdg8k8rUg1drYVa85F17xMmoNnb0dYE= Authentication-Results: imf02.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=QswhbJum; spf=pass (imf02.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-Stat-Signature: uj5wtm4i8cuk5ffxfydm6etfofxmaphi X-Rspam-User: X-Rspamd-Server: rspam10 X-Rspamd-Queue-Id: 31E668008F X-HE-Tag: 1662640018-290746 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000027, 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, two of these tests set nid != NUMA_NO_NODE. All tests are > run for both top-down and bottom-up allocation directions. > > The tested scenarios are: > > Range unrestricted: > - region cannot be allocated: > + none of the nodes have enough memory to allocate the region > > Range restricted: > - region can be allocated in the specific node requested without dropping > min_addr: > + the range fully overlaps with the node, and there are adjacent > reserved regions > - region cannot be allocated: > + nid is set to NUMA_NO_NODE and the total range can fit the region, > but the range is split between two nodes and everything else is > reserved > > Signed-off-by: Rebecca Mckeever > --- > tools/testing/memblock/tests/alloc_nid_api.c | 197 +++++++++++++++++++ > 1 file changed, 197 insertions(+) > Acked-by: David Hildenbrand -- Thanks, David / dhildenb