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.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no 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 6073FC433E9 for ; Tue, 16 Mar 2021 10:18:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1563365023 for ; Tue, 16 Mar 2021 10:18:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236264AbhCPKSG (ORCPT ); Tue, 16 Mar 2021 06:18:06 -0400 Received: from vmi485042.contaboserver.net ([161.97.139.209]:56198 "EHLO gentwo.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231430AbhCPKRy (ORCPT ); Tue, 16 Mar 2021 06:17:54 -0400 Received: by gentwo.de (Postfix, from userid 1001) id 29BC9B0060B; Tue, 16 Mar 2021 11:07:36 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by gentwo.de (Postfix) with ESMTP id 26ECEB002C3; Tue, 16 Mar 2021 11:07:36 +0100 (CET) Date: Tue, 16 Mar 2021 11:07:36 +0100 (CET) From: Christoph Lameter To: Yang Shi cc: Roman Gushchin , Vlastimil Babka , Xunlei Pang , Pekka Enberg , Konstantin Khlebnikov , David Rientjes , Matthew Wilcox , Shu Ming , Andrew Morton , Linux Kernel Mailing List , Linux MM , Wen Yang , James Wang , Thomas Gleixner Subject: Re: [PATCH v3 0/4] mm/slub: Fix count_partial() problem In-Reply-To: Message-ID: References: <1615303512-35058-1-git-send-email-xlpang@linux.alibaba.com> <793c884a-9d60-baaf-fab8-3e5f4a024124@suse.cz> User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 15 Mar 2021, Yang Shi wrote: > > It seems like CONFIG_SLUB_DEBUG is a more popular option than CONFIG_SLUB_STATS. > > CONFIG_SLUB_DEBUG is enabled on my Fedora workstation, CONFIG_SLUB_STATS is off. > > I doubt an average user needs this data, so I'd go with CONFIG_SLUB_STATS. > > I think CONFIG_SLUB_DEBUG is enabled by default on most distros since > it is supposed not incur too much overhead unless specific debug (i.e. > red_zone) is turned on on demand. Correct. CONFIG_SLUB_DEBUG includes the code so the debugging can be enabled on Distro kernels with a kernel command line option. So you dont have to recompile the kernel to find weird memory corruption issues from strange device drivers. Somehow my email address dropped off this thread.