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=-3.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,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 D7CF5C433E0 for ; Tue, 16 Feb 2021 08:15:55 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 596D464DC3 for ; Tue, 16 Feb 2021 08:15:55 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 596D464DC3 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=suse.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id CA2E18D0157; Tue, 16 Feb 2021 03:15:54 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id C52678D0140; Tue, 16 Feb 2021 03:15:54 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B40B78D0157; Tue, 16 Feb 2021 03:15:54 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0217.hostedemail.com [216.40.44.217]) by kanga.kvack.org (Postfix) with ESMTP id 9A95B8D0140 for ; Tue, 16 Feb 2021 03:15:54 -0500 (EST) Received: from smtpin12.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 68D742479 for ; Tue, 16 Feb 2021 08:15:54 +0000 (UTC) X-FDA: 77823422628.12.wash73_2201ea327642 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin12.hostedemail.com (Postfix) with ESMTP id 3F59118010A67 for ; Tue, 16 Feb 2021 08:15:54 +0000 (UTC) X-HE-Tag: wash73_2201ea327642 X-Filterd-Recvd-Size: 4394 Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by imf44.hostedemail.com (Postfix) with ESMTP for ; Tue, 16 Feb 2021 08:15:53 +0000 (UTC) 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 In-Reply-To: Content-Transfer-Encoding: quoted-printable 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 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=EF=BC= =9FIf 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. >=20 > 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. --=20 Michal Hocko SUSE Labs