Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1436776

Re: [RFC RESEND PATCH] swap: choose swap device according to numa node

From Yu Chen <yu.chen.surf@gmail.com>
Newsgroups linux.kernel
Subject Re: [RFC RESEND PATCH] swap: choose swap device according to numa node
Date 2016-07-05 08:00 +0200
Message-ID <rRryN-79U-11@gated-at.bofh.it> (permalink)
References <rRp3X-5L0-11@gated-at.bofh.it> <rRp3X-5L0-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue, Jul 5, 2016 at 11:19 AM, Aaron Lu <aaron.lu@intel.com> wrote:
> Resend:
> This is a resend, the original patch doesn't catch much attention.
> It may not be a big deal for swap devices that used to be hosted on
> HDD but with devices like 3D Xpoint to be used as swap device, it could
> make a real difference if we consider NUMA information when doing IO.
> Comments are appreciated, thanks for your time.
>
-------------------------%<-------------------------
> diff --git a/mm/vmscan.c b/mm/vmscan.c
> index 71b1c29948db..dd7e44a315b0 100644
> --- a/mm/vmscan.c
> +++ b/mm/vmscan.c
> @@ -3659,9 +3659,11 @@ void kswapd_stop(int nid)
>
>  static int __init kswapd_init(void)
>  {
> -       int nid;
> +       int nid, err;
>
> -       swap_setup();
> +       err = swap_setup();
> +       if (err)
> +               return err;
>         for_each_node_state(nid, N_MEMORY)
>                 kswapd_run(nid);
>         hotcpu_notifier(cpu_callback, 0);
In original implementation, although swap_setup failed,
the swapd would also be created, since swapd is
not only  used for swap out but also for other page reclaim,
so this change above might modify its semantic? Sorry if
I understand incorrectly.

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[RFC RESEND PATCH] swap: choose swap device according to numa node Aaron Lu <aaron.lu@intel.com> - 2016-07-05 05:20 +0200
  Re: [RFC RESEND PATCH] swap: choose swap device according to numa node Yu Chen <yu.chen.surf@gmail.com> - 2016-07-05 08:00 +0200
    Re: [RFC RESEND PATCH] swap: choose swap device according to numa  node Aaron Lu <aaron.lu@intel.com> - 2016-07-05 08:30 +0200

csiph-web