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 4202AC433E0 for ; Tue, 16 Mar 2021 10:17:59 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 679DA64FAC for ; Tue, 16 Mar 2021 10:17:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 679DA64FAC Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=gentwo.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id C806F6B006C; Tue, 16 Mar 2021 06:17:57 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id C2F0C6B006E; Tue, 16 Mar 2021 06:17:57 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id ACF576B0070; Tue, 16 Mar 2021 06:17:57 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0153.hostedemail.com [216.40.44.153]) by kanga.kvack.org (Postfix) with ESMTP id 914906B006C for ; Tue, 16 Mar 2021 06:17:57 -0400 (EDT) Received: from smtpin11.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 4F5492479 for ; Tue, 16 Mar 2021 10:17:57 +0000 (UTC) X-FDA: 77925336594.11.40703AE Received: from gentwo.de (vmi485042.contaboserver.net [161.97.139.209]) by imf19.hostedemail.com (Postfix) with ESMTP id 8ECB090009E8 for ; Tue, 16 Mar 2021 10:17:54 +0000 (UTC) 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 X-Stat-Signature: xnswme96sgcuw8hm8qhsgzakj6c4tcuo X-Rspamd-Server: rspam01 X-Rspamd-Queue-Id: 8ECB090009E8 Received-SPF: none (gentwo.de>: No applicable sender policy available) receiver=imf19; identity=mailfrom; envelope-from=""; helo=gentwo.de; client-ip=161.97.139.209 X-HE-DKIM-Result: none/none X-HE-Tag: 1615889874-10293 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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.