All of lore.kernel.org
 help / color / mirror / Atom feed
From: Baoquan He <bhe@redhat.com>
To: linux-mm@kvack.org
Cc: akpm@linux-foundation.org, chrisl@kernel.org, kasong@tencent.com,
	youngjun.park@lge.com, aaron.lu@intel.com, baohua@kernel.org,
	shikemeng@huaweicloud.com, nphamcs@gmail.com
Subject: Re: [PATCH v3 1/2] mm/swap: do not choose swap device according to numa node
Date: Thu, 2 Oct 2025 20:38:08 +0800	[thread overview]
Message-ID: <aN5yMD53yzAmC6dT@localhost> (raw)
In-Reply-To: <20250930063311.14126-2-bhe@redhat.com>

On 09/30/25 at 02:33pm, Baoquan He wrote:
> This reverts commit a2468cc9bfdf ("swap: choose swap device according
> to numa node").
> 
> After this patch, the behaviour will change back to pre-commit
> a2468cc9bfdf. Means the priority will be set from -1 then downwards by
> default, and when swapping, it will exhault swap device one by one
> according to priority from high to low. This is preparation work for
> later change.
> 
> [root@hp-dl385g10-03 ~]# swapon
> NAME       TYPE      SIZE   USED PRIO
> /dev/zram0 partition  16G    16G   -1
> /dev/zram1 partition  16G 966.2M   -2
> /dev/zram2 partition  16G     0B   -3
> /dev/zram3 partition  16G     0B   -4
> 
> Signed-off-by: Baoquan He <bhe@redhat.com>

Forgot Chris's for this patch:

Suggested-by: Chris Li <chrisl@kernel.org>


> ---
>  Documentation/admin-guide/mm/swap_numa.rst | 78 ----------------------
>  include/linux/swap.h                       | 11 +--
>  mm/swapfile.c                              | 76 ++++-----------------
>  3 files changed, 14 insertions(+), 151 deletions(-)
>  delete mode 100644 Documentation/admin-guide/mm/swap_numa.rst
......



  parent reply	other threads:[~2025-10-02 12:38 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-30  6:33 [PATCH v3 0/2] mm/swapfile.c: select the swap device with default priority round robin Baoquan He
2025-09-30  6:33 ` [PATCH v3 1/2] mm/swap: do not choose swap device according to numa node Baoquan He
2025-10-02  2:57   ` Chris Li
2025-10-02 12:38   ` Baoquan He [this message]
2025-09-30  6:33 ` [PATCH v3 2/2] mm/swap: select swap device with default priority round robin Baoquan He
2025-10-02  3:03   ` Chris Li
2025-10-02 12:40     ` Baoquan He
2025-10-02 12:39   ` Baoquan He
2025-10-02  3:21 ` [PATCH v3 0/2] mm/swapfile.c: select the " Baoquan He
2025-10-10  2:38   ` Chris Li

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=aN5yMD53yzAmC6dT@localhost \
    --to=bhe@redhat.com \
    --cc=aaron.lu@intel.com \
    --cc=akpm@linux-foundation.org \
    --cc=baohua@kernel.org \
    --cc=chrisl@kernel.org \
    --cc=kasong@tencent.com \
    --cc=linux-mm@kvack.org \
    --cc=nphamcs@gmail.com \
    --cc=shikemeng@huaweicloud.com \
    --cc=youngjun.park@lge.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.