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 X-Spam-Level: X-Spam-Status: No, score=-1.0 required=3.0 tests=MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6C9A5C43331 for ; Fri, 3 Apr 2020 10:01:25 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 377A720757 for ; Fri, 3 Apr 2020 10:01:25 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 377A720757 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id C1EF28E0008; Fri, 3 Apr 2020 06:01:24 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id BD00F8E0007; Fri, 3 Apr 2020 06:01:24 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id AE52F8E0008; Fri, 3 Apr 2020 06:01:24 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0041.hostedemail.com [216.40.44.41]) by kanga.kvack.org (Postfix) with ESMTP id 9410B8E0007 for ; Fri, 3 Apr 2020 06:01:24 -0400 (EDT) Received: from smtpin27.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id 4E5E3181AC553 for ; Fri, 3 Apr 2020 10:01:24 +0000 (UTC) X-FDA: 76666101288.27.heat79_c3ce07336915 X-HE-Tag: heat79_c3ce07336915 X-Filterd-Recvd-Size: 3685 Received: from mail-wr1-f66.google.com (mail-wr1-f66.google.com [209.85.221.66]) by imf27.hostedemail.com (Postfix) with ESMTP for ; Fri, 3 Apr 2020 10:01:23 +0000 (UTC) Received: by mail-wr1-f66.google.com with SMTP id m17so7741760wrw.11 for ; Fri, 03 Apr 2020 03:01:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=jYXQbnu/Oi974qhNjSFy5pRIJC0tTSSAvVWrXVkMiaM=; b=eqR9EZyxq1+qewWmjjXHAbwZqWaUuItp8e96pWjkF7GUu/kJ/n/o6K+Qro2trimWxk AM49jMedEYzsZ1h4An9OFVn/3dt1RxFi+lhD1lq/pJs2Ebsd2vYgDq/HzMCu8cNFxNtz aAyNIpU7RjTJncEq0GhYD1r7GbAfTAmxKwA3JGUO1KAuZoMx8wQTnPoMKawfFwgxdU/d 03RMaj3sV+zxeTu5wfg5sYr589UD/quA4pVBfAg6svjjGbIKuUJhcI0u3dwKxOlM66xw 08xJxk/Rw2XaacvzswfiCrBxWOunx27JjiDwTg9RFP+xuV5lYM10FsnAF81zsmtCrSSF ojWA== X-Gm-Message-State: AGi0PuY03TUnAnRH41hIluOiKzvpkdkatVAPSr0thasjzk7m5We9I/6l 3yE9SgjLxcEd/Ti9mP1DBzA= X-Google-Smtp-Source: APiQypLgiYupoXaD9R5zABwqMgbYZI0KQAYTivfAw3CSUMkXzEfl/iXsdKbvlVPO+gTJwGowyftDIg== X-Received: by 2002:adf:f401:: with SMTP id g1mr7876035wro.140.1585908082788; Fri, 03 Apr 2020 03:01:22 -0700 (PDT) Received: from localhost (ip-37-188-180-223.eurotel.cz. [37.188.180.223]) by smtp.gmail.com with ESMTPSA id z129sm10951833wmb.7.2020.04.03.03.01.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Apr 2020 03:01:21 -0700 (PDT) Date: Fri, 3 Apr 2020 12:01:20 +0200 From: Michal Hocko To: Aslan Bakirov Cc: Ira Weiny , Aslan Bakirov , akpm@linux-foundation.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, kernel-team@fb.com, riel@surriel.com, Roman Gushchin , hannes@cmpxchg.org Subject: Re: [PATCH v3] mm: cma: NUMA node interface Message-ID: <20200403100120.GY22681@dhcp22.suse.cz> References: <20200403021254.2842224-1-aslan@fb.com> <20200403050205.GI3952565@iweiny-DESK2.sc.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Fri 03-04-20 10:51:32, Aslan Bakirov wrote: > On Fri, Apr 3, 2020 at 6:02 AM Ira Weiny wrote: > > > On Thu, Apr 02, 2020 at 07:12:56PM -0700, Aslan Bakirov wrote: > > > I've noticed that there is no interfaces exposed by CMA which would let > > me > > > to declare contigous memory on particular NUMA node. > > > > > > This patchset adds the ability to try to allocate contiguous memory on > > > specific node. It will fallback to other nodes if the specified one > > > doesn't work. > > > > > > Implement a new method for declaring contigous memory on particular node > > > and keep cma_declare_contiguous() as a wrapper. > > > > Is there an additional patch which uses this new interface? > > > > Generally the patch seems reasonable but we should have a user. > > > Thanks for the comments. Yes, actually, this is the version 3 of first > patch ([PATCH 1/2] mm: cma: NUMA node interface) > of patchset. Second patch, which uses this interface is "[PATCH 2/2] mm: > hugetlb: Use node interface of cma" It would have been much more clear to send those two patches together as you can see. -- Michal Hocko SUSE Labs