Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp3518156pxu; Mon, 19 Oct 2020 14:15:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwwg/2nPv5o8Vj535QZVp+8+Z/Am9dWJYXvMqgjD2O2n0F9jw6U2yPe3Ja+o8DcQqq+XVZA X-Received: by 2002:aa7:de06:: with SMTP id h6mr1776081edv.31.1603142158919; Mon, 19 Oct 2020 14:15:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603142158; cv=none; d=google.com; s=arc-20160816; b=RhbrSulRLuMY38FBsak8PEmmacGpG/GudHEcJ0JWvhKkbHSPBVgAh9/XHI5RuYVsL+ MZrp45SeYHYLBWWQidGluWNNwMI6hg4dbGRkl+8BzBwDYacjxixvBfo9WK8S0E9cBkUZ uCrPFNR/gVX3V6Zucrtfcjz0wYdqD8EYHbQKNOp3Me2Tp/XE/9/8V/SPTP0tdp6UKZxO ccnOjNZ8ZcuYbLOTf3Wd1fdcZjBXe5k52ZVrlpd+l3ShxYRdv/Lvq6oRHK5+8gMn+wdH Q4+ZQZCKBGeSaKUux/z2RTtK1ws8n/NfmhL4MqwzI/bFHcmDCpFYA9sK9+3NjBTs0T4U GerQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=FEKPB4snOSkqBmKGW8dBmQAjeECE74VzXBwN9BjxkeI=; b=TceNZBsDhCsm9w+Wfp1AedUntRNmTpnCdkTA9GJpDfzlnm4mbQEP4qSeW7ZjAxYPTR d6XuDQpy+bElEI/xvnVxShJyJK+kzJP5dlPrTqI3X4f2c7vCxU4ui6I/4wHOB4isjjzk eSYs36p3yRZdEQeHXlNcbDwisqCcGSdVzaa+oXZd7iEU5J6qrtslwlowxTVqFjUzQf76 pK18WA3m3KHNywT43NNQE4tpSfX/+funjYaHAjqIL/8D0YwAscpTx8xm5XRXQnOo36o7 Q2WBdbuz9nhWcJUw6zD/tlmE63Pc0/SSXjpNBNLiRNGQAscRERjMSR3KENrGwmBBjCOR dJIg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n15si760594ejx.538.2020.10.19.14.15.36; Mon, 19 Oct 2020 14:15:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727409AbgJSHOr convert rfc822-to-8bit (ORCPT + 99 others); Mon, 19 Oct 2020 03:14:47 -0400 Received: from smtp.h3c.com ([60.191.123.50]:43295 "EHLO h3cspam02-ex.h3c.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727223AbgJSHOr (ORCPT ); Mon, 19 Oct 2020 03:14:47 -0400 Received: from DAG2EX01-BASE.srv.huawei-3com.com ([10.8.0.64]) by h3cspam02-ex.h3c.com with ESMTPS id 09J7EToK036675 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 19 Oct 2020 15:14:29 +0800 (GMT-8) (envelope-from tian.xianting@h3c.com) Received: from DAG2EX03-BASE.srv.huawei-3com.com (10.8.0.66) by DAG2EX01-BASE.srv.huawei-3com.com (10.8.0.64) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Mon, 19 Oct 2020 15:14:31 +0800 Received: from DAG2EX03-BASE.srv.huawei-3com.com ([fe80::5d18:e01c:bbbd:c074]) by DAG2EX03-BASE.srv.huawei-3com.com ([fe80::5d18:e01c:bbbd:c074%7]) with mapi id 15.01.2106.002; Mon, 19 Oct 2020 15:14:31 +0800 From: Tianxianting To: Michal Hocko CC: "cl@linux.com" , "penberg@kernel.org" , "rientjes@google.com" , "iamjoonsoo.kim@lge.com" , "akpm@linux-foundation.org" , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , "kuba@kernel.org" , "alexei.starovoitov@gmail.com" Subject: RE: [PATCH] mm: Make allocator take care of memoryless numa node Thread-Topic: [PATCH] mm: Make allocator take care of memoryless numa node Thread-Index: AQHWoHLpCFmBht8fWEyQ1LSKDhVJgamTi1oAgAnlFDCAAJVdAIAAh0lA Date: Mon, 19 Oct 2020 07:14:31 +0000 Message-ID: <20b7b8ae56894985a1ac0187426bc248@h3c.com> References: <20201012082739.15661-1-tian.xianting@h3c.com> <20201012150554.GE29725@dhcp22.suse.cz> <10ae851702e346369db44e1ec9c830fb@h3c.com> <20201019070644.GB27114@dhcp22.suse.cz> In-Reply-To: <20201019070644.GB27114@dhcp22.suse.cz> Accept-Language: en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.99.141.128] x-sender-location: DAG2 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-DNSRBL: X-MAIL: h3cspam02-ex.h3c.com 09J7EToK036675 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thanks Michal, Yes, it is the commit bffed457160ab. Sorry I forgot to paste it in my previous reply. -----Original Message----- From: Michal Hocko [mailto:mhocko@suse.com] Sent: Monday, October 19, 2020 3:07 PM To: tianxianting (RD) Cc: cl@linux.com; penberg@kernel.org; rientjes@google.com; iamjoonsoo.kim@lge.com; akpm@linux-foundation.org; linux-mm@kvack.org; linux-kernel@vger.kernel.org; kuba@kernel.org; alexei.starovoitov@gmail.com Subject: Re: [PATCH] mm: Make allocator take care of memoryless numa node On Sun 18-10-20 14:18:37, Tianxianting wrote: > Thanks for the comments > I found in current code, there are two places to call > local_memory_node(node) before calling kzalloc_node(), I think we can > remove them? I am not sure which code you are talking about. git grep shows me 2 places in blk-mq code (e.g. bffed457160ab) and that looks quite bogus to me. Bring that up with the respective maintainer and Raghavendra. The changelog doesn't really describe any problem, if there is any. But from the allocator semantic point of view memory less nodes are to be expected and the allocator should fallback to the proper node. As long as __GFP_THISNODE is not enforced of course. -- Michal Hocko SUSE Labs