From patchwork Mon Mar 7 07:40:54 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hyeonggon Yoo <42.hyeyoo@gmail.com> X-Patchwork-Id: 12771303 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2387CC433F5 for ; Mon, 7 Mar 2022 07:41:18 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 718128D0002; Mon, 7 Mar 2022 02:41:17 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 6C8728D0001; Mon, 7 Mar 2022 02:41:17 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5B6C38D0002; Mon, 7 Mar 2022 02:41:17 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0089.hostedemail.com [216.40.44.89]) by kanga.kvack.org (Postfix) with ESMTP id 4C4DF8D0001 for ; Mon, 7 Mar 2022 02:41:17 -0500 (EST) Received: from smtpin16.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 0672CA7C5D for ; Mon, 7 Mar 2022 07:41:17 +0000 (UTC) X-FDA: 79216794594.16.E067BB8 Received: from mail-pl1-f172.google.com (mail-pl1-f172.google.com [209.85.214.172]) by imf18.hostedemail.com (Postfix) with ESMTP id 567CD1C0007 for ; Mon, 7 Mar 2022 07:41:16 +0000 (UTC) Received: by mail-pl1-f172.google.com with SMTP id e13so13030953plh.3 for ; Sun, 06 Mar 2022 23:41:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ruPMGqeWb/VXE6LVkwLB6ZypHxDSmZyVkhBDBym4xug=; b=jNmT5ZLEhdxgLwZ1JmjTYZohGGLcRGo5QlTctu0MS3frEiFMEUXaGpZg+jvYT3ZcvG M2qhiugCFpTb8YY5zAvXzNABbYJMyedEjGG3zYnfpUs0to4p7AX6pHsSqW3BknHMKdOh xW1pWGAMRtsELQP5p4E5e9bgCp8/34qVkyD0Hn1MMOSDagsdKCALDjXW/OSj7QTchRhj rBY4r+Kl2X+661AYc1ypusciDcIhm2C1OyKwJmywgPYWQzCYa8qC43k6V5tE8VxBHHNe t6lEhbWKb03Psjt0clvsWR350fdV+Iww1XizChuSNVETxIx0Y6qRQP4MWxcpCF+aQLWc KoXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ruPMGqeWb/VXE6LVkwLB6ZypHxDSmZyVkhBDBym4xug=; b=oB6D0D8ro5XelzZQ4xcjcINBw0kDsM5fr7nK43HmT0LJXD+mz8JA+RzBKUIeUrvclj MiVFXeFhs7g7ezXHum9OeeRcxkjFJvWVlvk8UiS2DMDCzICT4i39QOupk5lchiGeFajR IyAoYTT/g6gfBfJ7nu6dXSDYc/9Kgbv0fdjjIrBg4j57VNnkbg7pAfaMBDlIDejvZZnX rkgIj9WbK/ijyodRJswbD5W/hIbtmR3kn8BDbEE2lnnbaxO9iMcgfIlvmjWa80l7/5Sm OQBDxCeKUmFUQ95drIwH1jTZqF9ZbAQTAwnYZY/YARbdfJIytgP1nJQvaKZqOxZOYhKo MK+A== X-Gm-Message-State: AOAM5314uZXVl87wDJp5CKzsJnXaepXrdA9NdjYZOQHYnHl9r6Pwx/MA NxW1G5jmLlXtmTzYv0MqW2Rw6eeNvNKI7w== X-Google-Smtp-Source: ABdhPJzyXG3H1K4h7sx1RNb4/P08gwVfbKjVatmlGKX4TiG66YC4kzeYyunGk200Y0WZtMj76BehBg== X-Received: by 2002:a17:903:22c7:b0:151:a594:bb85 with SMTP id y7-20020a17090322c700b00151a594bb85mr10846064plg.107.1646638875071; Sun, 06 Mar 2022 23:41:15 -0800 (PST) Received: from ip-172-31-19-208.ap-northeast-1.compute.internal (ec2-18-181-137-102.ap-northeast-1.compute.amazonaws.com. [18.181.137.102]) by smtp.gmail.com with ESMTPSA id p10-20020a637f4a000000b00373a2760775sm10878743pgn.2.2022.03.06.23.41.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 06 Mar 2022 23:41:14 -0800 (PST) From: Hyeonggon Yoo <42.hyeyoo@gmail.com> To: linux-mm@kvack.org Cc: Christoph Lameter , Pekka Enberg , David Rientjes , Joonsoo Kim , Andrew Morton , Vlastimil Babka , Marco Elver , Matthew WilCox , Roman Gushchin , linux-kernel@vger.kernel.org, 42.hyeyoo@gmail.com Subject: [PATCH v3 0/2] slab cleanups Date: Mon, 7 Mar 2022 07:40:54 +0000 Message-Id: <20220307074057.902222-1-42.hyeyoo@gmail.com> X-Mailer: git-send-email 2.33.1 MIME-Version: 1.0 X-Rspamd-Queue-Id: 567CD1C0007 X-Stat-Signature: ibnoc5k9m5skf44o58uagdsq8tk5qop8 Authentication-Results: imf18.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=jNmT5ZLE; spf=pass (imf18.hostedemail.com: domain of 42.hyeyoo@gmail.com designates 209.85.214.172 as permitted sender) smtp.mailfrom=42.hyeyoo@gmail.com; dmarc=pass (policy=none) header.from=gmail.com X-Rspam-User: X-Rspamd-Server: rspam08 X-HE-Tag: 1646638876-9768 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: Changes since v2: Adjusted feedback from Vlastimil. Thanks! Dropped kmalloc subsystem generalization patches. I did more work generalizing kmalloc subsystem. Now they look quite bigger. I'll send them as separate series with RFC. Changes since v1: Adjusted comments from Matthew, VLastimil, Rientjes. Thank you for feedback! Hello, these are cleanup patches for SLUB. Please consider them for slab-next :) Any comments will be appreciated. Thanks. Hyeonggon Yoo (2): mm/slub: limit number of node partial slabs only in cache creation mm/slub: refactor deactivate_slab() mm/slub.c | 105 +++++++++++++++++++++--------------------------------- 1 file changed, 41 insertions(+), 64 deletions(-)