Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1087230imm; Tue, 15 May 2018 13:39:12 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpUbVT/I2NAF24JOq6q3ZVtSPeEZJMSJ+ws69PZikk5J2g3veAOFAr5PbF/8ZShAzfV5oPX X-Received: by 2002:a63:43c6:: with SMTP id q189-v6mr13850452pga.123.1526416752882; Tue, 15 May 2018 13:39:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526416752; cv=none; d=google.com; s=arc-20160816; b=qH3s2VAXch+Z1qA02fuGl+dUtfM2rlIKnihgUnv9kNjzoMR3gFJTkBxUDWaY3nKuL5 5vqtGCpoAW9jcimVisHkEZIGenrO039xeOJ0yDhWd/KeCOLbKYS2cJzVSd2R7XDw/taI d34K/k+WbETHbXgtFjfJyRocZntHzd6PwcCiL1YmI9AbuCl6E7o7dNR1prtbFOABy+Fa RVyrz1R55imBqlX5nOW41896JdccV2SxxfEF8isJFPOSSIJtllkCA5RrKpmq+Dv6BeRo F/cQG9KkCeHQifdFsaWGEZiEvdQpFv3U8MBnL5qUbTEbGIkBSRoESi5ERrn/YaiGT4ww j95Q== 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=tLyCnck/8uSdrRmfFWsOwep5wKi06Bx+y41Ro3zj9Yg=; b=Q+k+H5+noed/v7530YdjIm3/fqyDDLHJkeZIcf7bHIwH7CKIF474Ruz+5tmouJKG4d pkTuf0T9/4mf3qusFoS/xymKdBnDvNkZIqG9iA8UrsbtGBWXsP76XvjUMnw4IoxE5vns DspRyqXFfb7TyQx4Bo4Gh9HPadFSlLRt/3Qyf9oIuoZuPgH5Y48KUIzcTM97fZPCAWpI lMUm+67NVlqgcOCF+OlR0fybbsJnfjxJNT7TM0who/He+3yXlzHCyQ7Ibv+Vf9M3o/W5 pBWDnixLkSU0AlNd84KrWMhDRZw0IDdGx/3Xmd4Ga3x12oSrbsEXsrzHk0atT+NlwPwD 16KA== 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 s1-v6si696710pgq.282.2018.05.15.13.38.57; Tue, 15 May 2018 13:39:12 -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 S1752575AbeEOUie (ORCPT + 99 others); Tue, 15 May 2018 16:38:34 -0400 Received: from mx2.suse.de ([195.135.220.15]:52618 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752506AbeEOUid (ORCPT ); Tue, 15 May 2018 16:38:33 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 9D166ACE9; Tue, 15 May 2018 20:38:31 +0000 (UTC) Date: Tue, 15 May 2018 22:38:30 +0200 From: Michal Hocko To: Pavel Tatashin Cc: Steven Sistare , Daniel Jordan , Andrew Morton , LKML , tglx@linutronix.de, Linux Memory Management List , mgorman@techsingularity.net, mingo@kernel.org, peterz@infradead.org, Steven Rostedt , Fengguang Wu , Dennis Zhou Subject: Re: [PATCH v2] mm: allow deferred page init for vmemmap only Message-ID: <20180515203830.GK12670@dhcp22.suse.cz> References: <20180510115356.31164-1-pasha.tatashin@oracle.com> <20180510123039.GF5325@dhcp22.suse.cz> <20180515091036.GC12670@dhcp22.suse.cz> <20180515125541.GH12670@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Tue 15-05-18 11:59:25, Pavel Tatashin wrote: > > This will always be a maze as the early boot tends to be. Sad but true. > > That is why I am not really convinced we should use a large hammer and > > disallow deferred page initialization just because UP implementation of > > pcp does something too early. We should instead rule that one odd case. > > Your patch simply doesn't rule a large class of potential issues. It > > just rules out a potentially useful feature for an odd case. See my > > point? > > Hi Michal, > > OK, I will send an updated patch with disabling deferred pages only whe > NEED_PER_CPU_KM. Hopefully, we won't see similar issues in other places. If we do we will probably need to think more about a more systematic solution. -- Michal Hocko SUSE Labs