Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1472972imu; Fri, 9 Nov 2018 17:47:53 -0800 (PST) X-Google-Smtp-Source: AJdET5elQNQKmZ+mjXZKsjwy9Xnr4nx3hECn36+lnS5LbnI/LfE3Bq1I8Lz1V4P6i3iMmuzdW0Na X-Received: by 2002:a17:902:7797:: with SMTP id o23-v6mr11454767pll.30.1541814473923; Fri, 09 Nov 2018 17:47:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541814473; cv=none; d=google.com; s=arc-20160816; b=ZL712SPCxq60W9jc1/ROJWcEv1gg7VBrdXleSMmqBCbRhoMia+c72Yj9lziQVRLRXz 7Pbmu8exZMae76M5cwluOWydAVztJNKfkDUaWJqAxZ37scbKdWrnr65L2I3PpE21LZ+E VWoqkM3XUlg8GwXhekVNJ03Sp2wXJSbGoM0XInR6njBtxtgV3wY+yUY6j6pp/eiH4zBW T4EYyzPSnj5fJjN23dpidueZoEgpvtCyb43zYa15nE98PSk/qldEmfkg6rgjDLSvyBz/ iLZZjzKZKkYrqL60Y6wKrMaOETgDw9nEAD5lw01h4IuTkdy32gTVU4zOcCWM7KoWlwq2 /Lxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:subject:cc:to:from:message-id :mime-version; bh=+L9brJqjJYEgyZwZvQHDhqDVLC9q1tJ1hQoPiEazr8A=; b=Uiv9iOiTEJbZOndCo0LW+FHIIQ7ZhIvRQNjC4qvQ858gI7grm/KRCncDy32NwLbHm0 Ain7YoKDynaZmKATjAJ3JxEaEdHUE01EdJ4ulLV4sb30x7VmZDVFaXioNPZXP/K6O75A 7lxvCgjObB6uQQfDx0VyEsyVJtQk/0USBHjlsriobh8vHYIytHMoIJfNOAY1JV/liCkX 93gpuwSjY6yE7G/xtB0z/7/OviPkcwR6CWJA7ofmSDwqSWztcs5KrCPZ5ZXzA+89sTiN QaRtCz2oskI6d7ZiHTWCMouxh6b+cVNaFxhcE1yRh++2e+ZYHsVaCWpsxFtFyr+bcn0U qQgw== 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 v5-v6si9045686pfe.237.2018.11.09.17.47.37; Fri, 09 Nov 2018 17:47:53 -0800 (PST) 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 S1728737AbeKJL3G (ORCPT + 99 others); Sat, 10 Nov 2018 06:29:06 -0500 Received: from mout.gmx.net ([212.227.15.18]:50359 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728032AbeKJL3G (ORCPT ); Sat, 10 Nov 2018 06:29:06 -0500 Received: from [74.104.183.64] ([74.104.183.64]) by msvc-mesg-gmx021.server.lan (via HTTP); Sat, 10 Nov 2018 02:45:29 +0100 MIME-Version: 1.0 Message-ID: From: "Qian Cai" To: "Waiman Long" Cc: "Joel Fernandes (Google)" , "Yang Shi" , "Zhong Jiang" , "Arnd Bergmann" , "open list" , "Thomas Gleixner" Subject: Re: ODEBUG: Out of memory. ODEBUG disabled Content-Type: text/plain; charset=UTF-8 Date: Sat, 10 Nov 2018 02:45:29 +0100 X-Provags-ID: V03:K1:wcZcI1ptzWNkj612oU4jOc6rhcXVY4WbWRLdsqhpl0TLpGNOWpoXSi/7utgRSJn0fmU5s JjCbTvOfR7veYUXRLnJk561Spx35X7ZMJUuzzEqpbgJ/fTupjuwoyPzqqm9gz88A6fMrpupYsD2b kgzs9ecK/uBEtWdrQcyl21858SrxNze2PpOghH5EqEy8DvGIMTS9MunCYA05Q+7oV0OrviPJH6Jg KQEmIa2FEKu5ekr1d32KwsgCpGECd2/fZtSJqo6/LSlkYr7StvWTQi+FEp7sDCj2FioZpsUMa516 6OiSMIbAV+HV2/c6pt+WKDX X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V01:K0:ROSJ56+HW60=:3uQwSd7HnoisoazMA3W8vD aovvuM6VVtjAezmAVziS4VqH3T70gw1eqL5mmMN3j9CRFEpNROu0YoYYEyBtHCCCPbY/fUAjZ 99rdJp44JPlsvH8P4+EGnU5gTjaikltjvuKN0r1ugxSbOSyHc7yHp4JXitZHH55vMBcuAxGTp KUwUqrUS0eYt2P+4sEnckjGC+iL3HDaWwFuVP7OcAnU3H1wfBgI+KFrKSqi2Brdjyb0BX0xfP qNA2bMdKUqYnIhh+Gz3wXLliSSMObRsLp37UPvunABKubyEX7UjxxMf2nz6JQ299hzZAQVV5a yuGRuec26zq1xFH0iNe1G9+soESS7sJPTOvibO96Efim/2u3rS7XgPyEJYB45GkuUDbFYyQHv tvg/rJC+jwvO43YIKrThgVIO2h+Q0ZrCvGMTuqD5Oc2Gjz5+qL+TEpsduEEdRPlXW5x2aLhBv fcNEaGJI5M5ACGk28ZJMgJQFg70SkT35oDrPr/Yd+NFuPiuGkTcvGxeznYFxneWxdajY77S9A 2PrcO0AOrajnPp/jtopMew87y9jKzdIWAZB4DdlSvKn9S3TV6QH/QKdXwFJCpTP9IZP2CynhN 09EdxBPK2uehfoTjYlbApggIjbAfsmx7sQ Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Sent: Friday, November 09, 2018 at 5:08 PM > From: "Waiman Long" > To: "Qian Cai" , "Yang Shi" > Cc: "open list" , "Thomas Gleixner" , "Arnd Bergmann" , "Joel Fernandes (Google)" , "Zhong Jiang" > Subject: Re: ODEBUG: Out of memory. ODEBUG disabled > > On 11/09/2018 04:51 PM, Qian Cai wrote: >> >>> On Nov 9, 2018, at 4:42 PM, Yang Shi wrote: >>> >>> >>> >>> On 11/9/18 1:36 PM, Qian Cai wrote: >>>> It is a bit annoying on this aarch64 server with 64 CPUs that is >>>> booting the latest mainline (3541833fd1f2) causes object debugging >>>> always running out of memory. >>> May you please paste the detail failure log? >> I assume you mean dmesg. >> >> Here is the dmesg for 64 CPUs, >> https://paste.ubuntu.com/p/BnhvXXhn7k/ >>>> I have to boot the kernel with only 16 CPUs instead (nr_cpus=16) >>>> to make it work. Is it expected that object debugging is not going >>>> to work with large machines? >>> I don't think so. I'm supposed it works well with large CPU number on x86. >> Here is the one with nr_cpus workaround, >> https://paste.ubuntu.com/p/qMpd2CCPSV/ > > The debugobjects code have a set of 1024 statically allocated debug > objects that can be used in early boot before the slab memory allocator > is initialized. Apparently, the system may have used up all the > statically allocated objects. Try double ODEBUG_POOL_SIZE to see if it > helps. Great, you are right. Doubling the size makes it work. Does it make sense to have a kconfig option instead? > > There are also quite a number of warnings in your console log. So there > is certainly something wrong with your kernel or config options. Yes, I am working on all those warnings. This one is found by ODEBUG, https://lkml.org/lkml/2018/11/10/136