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

2017-08-15 Thread Andrew Morton
On Tue, 15 Aug 2017 13:49:45 +0800 Aaron Lu wrote: > On Mon, Aug 14, 2017 at 04:33:37PM -0700, Andrew Morton wrote: > > On Mon, 14 Aug 2017 13:31:30 +0800 Aaron Lu wrote: > > > > > --- /dev/null > > > +++ b/Documentation/vm/swap_numa.txt > > > @@ -0,0 +1,18 @@ > > > +If the system has more than

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

2017-08-14 Thread Aaron Lu
On Mon, Aug 14, 2017 at 04:33:37PM -0700, Andrew Morton wrote: > On Mon, 14 Aug 2017 13:31:30 +0800 Aaron Lu wrote: > > > --- /dev/null > > +++ b/Documentation/vm/swap_numa.txt > > @@ -0,0 +1,18 @@ > > +If the system has more than one swap device and swap device has the node > > +information, we

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

2017-08-14 Thread Andrew Morton
On Mon, 14 Aug 2017 13:31:30 +0800 Aaron Lu wrote: > If the system has more than one swap device and swap device has the node > information, we can make use of this information to decide which swap > device to use in get_swap_pages() to get better performance. > > The current code uses a priorit

[PATCH] swap: choose swap device according to numa node

2017-08-13 Thread Aaron Lu
If the system has more than one swap device and swap device has the node information, we can make use of this information to decide which swap device to use in get_swap_pages() to get better performance. The current code uses a priority based list, swap_avail_list, to decide which swap device to u

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

2016-07-04 Thread Aaron Lu
On Tue, Jul 05, 2016 at 01:57:35PM +0800, Yu Chen wrote: > On Tue, Jul 5, 2016 at 11:19 AM, Aaron Lu 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 Xp

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

2016-07-04 Thread Yu Chen
On Tue, Jul 5, 2016 at 11:19 AM, Aaron Lu 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 i

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

2016-07-04 Thread Aaron Lu
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 a