Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2544275imm; Fri, 24 Aug 2018 00:46:22 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbStk88KIexQcYMxjlAKLVDhLkgCQxMhC4Dq3jQEDJ/na5OIipcE6KmID6V3G8rO+52mPti X-Received: by 2002:a63:8a41:: with SMTP id y62-v6mr578711pgd.278.1535096782779; Fri, 24 Aug 2018 00:46:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535096782; cv=none; d=google.com; s=arc-20160816; b=Oxr8yfoUK5cYoRMAmvRgedArp5KUbR0Gd6VilXXtGQNL6nWhN0j5zf5bSa4/UED3oZ nVb/SiyAIa/0yAo8lTfUyZXRRsWlnf5/3qGtEGeYJmHqrX5jKE8Dqv3nVbnXO3EjYyjJ j5RaIzIZ3PUiz9iE3uflTyBa/rc8vSFHBAhmAtQ6xkpV70jx3biXnXwOlBewFjpyFyCL w3G1VpMpqJOhE37lwkXEBVWkgHhb4Ln0jUj4uRbNXQ7fW/4TgnyDzWF2y5/mq5TWdkf5 o723vTfsljjVnVqMf7LVPsNQ/r/wawK03MbLRhUrGtUZMWcDlruW0OXvIOtfDXKZopYt sdnA== 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:autocrypt:openpgp:to:references:cc:from:subject :arc-authentication-results; bh=ikoF4rXltZewMvg+4nrcsDH542tblZzcuDK23C1EyYE=; b=l5EG2D5IoWpY+HBTljcetmTQUpkwtXLEMHQ7mQ2722e/4UrSeJ23xesG68CGSaia9o PWoJbX2JQmd8BMHmKnlka0kqyjcjzPT5BpqyI3qw79+v9U94s1d34V4MPnf+oCogE1qI C5wRArGgjEleCoaHkpMen+BYisyEvLkV5pS6/+bJticHpxfGhJ/wMIK3UYCN8+fT1z// mQCpf5IswkDpdhX8/FOcffe2FNRzknZWmPah6LUozadEEk/Z1kig/zi/vnZQk1kpPJME ON5ha9pK9fucI9ClLEsXfAFCmjstAvvi8+MFsXTiRHmdyoI9nMXOo7Q+0l2PtkXEZunm iZQQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s1-v6si6675243pfi.369.2018.08.24.00.46.07; Fri, 24 Aug 2018 00:46:22 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727720AbeHXLSJ (ORCPT + 99 others); Fri, 24 Aug 2018 07:18:09 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:37051 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727252AbeHXLSJ (ORCPT ); Fri, 24 Aug 2018 07:18:09 -0400 Received: by mail-wr1-f66.google.com with SMTP id u12-v6so5380649wrr.4; Fri, 24 Aug 2018 00:44:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:cc:references:to:openpgp:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=ikoF4rXltZewMvg+4nrcsDH542tblZzcuDK23C1EyYE=; b=WMw9eezgDdVk+IEEdthujZSyXyLx8bZlyyZzD6+QjWZq4v5TucJspYY8CftjxjE73X 0GEBN3gyxRqrlsQQ2epgNcpIMrTMszPtpHGHsMGID4u6JMY6DTkmC2pjXTYUdI8mYB4n Yqi57jD3f1A9/8H2pFJGhhG4YhkfYAMXnKhrtC3TCfIcsHwVZorGYl6FEapVGMm/jsWA vl6WM5luUuvwtbzhEEVjeESbwaOy9qkBZii7uvgFOss7abgQb73uyQ5uJeTkhYfDEjMn aOwclKzRCa89t6yO1Xvob4e2HlwiA9ZhxW3/kh6AFZX1d2jAr/XT1KXwNhpxGyVRHjf3 CyIQ== X-Gm-Message-State: APzg51CHYuE99lrDf8Tj/lLY2W/N6zW91bavtKJxsqK4cg0I0VXC5HXL /Ku61iVtcVQ+CPcezgVvpktJ4zT1 X-Received: by 2002:adf:fa4d:: with SMTP id y13-v6mr430720wrr.155.1535096682201; Fri, 24 Aug 2018 00:44:42 -0700 (PDT) Received: from ?IPv6:2a01:4240:2e27:ad85:aaaa::70f? ([2a01:4240:2e27:ad85:aaaa::70f]) by smtp.gmail.com with ESMTPSA id c3-v6sm8322002wrm.56.2018.08.24.00.44.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 24 Aug 2018 00:44:41 -0700 (PDT) Subject: Re: [PATCH v1] mm: relax deferred struct page requirements From: Jiri Slaby Cc: mhocko@kernel.org, Steven Sistare , Daniel Jordan , benh@kernel.crashing.org, paulus@samba.org, Andrew Morton , kirill.shutemov@linux.intel.com, Reza Arbab , schwidefsky@de.ibm.com, Heiko Carstens , x86@kernel.org, LKML , tglx@linutronix.de, linuxppc-dev@lists.ozlabs.org, Linux Memory Management List , linux-s390@vger.kernel.org, mgorman@techsingularity.net References: <20171117014601.31606-1-pasha.tatashin@oracle.com> <20171121072416.v77vu4osm2s4o5sq@dhcp22.suse.cz> <83d035f1-40b4-bed8-6113-f4c5a0c4d22f@suse.cz> To: pavel.tatashin@microsoft.com Openpgp: preference=signencrypt Autocrypt: addr=jslaby@suse.cz; prefer-encrypt=mutual; keydata= xsFNBE6S54YBEACzzjLwDUbU5elY4GTg/NdotjA0jyyJtYI86wdKra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z2ZPk2D53Ww39VNI/J9ABEBAAHCwV8EGAECAAkF Ak6S54YCGwwACgkQvSWxBAa0cEk3tRAAgO+DFpbyIa4RlnfpcW17AfnpZi9VR5+zr496n2jH /1ldwRO/S+QNSA8qdABqMb9WI4BNaoANgcg0AS429Mq0taaWKkAjkkGAT7mD1Q5PiLr06Y/+ Kzdr90eUVneqM2TUQQbK+Kh7JwmGVrRGNqQrDk+gRNvKnGwFNeTkTKtJ0P8jYd7P1gZb9Fwj 9YLxjhn/sVIhNmEBLBoI7PL+9fbILqJPHgAwW35rpnq4f/EYTykbk1sa13Tav6btJ+4QOgbc ezWIwZ5w/JVfEJW9JXp3BFAVzRQ5nVrrLDAJZ8Y5ioWcm99JtSIIxXxt9FJaGc1Bgsi5K/+d yTKLwLMJgiBzbVx8G+fCJJ9YtlNOPWhbKPlrQ8+AY52Aagi9WNhe6XfJdh5g6ptiOILm330m kR4gW6nEgZVyIyTq3ekOuruftWL99qpP5zi+eNrMmLRQx9iecDNgFr342R9bTDlb1TLuRb+/ tJ98f/bIWIr0cqQmqQ33FgRhrG1+Xml6UXyJ2jExmlO8JljuOGeXYh6ZkIEyzqzffzBLXZCu jlYQDFXpyMNVJ2ZwPmX2mWEoYuaBU0JN7wM+/zWgOf2zRwhEuD3A2cO2PxoiIfyUEfB9SSmf faK/S4xXoB6wvGENZ85Hg37C7WDNdaAt6Xh2uQIly5grkgvWppkNy4ZHxE+jeNsU7tg= Message-ID: Date: Fri, 24 Aug 2018 09:44:40 +0200 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: <83d035f1-40b4-bed8-6113-f4c5a0c4d22f@suse.cz> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org pasha.tatashin@oracle.com -> pavel.tatashin@microsoft.com due to 550 5.1.1 Unknown recipient address. On 08/24/2018, 09:32 AM, Jiri Slaby wrote: > On 06/19/2018, 09:56 PM, Pavel Tatashin wrote: >> On Tue, Jun 19, 2018 at 9:50 AM Pavel Tatashin >> wrote: >>> >>> On Sat, Jun 16, 2018 at 4:04 AM Jiri Slaby wrote: >>>> >>>> On 11/21/2017, 08:24 AM, Michal Hocko wrote: >>>>> On Thu 16-11-17 20:46:01, Pavel Tatashin wrote: >>>>>> There is no need to have ARCH_SUPPORTS_DEFERRED_STRUCT_PAGE_INIT, >>>>>> as all the page initialization code is in common code. >>>>>> >>>>>> Also, there is no need to depend on MEMORY_HOTPLUG, as initialization code >>>>>> does not really use hotplug memory functionality. So, we can remove this >>>>>> requirement as well. >>>>>> >>>>>> This patch allows to use deferred struct page initialization on all >>>>>> platforms with memblock allocator. >>>>>> >>>>>> Tested on x86, arm64, and sparc. Also, verified that code compiles on >>>>>> PPC with CONFIG_MEMORY_HOTPLUG disabled. >>>>> >>>>> There is slight risk that we will encounter corner cases on some >>>>> architectures with weird memory layout/topology >>>> >>>> Which x86_32-pae seems to be. Many bad page state errors are emitted >>>> during boot when this patch is applied: >>> >>> Hi Jiri, >>> >>> Thank you for reporting this bug. >>> >>> Because 32-bit systems are limited in the maximum amount of physical >>> memory, they don't need deferred struct pages. So, we can add depends >>> on 64BIT to DEFERRED_STRUCT_PAGE_INIT in mm/Kconfig. >>> >>> However, before we do this, I want to try reproducing this problem and >>> root cause it, as it might expose a general problem that is not 32-bit >>> specific. >> >> Hi Jiri, >> >> Could you please attach your config and full qemu arguments that you >> used to reproduce this bug. > > Hi, > > I seem I never replied. Attaching .config and the qemu cmdline: > $ qemu-kvm -m 2000 -hda /dev/null -kernel bzImage > > "-m 2000" is important to reproduce. > > If I disable CONFIG_DEFERRED_STRUCT_PAGE_INIT (which the patch allowed > to enable), the error goes away, of course. > > thanks, > -- js suse labs