Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4877764ybi; Tue, 30 Jul 2019 09:40:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqz0/XoWJVbYeEaF2ExT03jQWgdUdzmWxdfSoB81pytpRlBWllql8HiyEbnO38NSxGikra54 X-Received: by 2002:a63:cc14:: with SMTP id x20mr63728645pgf.142.1564504858908; Tue, 30 Jul 2019 09:40:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564504858; cv=none; d=google.com; s=arc-20160816; b=PXQWO0+VFthLKk54bLc+TcqqxXBDFMbs//wzuVFd96oxDsxkT3B1iy5y4fGGpxncmx c2QtMsHehbclT0HpwL34YPYp8E0GqMP/vtXysyTgXDMIBtNpZQvkUbV8xAY3IYHrr8sP X8iS467XthuNkFrzRBs4ctAJ3Ihzo1d7HxDeQOgal2pEBkQG5+aq5VAwPKGom79bNmAo 4kuTR3HdLr+8CXbQINmcDgsm2JUQOQE2NRc9pKzzXf3esVkqK9YbT2DTGkQMUOFSfjaI Jfj+gCDk9aO2VIuErZzvxHmU/Fg9lZFuHq7h27coKto8T7QMck/hOsQkIG3BaSzqJQ6D hySg== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=r9vGJKw/9ETz0rC6FqbY/q8TcAXnfJv6xLBMJQno6ok=; b=uUSZd77e5EjWYEiUaeH6U03atGIK2MGglDObsGwYDd1u4iybXyRFxWBTE+ivprIFZY Wr96rhUKsN4mOumIwetGaoqlKeDjnQSyQNs5OPTs188w4QCi4NmGbbiurENMBHjKtLGm 3edxxtukKogUN/82ReAQRDF+xcSC6DXxup3QrKEPb+7tRalm2sZ/aSsnWqOnTX2NiZWG ZBw2lskKj7IyEJCuaBeAtHSU2+TtcQa4NBGMv/OAkTtQ686i+LLCkxP0hnlWCYnR91dD A5UptZbC4gwju3a7LGR9elN0wqa15GghVaU3LSXk5Ho3sab9bzxpCO0LMOx+Xrh0JWXH C32Q== 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 i15si32083402pfd.259.2019.07.30.09.40.44; Tue, 30 Jul 2019 09:40:58 -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 S1731347AbfG3PmK (ORCPT + 99 others); Tue, 30 Jul 2019 11:42:10 -0400 Received: from foss.arm.com ([217.140.110.172]:34838 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726510AbfG3PmJ (ORCPT ); Tue, 30 Jul 2019 11:42:09 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 2580E28; Tue, 30 Jul 2019 08:42:09 -0700 (PDT) Received: from arrakis.emea.arm.com (arrakis.cambridge.arm.com [10.1.196.78]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 59F763F694; Tue, 30 Jul 2019 08:42:07 -0700 (PDT) Date: Tue, 30 Jul 2019 16:42:05 +0100 From: Catalin Marinas To: Nicolas Boichat Cc: Andrew Morton , Masahiro Yamada , Kees Cook , Petr Mladek , Thomas Gleixner , Tetsuo Handa , Joe Lawrence , Uladzislau Rezki , Andy Shevchenko , linux-kernel@vger.kernel.org, Stephen Rothwell , Dmitry Vyukov , Andrey Ryabinin Subject: Re: [PATCH] kmemleak: Increase DEBUG_KMEMLEAK_EARLY_LOG_SIZE default to 16K Message-ID: <20190730154204.GC15386@arrakis.emea.arm.com> References: <20190730154027.101525-1-drinkcat@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190730154027.101525-1-drinkcat@chromium.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 30, 2019 at 11:40:27PM +0800, Nicolas Boichat wrote: > The current default value (400) is too low on many systems (e.g. > some ARM64 platform takes up 1000+ entries). > > syzbot uses 16000 as default value, and has proved to be enough > on beefy configurations, so let's pick that value. > > This consumes more RAM on boot (each entry is 160 bytes, so > in total ~2.5MB of RAM), but the memory would later be freed > (early_log is __initdata). > > Suggested-by: Dmitry Vyukov > Signed-off-by: Nicolas Boichat Acked-by: Catalin Marinas