Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp520015imm; Tue, 15 May 2018 05:19:38 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoaYufObiNcpBZWwMfxaZEIb524LjMWHlWeTCYceWGm8PWFBl/RjEO7FeeeehwJOs8Mrby6 X-Received: by 2002:a63:a41a:: with SMTP id c26-v6mr12242707pgf.311.1526386778009; Tue, 15 May 2018 05:19:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526386777; cv=none; d=google.com; s=arc-20160816; b=zMw7wWkcE7U2RhGw0CQptx/WH8Lp6R3WPYaTxgtP2wRASyyLdoJQQFuJaqaJiHp4sw ZgDKIRFIUcAUxlIHkFArhK9tPH/j9khQCPFjXYbkBliXh0exh0bfzMyXUAwmEtwaCfKE ZR0SDuz0M/OQZ5TxeXipmn/CEZWh3ZGPjq10INozZBPVXDVsUvCwjC+ofAtva8W/ezux Yoft8/LhJX5QzKj3I1Gf9rLJEVOkuHk+1sxwvmNTGcenOI6c4Cc0zxljfHnV5FzRpYJ7 bBoZQV1EDTR7aAj6I1KnIK7KPMaGg/UOZBa9Clh1+ovJEUf35mJKNvJ/otTwIEZfDMpV e5Fw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=zDiQo24Ze8HummTyTVpNCTiH+viKpyIXmeYPAeJtLVE=; b=HMrM1080D7KYrQcq4n1lGjxBFyoyhmjgChIRYE+egpb/PwgS9zFDQWLxrYb8ygdm8c Er8uHkz0+Mp6c52UY8gASPZFfpJMMFfLqTvINnCapHottABA4GBn3fCNZ02kdMAvd29h 8xMIYBcOfsrf0Q3HnoyqOcl7tb4MTGNDfMgtJzvbB8q5wXqWT5NGN5ijY2gQMHf8TLJn YsEl3BHqxsCyZVix7rqdl2VP6hFmnFjHHmWXyvUkWUuDzgRggjUSPttf7/ytbYCbff79 EDynuqFazAs58L40wBU8Z1qeAgR0k+d515y22ReGC3625pQOaQP16/UUg5P5wxswjSuo JnAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=pH8+JlMW; 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=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u3-v6si6148592plb.2.2018.05.15.05.19.21; Tue, 15 May 2018 05:19:37 -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; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=pH8+JlMW; 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=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753183AbeEOMSH (ORCPT + 99 others); Tue, 15 May 2018 08:18:07 -0400 Received: from aserp2130.oracle.com ([141.146.126.79]:55860 "EHLO aserp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752425AbeEOMSG (ORCPT ); Tue, 15 May 2018 08:18:06 -0400 Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w4FCFxID065435 for ; Tue, 15 May 2018 12:18:05 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : references : in-reply-to : from : date : message-id : subject : to : cc : content-type; s=corp-2017-10-26; bh=zDiQo24Ze8HummTyTVpNCTiH+viKpyIXmeYPAeJtLVE=; b=pH8+JlMWjt1tERrmbqaDE1UBPu/qhcMSf7RT7S+xluZd4S8OW5l9fKTP3/+nxiwIFanF 15d29KiqXlCi2yzlzchku1JRy3GV+57dcACdrXk3K0dOZDZ9XeJQVmfufRLga8E93Dw8 MWHoqRARkHw6n+d7OEkMgKnChQ/TIjZR+MHAqRxLLR4O6LqmIqekm8r1TFsAPYl/tR01 lZesm8JaL0GFjw59Dtdemqnb4U8etW1cc8NcfE/TgoNmmfjcMTRnpwFpF492zmKzKSi3 qWuVHBIgrcEkcFwdtQsZKoSq65PZ/U+Ek+iy/XB1KZmj5pxL85VpvX6dHhocqiVHX7SW fg== Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by aserp2130.oracle.com with ESMTP id 2hxpvcpq5p-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 15 May 2018 12:18:05 +0000 Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w4FCI46M014359 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 15 May 2018 12:18:04 GMT Received: from abhmp0012.oracle.com (abhmp0012.oracle.com [141.146.116.18]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w4FCI4kQ026520 for ; Tue, 15 May 2018 12:18:04 GMT Received: from mail-ot0-f170.google.com (/74.125.82.170) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 15 May 2018 05:18:04 -0700 Received: by mail-ot0-f170.google.com with SMTP id t1-v6so18161750oth.8 for ; Tue, 15 May 2018 05:18:03 -0700 (PDT) X-Gm-Message-State: ALKqPwfDe3Gt03x+FsFGYjONXkNObcqcxBTpahUgHOIMbRxmsydMhMMe +yk3A2PlYMVPYTr8Kl87f/bezSCqkqceAmVSU7M= X-Received: by 2002:a9d:41c1:: with SMTP id v1-v6mr9792272oti.11.1526386683059; Tue, 15 May 2018 05:18:03 -0700 (PDT) MIME-Version: 1.0 References: <20180510115356.31164-1-pasha.tatashin@oracle.com> <20180510123039.GF5325@dhcp22.suse.cz> <20180515091036.GC12670@dhcp22.suse.cz> In-Reply-To: <20180515091036.GC12670@dhcp22.suse.cz> From: Pavel Tatashin Date: Tue, 15 May 2018 08:17:27 -0400 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2] mm: allow deferred page init for vmemmap only To: mhocko@kernel.org 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 Content-Type: text/plain; charset="UTF-8" X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8893 signatures=668698 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=3 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=901 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1805150128 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Michal, Thank you for your reply, my comments below: > You are now disabling a potentially useful feature to SPARSEMEM users > without having any evidence that they do suffer from the issue which is > kinda sad. Especially when the only known offender is a UP pcp allocator > implementation. True, but what is the use case for having SPARSEMEM without virtual mapping and deferred struct page init together. Is it a common case to have multiple gigabyte of memory and currently NUMA config to benefit from deferred page init and yet not having a memory for virtual mapping of struct pages? Or am I missing some common case here? > I will not insist of course but it seems like your fix doesn't really > prevent virt_to_page or other direct page access either. I am not sure what do you mean, I do not prevent virt_to_page, but that is OK for SPARSEMEM_VMEMMAP case, because we do not need to access "struct page" for this operation, as translation is in page table. Yes, we do not prohibit other struct page accesses before mm_init(), but we now have a feature that checks for uninitialized struct page access, and if those will happen, we will learn about them. Thank you, Pavel