Message ID | 20220919180634.45958-1-ryncsn@gmail.com (mailing list archive) |
---|---|
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 1C5B3C6FA86 for <linux-mm@archiver.kernel.org>; Mon, 19 Sep 2022 18:06:51 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 208C6940007; Mon, 19 Sep 2022 14:06:51 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 1B80A6B0072; Mon, 19 Sep 2022 14:06:51 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 07FC1940007; Mon, 19 Sep 2022 14:06:51 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id EB8F96B0071 for <linux-mm@kvack.org>; Mon, 19 Sep 2022 14:06:50 -0400 (EDT) Received: from smtpin12.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id BA57D120854 for <linux-mm@kvack.org>; Mon, 19 Sep 2022 18:06:50 +0000 (UTC) X-FDA: 79929615780.12.B3BB780 Received: from mail-pj1-f44.google.com (mail-pj1-f44.google.com [209.85.216.44]) by imf18.hostedemail.com (Postfix) with ESMTP id 5B2A71C0058 for <linux-mm@kvack.org>; Mon, 19 Sep 2022 18:06:50 +0000 (UTC) Received: by mail-pj1-f44.google.com with SMTP id fv3so493197pjb.0 for <linux-mm@kvack.org>; Mon, 19 Sep 2022 11:06:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:reply-to:message-id:date :subject:cc:to:from:from:to:cc:subject:date; bh=gEJQAVOMzbt4PPx+Qy3opmg3geJE7rZvH1CdGnwIjt0=; b=nbulrSye1Ljiu3ZTZKiIiuL+PXrsz2uUKYqD8NYqbUSgSm3Vi0gErRmMJ0GPmvae9i uFrQSoh1Dekn6R4JT7YM9d2sB+smEUc5gTVkoLOgpOXTfVVq5yRmFpBMPNiY+OWHd1Kj 7sFgW+7uvTFADWLZukSZmOygnPnhuEFahpb4O1RUVtEByOp/h4uLCqIzCz2MARhjf316 CrtqEu1wm2L0h+YlZ0T1jzFRka98lhHFmUQAsoubRrqiucMdFSGJUbf948tBw19kEGIp Y1ZOXVA7Lx/gNKOo6xHFKUxWeh3vBVe2/ypemZtIy0k2iK3bg1qmnklw+AkaME+BTNKX jTXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:reply-to:message-id:date :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date; bh=gEJQAVOMzbt4PPx+Qy3opmg3geJE7rZvH1CdGnwIjt0=; b=JyE/AwY3kt4Q7FnTd88OEd/dLtneCsisj4YbCsSHGovToZI90GNeSjdO+Bc0Icw2N3 YZmcuyTHHqtTMaTvprDIMYRBdEk91f/Xj9EkZHowoILULwcr+fjBMs2QS72JpR3X2BmX Z0OgtnbHiC9RPWBi47fyivTiqh0GWnVWjM/Bm+Mq/eV9WGDgHqX95AtNAuLOoUzr9XjX mfm/hdOjyM/rDhgCTGK0WV1dXiOBzzwErCpzialIMmQqt5KYR3jJaKTDRbLLXFO3azmw ACMfuLiy7hQ315SqxfJYmWC50K3GXwZpyW0qbNDgFoLl42z37xD/Vo9wpIhiCf7wu3gc Vjbg== X-Gm-Message-State: ACrzQf22u+8tqfAe1dpCFwaL7Jmd5fAm78MRLv7JRLsqjMgnu+zoKF8k trjvKdweey+n/gOFp8Es6DI= X-Google-Smtp-Source: AMsMyM5kYJs2A7dAyc++tZB14m9oF8eF+ZjYUe5y9ruXb2TlBiIiCmYHqKap33TnVIIvXllSCIIZfg== X-Received: by 2002:a17:903:41c9:b0:176:b9df:c743 with SMTP id u9-20020a17090341c900b00176b9dfc743mr967826ple.162.1663610809289; Mon, 19 Sep 2022 11:06:49 -0700 (PDT) Received: from KASONG-MB0.tencent.com ([115.171.41.135]) by smtp.gmail.com with ESMTPSA id u21-20020a632355000000b0041c30def5e8sm14176654pgm.33.2022.09.19.11.06.46 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 19 Sep 2022 11:06:48 -0700 (PDT) From: Kairui Song <ryncsn@gmail.com> To: cgroups@vger.kernel.org, linux-mm@kvack.org Cc: Johannes Weiner <hannes@cmpxchg.org>, Michal Hocko <mhocko@kernel.org>, Roman Gushchin <roman.gushchin@linux.dev>, Shakeel Butt <shakeelb@google.com>, Muchun Song <songmuchun@bytedance.com>, Andrew Morton <akpm@linux-foundation.org>, linux-kernel@vger.kernel.org, Kairui Song <kasong@tencent.com> Subject: [PATCH v2 0/2] mm: memcontrol: cleanup and optimize for two accounting params Date: Tue, 20 Sep 2022 02:06:32 +0800 Message-Id: <20220919180634.45958-1-ryncsn@gmail.com> X-Mailer: git-send-email 2.35.2 Reply-To: Kairui Song <kasong@tencent.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1663610810; h=from:from:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=gEJQAVOMzbt4PPx+Qy3opmg3geJE7rZvH1CdGnwIjt0=; b=obC5MYXvMHoC6lqM5CtCPrM0sPjyTos0zBupQm86QuH0XBzQp3VwUgqyaFpHlX9WkxueT0 0ov48Nf+Cy5K+H3XU0SbrfvCy87grn3sUY5ZfoeEiJgAnDCDuofffq2T8N4WedwihPjGHh Be8N3MHmmMcLXrxP/JywsBpz6idN4Ps= ARC-Authentication-Results: i=1; imf18.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=nbulrSye; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf18.hostedemail.com: domain of ryncsn@gmail.com designates 209.85.216.44 as permitted sender) smtp.mailfrom=ryncsn@gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1663610810; a=rsa-sha256; cv=none; b=k9HCDPQFEBWpm66k6SR6PtzxIthXwHquqlBfIsO7igbrYNLWBb1J2PJbZQdZ4LhEaQVplN 3N1+fVmP7oJfPw3rbVMUNOCNAwEmN5Vf9ke05BBxohlEUcMpIAd+K01qzf7pD8Zi+gegf9 lob4/ZqORPW9VPvKK5IMdYJ8MR/rejo= X-Stat-Signature: dox69aki7h59shau81ixqijney5ghqur X-Rspamd-Queue-Id: 5B2A71C0058 Authentication-Results: imf18.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=nbulrSye; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf18.hostedemail.com: domain of ryncsn@gmail.com designates 209.85.216.44 as permitted sender) smtp.mailfrom=ryncsn@gmail.com X-Rspam-User: X-Rspamd-Server: rspam10 X-HE-Tag: 1663610810-768198 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: <linux-mm.kvack.org> |
Series |
mm: memcontrol: cleanup and optimize for two accounting params
|
expand
|
From: Kairui Song <kasong@tencent.com> V2 of "[PATCH 0/2] mm: memcontrol: cleanup and optimize for accounting params". Patch 1/2 is a minor cleanup for kmem accouting path. Patch 2/2 optimizes some hot paths by making cgroup_memory_noswap a static key, benchmark shows swap paths now have a ~5% lower overhead. Update from V1: - Collect Acked-by for patch 2/2 from Michal Hocko, Thanks! - Simplify patch 1/1, don't drop mem_cgroup_kmem_disabled and only change one call site as a minor clean up, update commit message for patch 2/2, as suggested by Michal Hocko. Kairui Song (2): mm: memcontrol: use memcg_kmem_enabled in count_objcg_event mm: memcontrol: make cgroup_memory_noswap a static key include/linux/memcontrol.h | 2 +- mm/memcontrol.c | 27 +++++++++++++++++++-------- 2 files changed, 20 insertions(+), 9 deletions(-)