Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp646249rdb; Tue, 5 Dec 2023 16:08:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IE4YXJicvH4CjWRMBYCNmYPyUTmQdkTyMw43A6cvDldUi9psMwSE2nUS0hAInV+UgmlTtk/ X-Received: by 2002:a17:903:11d2:b0:1d0:44f7:b877 with SMTP id q18-20020a17090311d200b001d044f7b877mr74447plh.18.1701821313933; Tue, 05 Dec 2023 16:08:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701821313; cv=none; d=google.com; s=arc-20160816; b=XXGvU0ctUeaox6SL3yKy38nb9OGgmDKudPgPQo5jk/q8W6TnuHUFMEmq7G4+RfmfKE /meqvZqdOP255uRZEvzMtMoyEPk3xNJ6fOS1Bv5Q68s1pxlPDh146NjyTEqpzsv3qlHS 9sF5Ytw/w3xbTCfKFEvs0akV7SxH+Ac3L3MKHDR5MWZoS4UPIcIam9o3cuNhezulOu3Y O7FtUpUO35ygqyniBD8RK469DtZt080cUNYXfDhtzcbdAU/0v0peO4or1G3uz+2iHxyJ +WYh14QfBYZFQ+fH/7hasq9iX64u0VXDy+yf1A5S09lRaL+fBwecvNRwts53s8XxSYjo kDNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=mZmoOpShnlOr1bQVRrl+GknWd+PtQJEUK3TXoeEYCts=; fh=ezGgTJoHdqijbJ6IWHiSjHZUYI0p+VPBCX/sPRmQd+E=; b=Qn5mWlAcnqv4MVqG7/QjoOqOF213oU0pcMjCFI7Q4Pnp7gOz1Y1NztmYkVhRcOF5d4 yE92rmv6wzQ8/G0d35LRpbGrtgFnCduxW0y1smNabctHLb5JLFBvURvss977pv+kQ4Q6 j506iu1OKVLfB6qovxTQkRx8QSfiOh16zXAfgpMtVdNrTRWEJMgqwAbLAa2WBKSPLnkC iaixvAqCEbor9rP4G7ETz2gcqRAVHSYsviuHCwiwReYWmQNHcbbqL/xoyy2TiCEoxbPI wbQ8E6YeJj3expxNTuXyDHOiyeZKshzuqmCnJbHEZE7BBGS0SmR8CAKa4NI1AofpphA1 RS1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="LrJybr/C"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id ik14-20020a170902ab0e00b001cfb971ee05si7647143plb.78.2023.12.05.16.08.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Dec 2023 16:08:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="LrJybr/C"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 90D20802FD18; Tue, 5 Dec 2023 16:08:32 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346647AbjLFAIW (ORCPT + 99 others); Tue, 5 Dec 2023 19:08:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54314 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346563AbjLFAIV (ORCPT ); Tue, 5 Dec 2023 19:08:21 -0500 Received: from mail-vk1-xa30.google.com (mail-vk1-xa30.google.com [IPv6:2607:f8b0:4864:20::a30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE22218F; Tue, 5 Dec 2023 16:08:27 -0800 (PST) Received: by mail-vk1-xa30.google.com with SMTP id 71dfb90a1353d-4b2c0ba26f1so217728e0c.0; Tue, 05 Dec 2023 16:08:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701821307; x=1702426107; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=mZmoOpShnlOr1bQVRrl+GknWd+PtQJEUK3TXoeEYCts=; b=LrJybr/CBMhzbHfZld0/dVZM5b0i8Yv1hjr8wNJ48/rdGbwhNSSNscCxDZPWjsLL5S 1zrT/Ig/Fx+vPSMqtbb3WXAf9hmWWNuBe5jhG9SYXG6LdM7aV4kd4VmlJk1DeMmnbsgw NlkHas/Ekjq64iwIPCEQYIJfqoZvl/vLXTfBqKu7b/iHjCn/8GPZOESayR1tilvL0DLC +YnkIVmC10bJ9MUY17pzOGnJ2tqaGt5J26OIpCJTmB9MDOxq3EYa0DjJfnWDxfgdP/29 YAOHXw1vAz9Cdf8t3U9f5CiHK1Gh6tDMSZgo5YPRBwgQHyNOnfiskG/1BcRKn7uxPRpW j99w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701821307; x=1702426107; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=mZmoOpShnlOr1bQVRrl+GknWd+PtQJEUK3TXoeEYCts=; b=VFBqNWKIc+YjQDsIxtmtYjZSJQn6YCZXgND32owQ7kS8HwYDDELvbOU/piQEVo825n LKjqtIJPQKZlEFYRehmRWuZ8iVGmFM+XhoIw9dP+u12slnl58g5GykK2wQVhbXlOLkOD 4oBJ7yMNwUVsBnQq33xME6gsTmWPD0zD570idHFm+XY+auXb6xk54LKq5hipqrHGtfQ8 KohXwfCuA04dhC6yejsqA7ZFxvwByKlb5MXglKQzlV5/2PY6NCicETEWXaCGLs44JzNu Eob5N8/9mx82irqDiS5yq/1IP+GnBuePawGZqNVX+mMUYuEImg61ZqxjX9VVXxRGyEJp LzoA== X-Gm-Message-State: AOJu0YySxV6VrkygQfSf0t8SjhaHMJmTiOlD+s9pK0gQZnlrZ1Br3gHT bkNNl417t9wm8H59eGpZTKYgm3/YESeUwrH4TQ0= X-Received: by 2002:a05:6122:3187:b0:49d:20fb:c899 with SMTP id ch7-20020a056122318700b0049d20fbc899mr2686639vkb.4.1701821306644; Tue, 05 Dec 2023 16:08:26 -0800 (PST) MIME-Version: 1.0 References: <20231120-slab-remove-slab-v2-0-9c9c70177183@suse.cz> <20231120-slab-remove-slab-v2-2-9c9c70177183@suse.cz> <93a8a67c-9cb7-0d36-6b14-ce15a30bea3f@suse.cz> In-Reply-To: <93a8a67c-9cb7-0d36-6b14-ce15a30bea3f@suse.cz> From: Hyeonggon Yoo <42.hyeyoo@gmail.com> Date: Wed, 6 Dec 2023 09:08:16 +0900 Message-ID: Subject: Re: [PATCH v2 02/21] mm/slab: remove CONFIG_SLAB from all Kconfig and Makefile To: Vlastimil Babka Cc: David Rientjes , Christoph Lameter , Pekka Enberg , Joonsoo Kim , Andrew Morton , Roman Gushchin , Andrey Ryabinin , Alexander Potapenko , Andrey Konovalov , Dmitry Vyukov , Vincenzo Frascino , Marco Elver , Johannes Weiner , Michal Hocko , Shakeel Butt , Muchun Song , Kees Cook , linux-mm@kvack.org, linux-kernel@vger.kernel.org, kasan-dev@googlegroups.com, cgroups@vger.kernel.org, linux-hardening@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HK_RANDOM_ENVFROM, HK_RANDOM_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 05 Dec 2023 16:08:32 -0800 (PST) On Tue, Dec 5, 2023 at 7:14=E2=80=AFPM Vlastimil Babka wro= te: > > On 12/5/23 05:15, Hyeonggon Yoo wrote: > > On Mon, Nov 20, 2023 at 07:34:13PM +0100, Vlastimil Babka wrote: > > > > Looks good to me, > > Reviewed-by: Hyeonggon Yoo <42.hyeyoo@gmail.com> > > Thanks. > > > Nit: > > > > - Some arch configs enables DEBUG_SLAB > > - Some documentations refers to {DEBUG_,}SLAB config (i.e. "enable > > DEBUG_SLAB for debugging", or "use SLUB instead of SLAB for reducing OS > > jitter", ... etc) > > - fs/orangefs/orangefs-kernel.h uses #if (defined CONFIG_DEBUG_SLAB) > > > > $ git grep DEBUG_SLAB arch/ > > arch/arm/configs/ep93xx_defconfig:CONFIG_DEBUG_SLAB=3Dy > > arch/arm/configs/tegra_defconfig:CONFIG_DEBUG_SLAB=3Dy > > arch/microblaze/configs/mmu_defconfig:CONFIG_DEBUG_SLAB=3Dy > > > > $ git grep SLAB Documentation/ > > > > [... some unrelated lines removed ...] > > Yep, I've wrote in the cover letter that to keep the series reasonable an= d > limit Ccing other subsystems on some patches, not everything is cleaned u= p > thoroughly Ah, I see, Okay. > and is left for further work (some already started coming in > from others) that can be submitted to relevant subsystems. I'll focus more on correctness rather than doing further work while reviewi= ng. > > Documentation/admin-guide/cgroup-v1/cpusets.rst:PFA_SPREAD_SLAB, and ap= propriately marked slab caches will allocate > > Documentation/admin-guide/cgroup-v1/memory.rst: pages allocated by the= SLAB or SLUB allocator are tracked. A copy > > Documentation/admin-guide/kernel-per-CPU-kthreads.rst: CONFIG_= SLAB=3Dy, thus avoiding the slab allocator's periodic > > Documentation/admin-guide/mm/pagemap.rst: The page is managed by the = SLAB/SLUB kernel memory allocator. > > Documentation/dev-tools/kasan.rst:For slab, both software KASAN modes s= upport SLUB and SLAB allocators, while > > Documentation/dev-tools/kfence.rst:of the sample interval, the next all= ocation through the main allocator (SLAB or > > Documentation/mm/slub.rst:The basic philosophy of SLUB is very differen= t from SLAB. SLAB > > Documentation/mm/slub.rst: Sorry SLAB legacy issue= s) > > Documentation/process/4.Coding.rst: - DEBUG_SLAB can find a variety of = memory allocation and use errors; it > > Documentation/process/submit-checklist.rst: ``CONFIG_DEBUG_SLAB``, `= `CONFIG_DEBUG_PAGEALLOC``, ``CONFIG_DEBUG_MUTEXES``, > > Documentation/scsi/ChangeLog.lpfc: CONFIG_DEBUG_SLAB set). > > Documentation/translations/it_IT/process/4.Coding.rst: - DEBUG_SLAB pu= =C3=B2 trovare svariati errori di uso e di allocazione di memoria; > > Documentation/translations/it_IT/process/submit-checklist.rst: ``CON= FIG_DEBUG_SLAB``, ``CONFIG_DEBUG_PAGEALLOC``, ``CONFIG_DEBUG_MUTEXES``, > > Documentation/translations/ja_JP/SubmitChecklist:12: CONFIG_PREEMPT, CO= NFIG_DEBUG_PREEMPT, CONFIG_DEBUG_SLAB, > > Documentation/translations/zh_CN/dev-tools/kasan.rst:=E5=AF=B9=E4=BA=8E= slab=EF=BC=8C=E4=B8=A4=E7=A7=8D=E8=BD=AF=E4=BB=B6KASAN=E6=A8=A1=E5=BC=8F=E9= =83=BD=E6=94=AF=E6=8C=81SLUB=E5=92=8CSLAB=E5=88=86=E9=85=8D=E5=99=A8=EF=BC= =8C=E8=80=8C=E5=9F=BA=E4=BA=8E=E7=A1=AC=E4=BB=B6=E6=A0=87=E7=AD=BE=E7=9A=84 > > Documentation/translations/zh_CN/process/4.Coding.rst: - DEBUG_SLAB =E5= =8F=AF=E4=BB=A5=E5=8F=91=E7=8E=B0=E5=90=84=E7=A7=8D=E5=86=85=E5=AD=98=E5=88= =86=E9=85=8D=E5=92=8C=E4=BD=BF=E7=94=A8=E9=94=99=E8=AF=AF=EF=BC=9B=E5=AE=83= =E5=BA=94=E8=AF=A5=E7=94=A8=E4=BA=8E=E5=A4=A7=E5=A4=9A=E6=95=B0=E5=BC=80=E5= =8F=91=E5=86=85=E6=A0=B8=E3=80=82 > > Documentation/translations/zh_CN/process/submit-checklist.rst: ``CON= FIG_DEBUG_SLAB``, ``CONFIG_DEBUG_PAGEALLOC``, ``CONFIG_DEBUG_MUTEXES``, > > Documentation/translations/zh_TW/dev-tools/kasan.rst:=E5=B0=8D=E6=96=BC= slab=EF=BC=8C=E5=85=A9=E7=A8=AE=E8=BB=9F=E4=BB=B6KASAN=E6=A8=A1=E5=BC=8F=E9= =83=BD=E6=94=AF=E6=8C=81SLUB=E5=92=8CSLAB=E5=88=86=E9=85=8D=E5=99=A8=EF=BC= =8C=E8=80=8C=E5=9F=BA=E6=96=BC=E7=A1=AC=E4=BB=B6=E6=A8=99=E7=B1=A4=E7=9A=84 > > Documentation/translations/zh_TW/process/4.Coding.rst: - DEBUG_SLAB =E5= =8F=AF=E4=BB=A5=E7=99=BC=E7=8F=BE=E5=90=84=E7=A8=AE=E5=85=A7=E5=AD=98=E5=88= =86=E9=85=8D=E5=92=8C=E4=BD=BF=E7=94=A8=E9=8C=AF=E8=AA=A4=EF=BC=9B=E5=AE=83= =E6=87=89=E8=A9=B2=E7=94=A8=E6=96=BC=E5=A4=A7=E5=A4=9A=E6=95=B8=E9=96=8B=E7= =99=BC=E5=85=A7=E6=A0=B8=E3=80=82 > > Documentation/translations/zh_TW/process/submit-checklist.rst: ``CON= FIG_DEBUG_SLAB``, ``CONFIG_DEBUG_PAGEALLOC``, ``CONFIG_DEBUG_MUTEXES``, > > > > -- > > Hyeonggon >