Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp5589801imm; Tue, 19 Jun 2018 13:00:43 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIE6AUKZDXwksS/T9poGsbP7NGUUQBX3pKdZ+uTCGdMX+2zZ6JOujayjUPojVYwKuEA5p3V X-Received: by 2002:a17:902:141:: with SMTP id 59-v6mr11134705plb.181.1529438443487; Tue, 19 Jun 2018 13:00:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529438443; cv=none; d=google.com; s=arc-20160816; b=Y2/O13W7fnvuE6ZCyRlR5K/bOUk36EgVE+XbiKVlVOzj6Beek/8qhfN2XwuDF6Qib7 +q+DGekXv8e9a0ariqVYCZXqvQqGqhojQaL/v0aktW0h6yUVFqcbmS5p7svlxC+itOfA u+rpVPkSeTmdCi0/gMfAh+99Kvupzdvv3jdOa1q3LTkm+i6cK08SwtVUn3HzDkM1pATQ I5f/gmWxwF4mYxRfmBVfkbmBZwuN2lmkSfIExjTALihOGU3d7Exb+XD4fAquynWhsIoJ YmMSCAHpzL1sw8wxFmk25N5qdxEb03o1DU1U1UgZeAoKYXfLaOBhKovgCV55XrgZmcs+ XkVg== 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=cvmvOEYetQRvox2mdjPCyUCpp4ZGoXnv9HKMwhWGFaU=; b=ODnKqRJ9LUoniduqO5YxrKyKUlYQQ/1CA0hrg2k6rYrDzqYNcOrkRZJ/T8IVXdqZAo GXMbgFwAs2OKntn/7Iky73QDgEAUJs2b+ZatBoobowLFjQ2SRmcKZJWbaVKPV53G6Rb+ apUzlkdIruM5pSWh97uuzBQ0ysAgpD7LEXBDp7YD8O5bMrr5b1jrs7Gnrorg/a9SkAHv pL5hYZO6O0R1MsZep4IawUCg8FhnrpGp7/+4UatjefMyQX2JppkZzwzVZmILp1WOxuYP p62BEilrr+odyQU5xHC28E87lkoGNEW5Krmaz94Rg6yu5YBZSxPUNjrFP7u5HzG1N24R x41w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b="VM/2h8NT"; 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 ay6-v6si436384plb.210.2018.06.19.13.00.29; Tue, 19 Jun 2018 13:00:43 -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="VM/2h8NT"; 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 S1030751AbeFST45 (ORCPT + 99 others); Tue, 19 Jun 2018 15:56:57 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:48768 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030528AbeFST4w (ORCPT ); Tue, 19 Jun 2018 15:56:52 -0400 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w5JJrfiA179044; Tue, 19 Jun 2018 19:56:51 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=cvmvOEYetQRvox2mdjPCyUCpp4ZGoXnv9HKMwhWGFaU=; b=VM/2h8NTlLJDSd1pyBxwzXlK2oMBqlygZX6aKQd9Jf2ntPHJQRju0tVmNqHPB3q/vXuV 4O74sMx+378yFs/wiW1sS140TI4Tx8NV8qJRyggNz58rCSIN0H0G798eTnp39pPtZvo/ OjVVecIlkDtYpQY3HfQWESnBPk2Ie0wyOEK5L/aHOpy16cdyYEy2C6tW2sOBdQxTlbpq FnY1a59GqoCgLEV3TbNCtTVRxoQ1IKS72dRK8pj07qJaPxcOIan4E4vjAqd5a6Tpcvj0 3XSWWsNY4Gg350vTYlhxiJxt9eB0svW6qxjJyHrSuMJd2w7tPrbe67BEXpARUJUiIosx AQ== Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by userp2120.oracle.com with ESMTP id 2jmu6xsmy0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 19 Jun 2018 19:56:51 +0000 Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w5JJupoq026601 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 19 Jun 2018 19:56:51 GMT Received: from abhmp0015.oracle.com (abhmp0015.oracle.com [141.146.116.21]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w5JJuoM2026256; Tue, 19 Jun 2018 19:56:50 GMT Received: from mail-ot0-f169.google.com (/74.125.82.169) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 19 Jun 2018 12:56:50 -0700 Received: by mail-ot0-f169.google.com with SMTP id d19-v6so1063294oti.8; Tue, 19 Jun 2018 12:56:50 -0700 (PDT) X-Gm-Message-State: APt69E1PHIYoZCNiTtG6jlaEYddwOa0Uc4Mc0hrpNu5hrDmh9Zg6DGMP OhhDapxP3Wt6ylYdQy3WtHwAI22iPJGuhjFs7wU= X-Received: by 2002:a9d:2010:: with SMTP id n16-v6mr10497229ota.275.1529438209892; Tue, 19 Jun 2018 12:56:49 -0700 (PDT) MIME-Version: 1.0 References: <20171117014601.31606-1-pasha.tatashin@oracle.com> <20171121072416.v77vu4osm2s4o5sq@dhcp22.suse.cz> In-Reply-To: From: Pavel Tatashin Date: Tue, 19 Jun 2018 15:56:13 -0400 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v1] mm: relax deferred struct page requirements To: jslaby@suse.cz 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 Content-Type: text/plain; charset="UTF-8" X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8929 signatures=668702 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=3 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=884 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1805220000 definitions=main-1806190217 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Thank you, Pavel > > Thank you, > Pavel