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=-2.5 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 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 444DCC433E0 for ; Fri, 26 Jun 2020 11:44:48 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 1E26220B1F for ; Fri, 26 Jun 2020 11:44:48 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1E26220B1F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=8bytes.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 9B15A6B000E; Fri, 26 Jun 2020 07:44:47 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 9610C6B0010; Fri, 26 Jun 2020 07:44:47 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 84F476B0022; Fri, 26 Jun 2020 07:44:47 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 68F056B000E for ; Fri, 26 Jun 2020 07:44:47 -0400 (EDT) Received: from smtpin05.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 11E0A180AD806 for ; Fri, 26 Jun 2020 11:44:47 +0000 (UTC) X-FDA: 76971181014.05.foot81_330e3a526e55 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin05.hostedemail.com (Postfix) with ESMTP id E5BA3180279B9 for ; Fri, 26 Jun 2020 11:44:46 +0000 (UTC) X-HE-Tag: foot81_330e3a526e55 X-Filterd-Recvd-Size: 1628 Received: from theia.8bytes.org (8bytes.org [81.169.241.247]) by imf29.hostedemail.com (Postfix) with ESMTP for ; Fri, 26 Jun 2020 11:44:46 +0000 (UTC) Received: by theia.8bytes.org (Postfix, from userid 1000) id E39DE391; Fri, 26 Jun 2020 13:44:44 +0200 (CEST) Date: Fri, 26 Jun 2020 13:44:43 +0200 From: Joerg Roedel To: Peter Zijlstra Cc: Joerg Roedel , x86@kernel.org, hpa@zytor.com, Dave Hansen , Andy Lutomirski , Andrew Morton , Steven Rostedt , linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH] x86/mm: Pre-allocate p4d/pud pages for vmalloc area Message-ID: <20200626114443.GS3701@8bytes.org> References: <20200626093450.27741-1-joro@8bytes.org> <20200626110731.GC4817@hirez.programming.kicks-ass.net> <20200626111711.GO14101@suse.de> <20200626113101.GG4817@hirez.programming.kicks-ass.net> <20200626113215.GG117543@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200626113215.GG117543@hirez.programming.kicks-ass.net> User-Agent: Mutt/1.10.1 (2018-07-13) X-Rspamd-Queue-Id: E5BA3180279B9 X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam01 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, Jun 26, 2020 at 01:32:15PM +0200, Peter Zijlstra wrote: > That is, this is boot time only, right? clone() would return -ENOMEM, as > it's part of the normal page-table copy. Yes, the pre-allocation happens shortly after the buddy allocator took over from bootmem. I don't quite get what clone() has to do with it. Joerg