Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp529833ybt; Fri, 26 Jun 2020 05:33:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy2JVuZyFsoqf+Who9isWqDEGQA2lSJ2IWc9vG4CBL41EmKygnFeoI4IuMBvkP+Dp46QXwp X-Received: by 2002:aa7:c790:: with SMTP id n16mr3263661eds.54.1593174793617; Fri, 26 Jun 2020 05:33:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593174793; cv=none; d=google.com; s=arc-20160816; b=RntKrnFuoilWv2o59QwquSLD8kTWCVnYfhPNEsd2geGV2btbrFZOFXM6oFj4BoDaXt gy5yHJbn7t8vG5WHvRBhoukyZzg048MmY58UVG2pjSiv6ogv0WbefjgKA+e4F4DAkaZG xEWmasn6Q69jnwCpxk8NuLhYVtAjsmy87bEMxFMXm78tEji31PeYNwwxZN14+A8C27as kf174LfWPtbl7PRuGX68aKTRRg9/578fJ9r0z9yZHz7q9/8MWxe3FC62Y/3Can7xTuCs JdRh7eQ6Dl74vIxTTIoP5CKVCFdvHHWGg3FIzv931b9AQl2Dx1ZVzuDWSgXby899rnfM ZWQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=FkSkhIGKpDcj+TlcM8AoHQghoVndL1Y6y088Yy8V4pI=; b=s8frCAo7qHPlgtwAznz8WCVnvWVfw593aCW/gy8BGoJEtE7YBGjEA75iaZBOyrKAK+ S8mhnCKI+McFqReZBRyvPccYQ+OLkvLFIVKFLkW+fpvmMqUx4t5qkvpDd06dRBhGBn2Q 0h3ZNkbXOp2tTbmpAkG6sTeIMqeeiv4JGqMly3LLWsbt7+fctvkHEa74ZEBSZzISuyuZ KJdch/6UxOTCD8zP1rHG68sbZtUyB6uKnDvzdBQ3MmICeNrwF2Ec7dhbBc6r/zpR4fun d9123tBwGmDdtaBR0YA+coV1qgDs0t/14JQL90ezrDUYLzQj9jJOC1cY4JIMdN5J8RgH Ne+g== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lb19si15884486ejb.295.2020.06.26.05.32.50; Fri, 26 Jun 2020 05:33:13 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726724AbgFZLoq (ORCPT + 99 others); Fri, 26 Jun 2020 07:44:46 -0400 Received: from 8bytes.org ([81.169.241.247]:50258 "EHLO theia.8bytes.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725836AbgFZLoq (ORCPT ); Fri, 26 Jun 2020 07:44:46 -0400 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) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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