Received: by 10.192.165.148 with SMTP id m20csp1085587imm; Thu, 10 May 2018 05:31:09 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoxH/1F8PLFu7yCHnnTHC5tgXhbvx3kzMbZ1uKPpThzZzIktf99FQNluO1JKswHRKs7YeZw X-Received: by 2002:a63:2b46:: with SMTP id r67-v6mr995237pgr.89.1525955469040; Thu, 10 May 2018 05:31:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525955469; cv=none; d=google.com; s=arc-20160816; b=vImfxJUHrTZ1ghZ1AR2RMv+PwAzAOQk7rdQ7A4icaqRuiuQIkiwLDoA2peLhIi7uXw Py/L3xMW31L2/XgFZ6dBJhfBTjoDZdujglpQFLsC9SbP4I4y8vtx11UQL8KmZ3AcSkPv YWQ3lEnY1mpertnxxW3cqR5J2oqhDf3uoMosA37iSd4aj2zJtNvf7DF7kouSp282dtPz ueDswQIRUXiozqVLdcLykvEcW8xvMoeU06qt8yK25g0C5DeJ2O7OfCPt2ZJB03NtwkWB F8SwbN7G/fufb1EWIP1Id6zWZiC3iqVyevJhmcu/zCq3Egb1myg1s1ZC4twq2L4XUeo9 kCTA== 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:arc-authentication-results; bh=E/55i/zvwXwifqvb5rI20hlTFrozcHC+/KDeXlc1zxU=; b=cF6x7EaShM+ZSh+I1FbVWll1ean/l95OUvjIx7cB2A0IuNEXEuNXoTxTYsacBe9ejB 3sfQvPyTUDTBQTylpC3F5nY2ylWpPR0Vl5dBKR7EFCJJfYVEIL/bMAXxhkp62hAEnfDe uxJN4zRf9kziLkDW/m8fHho0Sn1+FHz+JjHxAiFLY/HOEF3r2DnZ9sRU8hMmcJVZhJ6I SXG9tA3hCQ+9epABP2URqZjq25eIW0cz5SBQrFcQHor+zLSPY7DfI5ZMBNrNMfV9F+wj t9ngeswz5GnbJjcL9HyUePH+ntJriU3hW5a2wRPnFiIckoBbjYM+sJigm5dFRMd88AhK 48LA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i188-v6si612794pgc.414.2018.05.10.05.30.52; Thu, 10 May 2018 05:31:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757318AbeEJMan (ORCPT + 99 others); Thu, 10 May 2018 08:30:43 -0400 Received: from mx2.suse.de ([195.135.220.15]:40680 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756741AbeEJMam (ORCPT ); Thu, 10 May 2018 08:30:42 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 58540AE66; Thu, 10 May 2018 12:30:40 +0000 (UTC) Date: Thu, 10 May 2018 14:30:39 +0200 From: Michal Hocko To: Pavel Tatashin Cc: steven.sistare@oracle.com, daniel.m.jordan@oracle.com, akpm@linux-foundation.org, linux-kernel@vger.kernel.org, tglx@linutronix.de, linux-mm@kvack.org, mgorman@techsingularity.net, mingo@kernel.org, peterz@infradead.org, rostedt@goodmis.org, fengguang.wu@intel.com, dennisszhou@gmail.com Subject: Re: [PATCH v2] mm: allow deferred page init for vmemmap only Message-ID: <20180510123039.GF5325@dhcp22.suse.cz> References: <20180510115356.31164-1-pasha.tatashin@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180510115356.31164-1-pasha.tatashin@oracle.com> User-Agent: Mutt/1.9.5 (2018-04-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu 10-05-18 07:53:56, Pavel Tatashin wrote: [...] > Here is a sample path, where translation is required, that occurs before > mm_init(): > > start_kernel() > trap_init() > setup_cpu_entry_areas() > setup_cpu_entry_area(cpu) > get_cpu_gdt_paddr(cpu) > per_cpu_ptr_to_phys(addr) > pcpu_addr_to_page(addr) > virt_to_page(addr) > pfn_to_page(__pa(addr) >> PAGE_SHIFT) Thanks that helped me to see the problem. On the other hand isn't this a bit of an overkill? AFAICS this affects only NEED_PER_CPU_KM which is !SMP and DEFERRED_STRUCT_PAGE_INIT makes only very limited sense on UP, right? Or do we have more such places? -- Michal Hocko SUSE Labs