Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp5527650pxb; Tue, 16 Feb 2021 00:19:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJxiPNF4NwXzf0uW/+8QG8VOv22NKajo5JaE2WYvI3FdBWTLmO0cLykZab8vLZuWoT9Lmlph X-Received: by 2002:a17:906:2803:: with SMTP id r3mr4792503ejc.50.1613463552412; Tue, 16 Feb 2021 00:19:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613463552; cv=none; d=google.com; s=arc-20160816; b=M6lmpQU/o0LdNU1CAyWp1vxLizuzyUB8uikZQuiL/IZEvvg8ClOi+MPtOJdneZnoaO /ntk4h2dDj0xTqC47jIS1+WrcOmhJ74XanTro7nIc+Ss/7+JFHFc722xB3YbhHkUDSfP F0i5ZpLTphJ77sv9+sLIUlErafUiPQ52vxa9Fxk1XZDDTYfbPBUnHzM8II9WxCrwwfWW li7b6N8oyyyP4dtezBIrqcXMG0Y0FsZQ6YElMdgbEPaEd7llgCjp5MDqdQxfHXnmreNT MTvRqnjp0ooU7+V5kM1oIMBEzrg0H63WcKW7vzCHJRoeJ4LZld/hUILvo07Etkatg5+8 aWQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Cd6iBVx8TLBh3eG8PbSuUvtxi0546CjvNoO2Rg8UJbo=; b=sG7w4MvDp6bJFLKEjTnRN6vC2YAEtQGF/8hQPbalvCPHZK9L+0+Xt5/ywUvhgaZggW WXWVgQYIlxy1tkIlbDpIVwaJA1xJiofuO8dUmIMd8HV1OZ1KBu9Njcc0zq4l51qYX2kW SmNnJXcDj7fWT+4S1hLqUm3yNybLvZGQlGxnMj1yr3VJMpk5TXA8j2XYO/RzMt5UU8B4 BvhQBJncHIMA00i2C5FW5ljke+bBimuPbBmOTy/ziGNziA/XfaaJYRiVxQhy8M2qmMWS 3Y72T6nR9KQbQ+nMoG9CjqNixrrDF6yAIejSJtBCvHM3sQT33lQri7DiLrUkJh6CO980 s+UQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=ff0+X2CN; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j19si15343226edw.550.2021.02.16.00.18.49; Tue, 16 Feb 2021 00:19:12 -0800 (PST) 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; dkim=pass header.i=@suse.com header.s=susede1 header.b=ff0+X2CN; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229713AbhBPIRd (ORCPT + 99 others); Tue, 16 Feb 2021 03:17:33 -0500 Received: from mx2.suse.de ([195.135.220.15]:42062 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229916AbhBPIQk (ORCPT ); Tue, 16 Feb 2021 03:16:40 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1613463352; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Cd6iBVx8TLBh3eG8PbSuUvtxi0546CjvNoO2Rg8UJbo=; b=ff0+X2CNo/g34XoaYWYd+6mjjJvmqDexKEitwg62RNGxJPmQENfikjDuVCe9o6D3+xi0C4 fNMneR8n7GZVjxLI/Xk3uP5ivfK1EK6Xk6ErzCnCfwatUiUSJGhX5KRVDUOaGWv+ohz4rF CpFvVsxFEYtZd/aVNMEZbOx56ATbbYY= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 6FCFAB027; Tue, 16 Feb 2021 08:15:52 +0000 (UTC) Date: Tue, 16 Feb 2021 09:15:51 +0100 From: Michal Hocko To: Muchun Song Cc: Jonathan Corbet , Mike Kravetz , Thomas Gleixner , mingo@redhat.com, bp@alien8.de, x86@kernel.org, hpa@zytor.com, dave.hansen@linux.intel.com, luto@kernel.org, Peter Zijlstra , viro@zeniv.linux.org.uk, Andrew Morton , paulmck@kernel.org, mchehab+huawei@kernel.org, pawan.kumar.gupta@linux.intel.com, Randy Dunlap , oneukum@suse.com, anshuman.khandual@arm.com, jroedel@suse.de, Mina Almasry , David Rientjes , Matthew Wilcox , Oscar Salvador , "Song Bao Hua (Barry Song)" , David Hildenbrand , HORIGUCHI =?utf-8?B?TkFPWUEo5aCA5Y+jIOebtOS5nyk=?= , Joao Martins , Xiongchun duan , linux-doc@vger.kernel.org, LKML , Linux Memory Management List , linux-fsdevel Subject: Re: [External] Re: [PATCH v15 4/8] mm: hugetlb: alloc the vmemmap pages associated with each HugeTLB page Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue 16-02-21 12:34:41, Muchun Song wrote: > On Tue, Feb 16, 2021 at 3:39 AM Michal Hocko wrote: [...] > > > Using GFP_KERNEL will also use the current task cpuset to allocate > > > memory. Do we have an interface to ignore current task cpuset?If not, > > > WQ may be the only option and it also will not limit the context of > > > put_page. Right? > > > > Well, GFP_KERNEL is constrained to the task cpuset only if the said > > cpuset is hardwalled IIRC. But I do not see why this is a problem. > > I mean that if there are more than one node in the system, > but the current task cpuset only allows one node. How would that cpuset get a huge pages from a node which is not part of the cpuset? Well, that would be possible if the cpuset was dynamic but I am not sure that such a configuration would be very sensible along with hardwall setup. > If current > node has no memory and other nodes have enough memory. > We can fail to allocate vmemmap pages. But actually it is > suitable to allocate vmemmap pages from other nodes. > Right? Falling back to a different node would be very suboptimal because then you would have vmemmap back by remote pages. We do not want that. -- Michal Hocko SUSE Labs