From: Vlastimil Babka <vbabka@suse.cz>
To: akpm@linux-foundation.org, cl@linux.com, guro@fb.com,
hannes@cmpxchg.org, iamjoonsoo.kim@lge.com, longman@redhat.com,
mhocko@kernel.org, mm-commits@vger.kernel.org,
penberg@kernel.org, rientjes@google.com, sfr@canb.auug.org.au,
shakeelb@google.com, vdavydov.dev@gmail.com
Subject: Re: + mm-memcg-slab-create-a-new-set-of-kmalloc-cg-n-caches-v5.patch added to -mm tree
Date: Thu, 13 May 2021 13:44:29 +0200 [thread overview]
Message-ID: <2903d6df-b89a-d93b-546d-4944210a6fd8@suse.cz> (raw)
In-Reply-To: <20210513003326.ZvcnI0LXP%akpm@linux-foundation.org>
On 5/13/21 2:33 AM, akpm@linux-foundation.org wrote:
> --- a/mm/internal.h~mm-memcg-slab-create-a-new-set-of-kmalloc-cg-n-caches-v5
> +++ a/mm/internal.h
> @@ -116,11 +116,6 @@ extern void putback_lru_page(struct page
> extern pmd_t *mm_find_pmd(struct mm_struct *mm, unsigned long address);
>
> /*
> - * in mm/memcontrol.c:
> - */
> -extern bool cgroup_memory_nokmem;
> -
> -/*
This...
> * in mm/page_alloc.c
> */
>
> --- a/mm/memcontrol.c~mm-memcg-slab-create-a-new-set-of-kmalloc-cg-n-caches-v5
> +++ a/mm/memcontrol.c
> @@ -83,7 +83,7 @@ DEFINE_PER_CPU(struct mem_cgroup *, int_
> static bool cgroup_memory_nosocket;
>
> /* Kernel memory accounting disabled? */
> -bool cgroup_memory_nokmem;
> +static bool cgroup_memory_nokmem;
...
>
> /* Whether the swap controller is active */
> #ifdef CONFIG_MEMCG_SWAP
> --- a/mm/slab_common.c~mm-memcg-slab-create-a-new-set-of-kmalloc-cg-n-caches-v5
> +++ a/mm/slab_common.c
> @@ -841,15 +841,10 @@ void __init setup_kmalloc_cache_index_ta
> static void __init
> new_kmalloc_cache(int idx, enum kmalloc_cache_type type, slab_flags_t flags)
> {
> - if (type == KMALLOC_RECLAIM) {
> + if (type == KMALLOC_RECLAIM)
> flags |= SLAB_RECLAIM_ACCOUNT;
> - } else if (IS_ENABLED(CONFIG_MEMCG_KMEM) && (type == KMALLOC_CGROUP)) {
> - if (cgroup_memory_nokmem) {
> - kmalloc_caches[type][idx] = kmalloc_caches[KMALLOC_NORMAL][idx];
> - return;
> - }
... and this is undoing
mm-memcg-slab-create-a-new-set-of-kmalloc-cg-n-caches-fix.patch
I guess that wasn't intended?
> + else if (IS_ENABLED(CONFIG_MEMCG_KMEM) && (type == KMALLOC_CGROUP))
> flags |= SLAB_ACCOUNT;
> - }
>
> kmalloc_caches[type][idx] = create_kmalloc_cache(
> kmalloc_info[idx].name[type],
> _
>
> Patches currently in -mm which might be from longman@redhat.com are
>
> mm-memcg-move-mod_objcg_state-to-memcontrolc.patch
> mm-memcg-cache-vmstat-data-in-percpu-memcg_stock_pcp.patch
> mm-memcg-improve-refill_obj_stock-performance.patch
> mm-memcg-optimize-user-context-object-stock-access.patch
> mm-memcg-slab-properly-set-up-gfp-flags-for-objcg-pointer-array.patch
> mm-memcg-slab-create-a-new-set-of-kmalloc-cg-n-caches.patch
> mm-memcg-slab-create-a-new-set-of-kmalloc-cg-n-caches-v5.patch
> mm-memcg-slab-disable-cache-merging-for-kmalloc_normal-caches.patch
>
next prev parent reply other threads:[~2021-05-13 11:45 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-13 0:33 + mm-memcg-slab-create-a-new-set-of-kmalloc-cg-n-caches-v5.patch added to -mm tree akpm
2021-05-13 1:20 ` Stephen Rothwell
2021-05-13 11:44 ` Vlastimil Babka [this message]
2021-05-13 13:47 ` Waiman Long
2021-05-13 19:40 ` Andrew Morton
-- strict thread matches above, loose matches on Subject: below --
2021-05-12 23:44 akpm
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2903d6df-b89a-d93b-546d-4944210a6fd8@suse.cz \
--to=vbabka@suse.cz \
--cc=akpm@linux-foundation.org \
--cc=cl@linux.com \
--cc=guro@fb.com \
--cc=hannes@cmpxchg.org \
--cc=iamjoonsoo.kim@lge.com \
--cc=linux-kernel@vger.kernel.org \
--cc=longman@redhat.com \
--cc=mhocko@kernel.org \
--cc=mm-commits@vger.kernel.org \
--cc=penberg@kernel.org \
--cc=rientjes@google.com \
--cc=sfr@canb.auug.org.au \
--cc=shakeelb@google.com \
--cc=vdavydov.dev@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.