Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp3545604imm; Thu, 17 May 2018 10:23:34 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrVg6xaZMW6R7utxDCWj0RENJxj78NXHsiWLA0krrmUzo1LcM530mUiJ9oYDoJoOYZxp+bp X-Received: by 2002:a65:661a:: with SMTP id w26-v6mr4723653pgv.151.1526577814819; Thu, 17 May 2018 10:23:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526577814; cv=none; d=google.com; s=arc-20160816; b=AqSwdGJWhKBwgYhkX3yp3MvNt3GiQ4JKWi8O7ZOgBKDhoBGSNjdkhJChPwZmsmxDNb Fxi+sKXcExWLlkg+PUJONaEaNS3b7HIxEi4Hi25xLILsboTPd6B3iMlWUkkpe3gtZzuf Wz+wlQpKO++Ottjkd1wEXkqe/Q8JPLsyp3o0MxvKy6/N+r71fG5hk9kdYVk7AyxI+bjK REU/GS0FEkCwQshUNYQi3XOl+SQohf+NjQmna0VGQkamn+RZwcI+5k9mCFt3uT2jkHXi eDQYDxlBACdWASlNEaY7rB462Pp+C6dJOXpExMNZxXeM14RzHUhRXnk/OxDv1y+8xH78 gROA== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date :arc-authentication-results; bh=JrdSnpInimTmvGPaspwFztwMU7QU99KSrCJDj+BSn5g=; b=CvcFI9ByxT8lQnC5o/RlbA8XBQNrMNL6r1RNUsxHjKTXB1RFQkYRUA42jhA+8veUan fdH4holIQNjOS1thTTKSo29DizkHujQFqd/XAyRzomav1jQ29Vp9ntYvLX7kaqu8v6S4 9w6GoAd9OGmty5qVZvU56SudW1xv5CtJ6FucudeqcUSiiYX1e4n6AuVgYPZ27ohU4+6v bzMaOSO29Iy+l24WnAJB2h6cnl9jrD+9SspX/n5oE8FZtz+kBmcuHm3Rohy90GfD9+lF DDaoDKd4zkX8XHAhQPu2o862UzXSjAt5Bvq3dMCYiLVBurjydvouRnqGMcO9+Qrb+xsF QbdQ== 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 u28-v6si5426665pfl.143.2018.05.17.10.23.20; Thu, 17 May 2018 10:23:34 -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 S1752350AbeEQRVd (ORCPT + 99 others); Thu, 17 May 2018 13:21:33 -0400 Received: from mx2.suse.de ([195.135.220.15]:58130 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752320AbeEQRVc (ORCPT ); Thu, 17 May 2018 13:21:32 -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 EFDB8ACCB; Thu, 17 May 2018 17:21:30 +0000 (UTC) Date: Thu, 17 May 2018 19:21:28 +0200 From: Michal Hocko To: Ville =?iso-8859-1?Q?Syrj=E4l=E4?= Cc: Joonsoo Kim , "Aneesh Kumar K . V" , Tony Lindgren , Vlastimil Babka , Johannes Weiner , Laura Abbott , Marek Szyprowski , Mel Gorman , Michal Nazarewicz , Minchan Kim , Rik van Riel , Russell King , Will Deacon , Andrew Morton , Linus Torvalds , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] Revert "mm/cma: manage the memory of the CMA area by using the ZONE_MOVABLE" Message-ID: <20180517172128.GX12670@dhcp22.suse.cz> References: <20180517125959.8095-1-ville.syrjala@linux.intel.com> <20180517132109.GU12670@dhcp22.suse.cz> <20180517133629.GH23723@intel.com> <20180517135832.GI23723@intel.com> <20180517164947.GV12670@dhcp22.suse.cz> <20180517171335.GN23723@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180517171335.GN23723@intel.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 17-05-18 20:13:35, Ville Syrj?l? wrote: > On Thu, May 17, 2018 at 06:49:47PM +0200, Michal Hocko wrote: > > On Thu 17-05-18 16:58:32, Ville Syrj?l? wrote: > > > On Thu, May 17, 2018 at 04:36:29PM +0300, Ville Syrj?l? wrote: > > > > On Thu, May 17, 2018 at 03:21:09PM +0200, Michal Hocko wrote: > > > > > On Thu 17-05-18 15:59:59, Ville Syrjala wrote: > > > > > > From: Ville Syrj?l? > > > > > > > > > > > > This reverts commit bad8c6c0b1144694ecb0bc5629ede9b8b578b86e. > > > > > > > > > > > > Make x86 with HIGHMEM=y and CMA=y boot again. > > > > > > > > > > Is there any bug report with some more details? It is much more > > > > > preferable to fix the issue rather than to revert the whole thing > > > > > right away. > > > > > > > > The machine I have in front of me right now didn't give me anything. > > > > Black screen, and netconsole was silent. No serial port on this > > > > machine unfortunately. > > > > > > Booted on another machine with serial: > > > > Could you provide your .config please? > > Attached. Not sure there's anything particularly useful in it though > since I've now seen this on all the highmem systems I've booted. It has CONFIG_HAVE_MEMBLOCK_NODE_MAP so the movable_zone initialization depends on quite some crazy movable init code paths. So maybe that is the place to look at. > BTW I just noticed that the reported memory sizes look pretty crazy: > > Memory: 3926480K/3987424K available (5254K kernel code, 561K rwdata, > 2156K rodata, 572K init, 9308K bss, 56848K reserved, > 4096K cma-reserved, 3078532K highmem) > > vs. > > Memory: 7001976K/3987424K available (5254K kernel code, 561K rwdata, > 2156K rodata, 572K init, 9308K bss, 4291097664K reserved, > 4096K cma-reserved, 7005012K highmem) This smells like a fallout. Reserved pages clearly underflowed which suggested we are initializating more than we should. -- Michal Hocko SUSE Labs