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 22856C38A02 for ; Mon, 31 Oct 2022 12:42:49 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 5A03E6B0071; Mon, 31 Oct 2022 08:42:49 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 54C8D6B0073; Mon, 31 Oct 2022 08:42:49 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3ED806B0074; Mon, 31 Oct 2022 08:42:49 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 1D6616B0071 for ; Mon, 31 Oct 2022 08:42:49 -0400 (EDT) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id C146780ADD for ; Mon, 31 Oct 2022 12:42:48 +0000 (UTC) X-FDA: 80081208816.05.2D9F0DB Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by imf12.hostedemail.com (Postfix) with ESMTP id 5E50B4000D for ; Mon, 31 Oct 2022 12:42:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1667220167; 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=/wDzFFCX7T53AVS+iS04+j76XbFvyz6+QHrgDDxDK7A=; b=L8yytgwzk7X9pPp5bAuFblVGz1JkkmDMo/2KAqPkA0JfyuNWJcYMsjJLkHqRBWpvMLPqKf uTmOo3PgOXPxaEEhubL6rEUJs8tNPQ9CSeuNpjrka24hIkAyTdTLFxFwzJH2ZWVVFkKKD2 OBu/xCm8upz8aSMSq2YuUS1od16MeEc= 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-299-IObuiJz5Po6ekWq_-A3eFA-1; Mon, 31 Oct 2022 08:42:44 -0400 X-MC-Unique: IObuiJz5Po6ekWq_-A3eFA-1 Received: by mail-wm1-f69.google.com with SMTP id f1-20020a1cc901000000b003cf703a4f08so353697wmb.2 for ; Mon, 31 Oct 2022 05:42:44 -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:message-id:reply-to; bh=/wDzFFCX7T53AVS+iS04+j76XbFvyz6+QHrgDDxDK7A=; b=JBbEGIC2rccxjs2hpp8QONQobORYOvHiK5ZzDTOnc7oy/Uuytn9jrHsqguK0H0pUeC U3q/iHno4Mc4ZrmwhPVAaSwAMsyiY6dqUSA61FByDVSte6VGg7vbxtsAbjQS9OtdkR+9 pp4nx2RQZQjBCSxy+CGgFO6gFEJ+WtD4mbhvFNROQZLbJmvYZNJ5CBUm9BK0RCcwHlii jsrUi7uaZR9ZicsmN9i0J8N2LoOgNAqWwztHz791vodNWvEO+yZ3dCNFTU1tDDf6OLyz OtZmnawUkmDpPkBBIf+1xspq0G2k5LGT1md9EYcwcGVWK9MT904oXFDTjFNniDNxN6nP v/yQ== X-Gm-Message-State: ACrzQf3nh8TfDFMkCeXXLJyUkoro0NMYG1LHMALdSN0F/Ltl5fnKHByu vaLewxP0MJZq/S9QUqcT6+RzRVUufT7XjZ4piGQ+06ml8zFwyuL5breOXZx1rWrjBWzYu7BMxkl PkaL0al2dEPA= X-Received: by 2002:adf:e196:0:b0:236:740f:f234 with SMTP id az22-20020adfe196000000b00236740ff234mr8016263wrb.518.1667220163232; Mon, 31 Oct 2022 05:42:43 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4vyJJNUOEecPJDnCq4lzj4NoVTRhfPhVGMJVfMry+82FAMpSstoJIr9mqo8PZRfvMyTSo4sQ== X-Received: by 2002:adf:e196:0:b0:236:740f:f234 with SMTP id az22-20020adfe196000000b00236740ff234mr8016254wrb.518.1667220162966; Mon, 31 Oct 2022 05:42:42 -0700 (PDT) Received: from ?IPV6:2003:cb:c705:b300:ab9a:1f1f:ddaf:3b1d? (p200300cbc705b300ab9a1f1fddaf3b1d.dip0.t-ipconnect.de. [2003:cb:c705:b300:ab9a:1f1f:ddaf:3b1d]) by smtp.gmail.com with ESMTPSA id ay19-20020a5d6f13000000b00236b2804d79sm7194145wrb.2.2022.10.31.05.42.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 31 Oct 2022 05:42:42 -0700 (PDT) Message-ID: <22a8dc6e-2955-9b5e-7b9b-5f31625fe057@redhat.com> Date: Mon, 31 Oct 2022 13:42:41 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.1 Subject: Re: [PATCH v3 4/5] memblock tests: add generic NUMA tests for memblock_alloc_exact_nid_raw To: Rebecca Mckeever , Mike Rapoport , linux-mm@kvack.org, linux-kernel@vger.kernel.org References: <44611cd9c0939cdf2e3f232298b547efee4d772a.1666203644.git.remckee0@gmail.com> From: David Hildenbrand Organization: Red Hat In-Reply-To: <44611cd9c0939cdf2e3f232298b547efee4d772a.1666203644.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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1667220168; 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=/wDzFFCX7T53AVS+iS04+j76XbFvyz6+QHrgDDxDK7A=; b=Uvu/BZpbmGrY06U6mcEBQNc2el7791HMs3drfAQpkGz3bBPMvJ0im62WXWpX4pZD804mZ2 lk2jvA1m929kW6Ig+0zaXxqLcyRyYv+opzZXUB17ICxjlFlv63fqpdSwIgkR7KvI4Yn8KB MO6QHs0t22DeSgprdCuXGeKNHwZ1HhY= ARC-Authentication-Results: i=1; imf12.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=L8yytgwz; spf=pass (imf12.hostedemail.com: domain of david@redhat.com designates 170.10.129.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=1667220168; a=rsa-sha256; cv=none; b=CkbOGOf3sGX88twlfA1Y9MtsMFoDaeLH/SvPlFc9oh2vlbHrBuFuBvuXZ5TEGN8C2NRLrj J6KR2LVcafNr8ddlRfaH6dZMGF7g18EoVE2x7bsXH8GZQ8V5HPkdwJ8xUWIFABUkhDs9Hc grvFD14VjVbW2WjbRMaiCADaTzve3Zs= Authentication-Results: imf12.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=L8yytgwz; spf=pass (imf12.hostedemail.com: domain of david@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=david@redhat.com; dmarc=pass (policy=none) header.from=redhat.com X-Rspam-User: X-Rspamd-Queue-Id: 5E50B4000D X-Rspamd-Server: rspam03 X-Stat-Signature: 594za64rr861pkjfd4ya8dzbsk4fny6d X-HE-Tag: 1667220168-899620 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 19.10.22 20:34, Rebecca Mckeever wrote: > Add tests for memblock_alloc_exact_nid_raw() where the simulated physical > memory is set up with multiple NUMA nodes. Additionally, all but one 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: > + there are no previously reserved regions, but requested node is > too small > + the requested node is fully reserved > + the requested node is partially reserved and does not have > enough space > + 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: > + range partially overlaps with two different nodes, where the > second node is the requested node > + range overlaps with multiple nodes along node boundaries, and > the requested node starts after max_addr > + 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 > --- Acked-by: David Hildenbrand -- Thanks, David / dhildenb