From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5D9C0C433FF for ; Tue, 30 Jul 2019 15:42:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 248122171F for ; Tue, 30 Jul 2019 15:42:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731909AbfG3PmK (ORCPT ); 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