Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp576760rwn; Thu, 8 Sep 2022 06:06:46 -0700 (PDT) X-Google-Smtp-Source: AA6agR6ix50PgPRTMG1I9oV5kHODoaKaTR+lJJ2hP1FWK1pMry9Lc7dRxCHWoENOvFfQriJ4wMSK X-Received: by 2002:a63:f34e:0:b0:42b:4017:fb11 with SMTP id t14-20020a63f34e000000b0042b4017fb11mr7822615pgj.13.1662642406409; Thu, 08 Sep 2022 06:06:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662642406; cv=none; d=google.com; s=arc-20160816; b=AHQBtY+qvt15lJaavxwu7r0fQ+HO2TWtDehiyqvQW7APZo28dr5fDvrKRChq0/Kb9P mxWdIxp1F1CRtzwEc0Skak91hujLBa3+X+pXR5qbn+uFEWXpntwQDqsbNV8ydGBB5KOX q7iO0xTtT/Hb76MZXFgVJZ7/o3ujKC8M5w+Jp+d14Q/1QCOiACJdKgJTfbfzyOGBOeb9 9DVppWEaRH4UtpjHSI4iLbPl79EpHuvfpj7msqs77J/QE59rqTckDsVELi+puNHMLfI9 Rfwe3M9AcuqI/8bGc1ITPtSMfBTJNttpx/Q9/0t8CznlcH/yI02v3lEBx2g0arlfkzPi WfnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:references:to:content-language:subject:user-agent :mime-version:date:message-id:dkim-signature; bh=ljVEaXF428z2LXt8TxR00ttSDkE8DJv1cjDz3q325ZI=; b=WQXv7LZZTx851X4x4qsBSn3vmnh0mppRB+e6yBMKFFeAd7/Z1/WPnE9UAdtbr9UlcY FKqsLtOLlE4uoQTdKH29zFZNrSMVKN+f2DfyofE82dRVI4Y/sEdxLiyfxNjeKb8cVqZ9 uVLPRQ9juCQ/k5Xk/uoXdSfRKAcMJrWYVh1NBoCKOmCDXvdKUZVMDqh3xCwWjn0RDifP vMRPyrcJS4ZdAZZDarE8pIC8u7n6AEgYEhlADaFqZQdbacnvoppspxwR9RrqznN06mcC t2tNxOMucq7Lse/KaqEuKj442uXE/9E+XlrS1PqOK0XVqHFDw3f72dw+qkQvV73KEQsC voYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Rc3eoaz1; 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 a185-20020a624dc2000000b00535ed30d44esi15742278pfb.78.2022.09.08.06.06.23; Thu, 08 Sep 2022 06:06:46 -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=@redhat.com header.s=mimecast20190719 header.b=Rc3eoaz1; 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 S231822AbiIHM0h (ORCPT + 99 others); Thu, 8 Sep 2022 08:26:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231825AbiIHM00 (ORCPT ); Thu, 8 Sep 2022 08:26:26 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3354DE5812 for ; Thu, 8 Sep 2022 05:26:23 -0700 (PDT) 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-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-550-ilbVNFWwPlWOtUVVpDOMuw-1; Thu, 08 Sep 2022 08:26:20 -0400 X-MC-Unique: ilbVNFWwPlWOtUVVpDOMuw-1 Received: by mail-wm1-f70.google.com with SMTP id h4-20020a1c2104000000b003b334af7d50so484636wmh.3 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=wRhgtupHEUTyMDGQ/M67mE1AyvNGgPSkrMUOtx/c/wo9ZKk1y0PhTH2VUTt/sJGaH7 NKi0sxMWM/N9WbVnZxYqvun6mJNRNyiRrgwAbNjVuVd33uoaxWRCo74QTR1NTD+KRwhx rmoqSP8m4XieVhLxvDky170AFNVSb+zlzRJhk2xtaDCen8aIstbFh8jfgj7dIGHamdo9 3SW76L5zd0T6Ze5GAt5pOSPl9UKTdD9XXnJnogOn5MKHxCciVqwwn9xarHeXh9Tu5Kvm RvAI3WqRhblDaaS0+g9/ZB5t6JugYtRfgJ9tURKTJ2ILCPjcdKYK5sdC0CZ6lRouC0G6 fJuw== X-Gm-Message-State: ACgBeo1RyWp3n6ScEtA5+dG13GYewCLeN1bVybBYmxh6cDHYx5hTPlfg ijWwPZVgSa1swMUw0FAzttSBGagdQZFAx11dkAo6TFNybKwjB1IJUtmzXNZax/VxJ2WFwSl7jY7 dXDDvAlOfWRXfpPCL8pSu9vQp X-Received: by 2002:a05:6000:188a:b0:226:f057:43bb with SMTP id a10-20020a056000188a00b00226f05743bbmr5094053wri.647.1662639979321; Thu, 08 Sep 2022 05:26:19 -0700 (PDT) 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* Content-Language: en-US To: Rebecca Mckeever , Mike Rapoport , linux-mm@kvack.org, linux-kernel@vger.kernel.org References: From: David Hildenbrand Organization: Red Hat In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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 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