Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp99683imm; Tue, 31 Jul 2018 14:36:10 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdIHpIqtJQSxCmQ6jBTxdfYcsTjiOs4o6lTkx2lxQ23nV0aQ4ZTU3L8IAHtTxu286G5enN7 X-Received: by 2002:a63:ab0c:: with SMTP id p12-v6mr21769375pgf.190.1533072970626; Tue, 31 Jul 2018 14:36:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533072970; cv=none; d=google.com; s=arc-20160816; b=ZiZC3Bt97p5uJGDu//QhSUuAxPeKRUcxDhiOqLOed7CWVMou+n15JNUItHN0Wb3L3y qW9pXSOiw13BKgTjoJKeZbrKJ6GAVHs6wKdbYvd6lcI8v31BCba7EjXuC8rhgCUdyWn/ pB0ayeN5kkZReRUd6Vqb8JtYSzZpfRsFkJRAPuxQTia/K6ha8SAv5AejsDFegP4C6Hpv rBFgnw27qrsxoWkEqbydIbCRHMc7aBYD83m+qiNGv/c96cDSl7oYjItOoz26rgW5HiRW V/eCe+lBRjbEmZ1rrrP9Tyj1QA/EmmQhheyGWmizD9gwnes4LmAagrtaQ24h/4cytGfv Ha1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=nn5LLZb285zxqDG+LXEzkep8jtQMat3n3LMrE/CHkeU=; b=yD9KDYA+yIOMrzIc8jjeT4BGUQ8hGp+jqO3f9inr5mNOxL+d8NXDnBM9GR2ANoue6c uMyn46S3Z5AzLZ1Tlg6c7v/iR5nU5D8euooUxcpACACN6Cy6ASSMwPuHdId6hRrd2QGL WmtE2/NJub0AhnWinkMb0YewYocpaXH/KzsITVJGvHBU7ug2teFKGaZda7BeK1BV3vP1 cXe2g6p0emI/D4W/VHIR8NO2pCRfB9Y0OpkSzA8LMGwJS933IVjl2KDXBPpu+PZ6Qf3U GFThOoAXzZKLB+feDCZcGQB9bZ7kmMUnHACVMFcsrbxTT5R1ezHAgFKe4aKSqzewNG/i 9a+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=BjW5Kniz; 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 x19-v6si14774450pgk.80.2018.07.31.14.35.51; Tue, 31 Jul 2018 14:36:10 -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-2018-07-02 header.b=BjW5Kniz; 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 S1732375AbeGaXRG (ORCPT + 99 others); Tue, 31 Jul 2018 19:17:06 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:36698 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727076AbeGaXRG (ORCPT ); Tue, 31 Jul 2018 19:17:06 -0400 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w6VLXX9J002144; Tue, 31 Jul 2018 21:33:33 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=nn5LLZb285zxqDG+LXEzkep8jtQMat3n3LMrE/CHkeU=; b=BjW5KnizDp2h3gyJk46eaHCZK16wHcy5mkVr838+4IhRug1pUmLSUyDZTvSzKaz7CbSV Cgh1c25GwilhyKv6Qe/pQKowuVXcKvUor9422dWt3pc9XI51/GGMeZj5/cJc9KdStqwn Bg3S03UuaGCV1zciFFeDADQHOriTxAHheBNNMmHiuFBbRftBmJ4n94O3gv4v5XI3b3Ph fBcK/KL9OoIx7TRX8xdO0YceOgWc3KOlOQGKzaOMeeVxizfvO18j0CYsVERkldfd+M0w 7DF0gP6o8gBpp5/rpEZYT80X+EFkisc7AMmZ2h5nVPJpbqM45fgBYqkkdpSrIURpzp/1 wA== Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by userp2130.oracle.com with ESMTP id 2kgfwt31b3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 31 Jul 2018 21:33:33 +0000 Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w6VLXWxx008106 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 31 Jul 2018 21:33:32 GMT Received: from abhmp0010.oracle.com (abhmp0010.oracle.com [141.146.116.16]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w6VLXTev001066; Tue, 31 Jul 2018 21:33:30 GMT Received: from [192.168.1.10] (/73.69.118.222) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 31 Jul 2018 14:33:29 -0700 Subject: Re: [PATCH] mm: make __paginginit based on CONFIG_MEMORY_HOTPLUG To: Oscar Salvador Cc: Andrew Morton , Michal Hocko , Vlastimil Babka , kirill.shutemov@linux.intel.com, iamjoonsoo.kim@lge.com, Mel Gorman , Souptick Joarder , Linux Memory Management List , LKML , osalvador@suse.de References: <20180731124504.27582-1-osalvador@techadventures.net> <20180731144157.GA1499@techadventures.net> <20180731144545.fh5syvwcecgvqul6@xakep.localdomain> <20180731145125.GB1499@techadventures.net> <20180731150115.GC1499@techadventures.net> <20180731205003.GA3277@techadventures.net> From: Pavel Tatashin Message-ID: <34d9fff4-cc29-8c6e-42c9-48c4467b6a74@oracle.com> Date: Tue, 31 Jul 2018 17:33:27 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20180731205003.GA3277@techadventures.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8971 signatures=668707 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=2 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=955 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1806210000 definitions=main-1807310199 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/31/2018 04:50 PM, Oscar Salvador wrote: > On Tue, Jul 31, 2018 at 11:23:33AM -0400, Pavel Tatashin wrote: >> Yes we free meminit when no CONFIG_MEMORY_HOTPLUG >> See here: >> http://src.illumos.org/source/xref/linux-master/include/asm-generic/vmlinux.lds.h#107 > > Oh, I got the point now. > Somehow I missed that we were freeing up the memory when CONFIG_MEMORY_HOTPLUG > was not in place. > > So your patch makes sense to me now, sorry. > > Since my patchset [1] + cleanup patch [2] remove almost all __paginginit, > leaving only pgdat_init_internals() and zone_init_internals(), I think > it would be great if you base your patch on top of that. > Or since the patchset has some cleanups already, I could add your patch > into it (as we did for the zone_to/set_nid() patch) and send a v6 with it. > > What do you think? Sure, please go ahead include it in v6. Let me know if you need any help. Thank you for this work, I really like how this improves hotplug/memory-init code. Pavel > > [1] https://patchwork.kernel.org/patch/10548861/ > [2] <20180731101752.GA473@techadventures.net> > > Thanks >