From patchwork Thu Feb 29 14:26:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Song, Xiongwei" X-Patchwork-Id: 13577187 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 37D68C48BF6 for ; Thu, 29 Feb 2024 14:27:54 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id BAC5F6B009B; Thu, 29 Feb 2024 09:27:53 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id B0D4A6B009C; Thu, 29 Feb 2024 09:27:53 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 986D76B009E; Thu, 29 Feb 2024 09:27:53 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 805E46B009B for ; Thu, 29 Feb 2024 09:27:53 -0500 (EST) Received: from smtpin30.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 4365412138D for ; Thu, 29 Feb 2024 14:27:53 +0000 (UTC) X-FDA: 81845070426.30.3CE4180 Received: from mx0a-0064b401.pphosted.com (mx0a-0064b401.pphosted.com [205.220.166.238]) by imf26.hostedemail.com (Postfix) with ESMTP id 3F1FC140010 for ; Thu, 29 Feb 2024 14:27:46 +0000 (UTC) Authentication-Results: imf26.hostedemail.com; dkim=pass header.d=windriver.com header.s=PPS06212021 header.b=OODUZKCM; dmarc=pass (policy=reject) header.from=windriver.com; spf=temperror (imf26.hostedemail.com: error in processing during lookup of "prvs=3789080fb5=xiongwei.song@windriver.com": DNS error) smtp.mailfrom="prvs=3789080fb5=xiongwei.song@windriver.com" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1709216871; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=ZccVJUwzuY4xwuefFguz80ZL05Yed79XfC8Oc40ToN0=; b=onygITQ5zFUvlrJxMkzRtIyYFiM7n8O5fQWXKCWrE1NKsLwz0rTXKiixsWDWHZOgYk3ZMq /p2aBjjtw6HcsfOOfrC2XJy5DSDY5G165+rPTs2FJv747SeMBx1jmrxHv4WW1Mp4JgzB+/ 7kqSeUdqkHUHCtbUgqTWYWuVyhXWm9U= ARC-Authentication-Results: i=1; imf26.hostedemail.com; dkim=pass header.d=windriver.com header.s=PPS06212021 header.b=OODUZKCM; dmarc=pass (policy=reject) header.from=windriver.com; spf=temperror (imf26.hostedemail.com: error in processing during lookup of "prvs=3789080fb5=xiongwei.song@windriver.com": DNS error) smtp.mailfrom="prvs=3789080fb5=xiongwei.song@windriver.com" ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1709216871; a=rsa-sha256; cv=none; b=BjVTSz2VaiQ/ZAJoGnkclXE0RghYo+J+jw2Wqxuh+/ynwEApOHO9M99rxiLTBaXSP6t+1W bk/6gfi5B+vl3U1O/bqPHDjRmmHbH3jRKPKqpRobuxcVnvGv3Wez/3kXWsV8vmqD+T9v1d XKKKWQoKEfajJIHIO3zy6UoMT1g2vC4= Received: from pps.filterd (m0250809.ppops.net [127.0.0.1]) by mx0a-0064b401.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 41TCgk48007305; Thu, 29 Feb 2024 06:27:01 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=windriver.com; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s= PPS06212021; bh=ZccVJUwzuY4xwuefFguz80ZL05Yed79XfC8Oc40ToN0=; b= OODUZKCM8TkfcOP1tQAzoJY4FKkc5au4A18zoNkAN1v/s8CMewtwZ6/924wPIriP xliLAexkyhtoAve/tg/u89jbWMNG0ob7y6utbo2XMh7YPb2kCwDu2Jf2jcoihLNt 2Syl7R9MIjPQCA5zoI1AYxMe1daRHOp5beVw2XJs80BUi+KfcF4eDaG3G/cQFCOZ smAG+WoTjclGO6Ja+45lTu19eg5xSkQhB4+IZHuaURI12qF5cTPkrgf1RvoOoBxd 9GB0lI7HAb0PrgUNTZ8fqfn+t1MIqZSKGxYCMX39jr2zEt6swrMwRhVO4/5PeX3P UBWsx7P78wGv7Gx/wdhzvw== Received: from ala-exchng01.corp.ad.wrs.com (ala-exchng01.wrs.com [147.11.82.252]) by mx0a-0064b401.pphosted.com (PPS) with ESMTPS id 3wfgumn63g-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Thu, 29 Feb 2024 06:27:00 -0800 (PST) Received: from ala-exchng01.corp.ad.wrs.com (147.11.82.252) by ala-exchng01.corp.ad.wrs.com (147.11.82.252) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Thu, 29 Feb 2024 06:27:00 -0800 Received: from pek-lpd-ccm6.wrs.com (147.11.1.11) by ala-exchng01.corp.ad.wrs.com (147.11.82.252) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35 via Frontend Transport; Thu, 29 Feb 2024 06:26:56 -0800 From: Xiongwei Song To: , , , , CC: , , , , , , , , , Subject: [PATCH RESEND 2/2] cgroup/cpuset: Mark memory_spread_slab as obsolete Date: Thu, 29 Feb 2024 22:26:45 +0800 Message-ID: <20240229142645.1327831-2-xiongwei.song@windriver.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240229142645.1327831-1-xiongwei.song@windriver.com> References: <20240229142645.1327831-1-xiongwei.song@windriver.com> MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: musNlEUIeLC4UiknxofRDHvGthDzMcmt X-Proofpoint-GUID: musNlEUIeLC4UiknxofRDHvGthDzMcmt X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-02-29_02,2024-02-29_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 phishscore=0 priorityscore=1501 suspectscore=0 impostorscore=0 mlxscore=0 spamscore=0 adultscore=0 malwarescore=0 bulkscore=0 mlxlogscore=985 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2402120000 definitions=main-2402290111 X-Rspam-User: X-Stat-Signature: ook1cmw4xj6ozf8kwndektp37aannod9 X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 3F1FC140010 X-HE-Tag: 1709216866-746582 X-HE-Meta: U2FsdGVkX1/CgustXQkvoBNAwuVLzg/OH0njB704kGC5SwObQ0gRdrSHUYO6OoECiLeds6xuqHWNAcjcop52PoaE20u1VwGH0qrZFH0egWUW59zKf3TNDjzMALDJnecGDuNe2bXZ5zdOddlPBfw3R78WKASFi+Dj3UI06ymozQjDwZgVdo4etOUBu0h7c6LrRtcy0UvlSgKd0ozeXVuID1Zgq3mL1opd180fYTMftwX+LavnqIl9kpbPRgRM0cbx6CL3C+/IKKVt5+V1Oj2dJuWXHGHx9JL1nONi4yMenUf+4ST3RT4XmrLQz8SyB0bvfnaMhS7WDmdMj/uuMNYzU6tbXwCM5DmAnybTSwhkggcsUKAnAh9UJuiVC6Hh+6XAKSeg3lftMU21ZQhL/ZSInl6m8MfAg2HNXEnMG7NAqeAAREH/d0QCfVoteUCqBam2v58u2As7Z9xwW4cYRkL1GsHHXidJRXOoNnz7PXycuZTX9zEhQluRLnGv88h/QIyNgpCTATvFxL+zxBAS8DeQWwtDLT59oTG84gKrFSqNT/RZkwbdYUQqrTOwZ90ZEXz21tg1E88UcYqWqjBoULl6JNwB7l83hyvEyIg5LPIuPukpiS/5PGtFOuwyU0pxAP5RpO5ML6vrqz6H4l11+U1eCrTQdvKjmwMe0EjLPlkSO2gX3jDNfHi7+K9LW+c2mQqEM1PgOgFJ3rg2FLvH4gbFwcWiZNByR40ocb8lj8TgCPLJft7FUysdgJYMmW0FbsfijmbXgHeEnm3wsGeJtONaUR2WLqF+TcKH8kYZkaet0UNkmI5AUrv4hABKihXq83OhRFgpfR2be9dLW8uj0PV5lydAHKVMtzThFF9/KdLJ9hOUQctSasx8+hRhQePh3MsJ36+uUb5MSOzYNYKquekma2rHIFqzlWgGLQlz0GXpeyb8dAoTVr6cJ6ptXvDvJRm5ua/JEwpbOxBRoprmge6 lGsguV/G BWE7O1TEova4gvCzSQU+hffpHVfD7OMx5Iwxrj2aKh5a9gYSrdZudPgQ/g/JtRMu9zXl8MQ/pOVgAj6Mnp2Qc9hfSCcvfRs3Zkvbh 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: List-Subscribe: List-Unsubscribe: We've removed the SLAG allocator, cpuset_do_slab_mem_spread() and SLAB_MEM_SPREAD, memory_spread_slab is a no-op now. We can mark memory_spread_slab as obsolete in case someone still wants to use it after cpuset_do_slab_mem_spread() removed. For more details, please check [1]. [1] https://lore.kernel.org/lkml/32bc1403-49da-445a-8c00-9686a3b0d6a3@redhat.com/T/#m8e292e21b00f95a4bb8086371fa7387fa4ea8f60 Signed-off-by: Xiongwei Song --- Sorry, I made a mistake with linux-mm list. Correct linux-mmc to linux-mm. --- Documentation/admin-guide/cgroup-v1/cpusets.rst | 2 +- kernel/cgroup/cpuset.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Documentation/admin-guide/cgroup-v1/cpusets.rst b/Documentation/admin-guide/cgroup-v1/cpusets.rst index ae646d621a8a..88d0e7fa2ee0 100644 --- a/Documentation/admin-guide/cgroup-v1/cpusets.rst +++ b/Documentation/admin-guide/cgroup-v1/cpusets.rst @@ -179,7 +179,7 @@ files describing that cpuset: - cpuset.mem_hardwall flag: is memory allocation hardwalled - cpuset.memory_pressure: measure of how much paging pressure in cpuset - cpuset.memory_spread_page flag: if set, spread page cache evenly on allowed nodes - - cpuset.memory_spread_slab flag: if set, spread slab cache evenly on allowed nodes + - cpuset.memory_spread_slab flag: IT'S OBSOLETE. Please don't use it anymore - cpuset.sched_load_balance flag: if set, load balance within CPUs on that cpuset - cpuset.sched_relax_domain_level: the searching range when migrating tasks diff --git a/kernel/cgroup/cpuset.c b/kernel/cgroup/cpuset.c index ba36c073304a..728d06fe9382 100644 --- a/kernel/cgroup/cpuset.c +++ b/kernel/cgroup/cpuset.c @@ -3897,6 +3897,9 @@ static struct cftype legacy_files[] = { }, { + /* It's obsolete. Please don't use it anymore. We will remove it + * in the future. + */ .name = "memory_spread_slab", .read_u64 = cpuset_read_u64, .write_u64 = cpuset_write_u64,