From: Andrew Morton <akpm@linux-foundation.org>
To: Robin Holt <holt@sgi.com>
Cc: mel@csn.ul.ie, holt@sgi.com, kosaki.motohiro@jp.fujitsu.com,
cl@linux-foundation.org, riel@redhat.com, yanmin.zhang@intel.com,
fengguang.wu@intel.com, linux-ia64@vger.kernel.org,
linuxppc-dev@ozlabs.org, linux-kernel@vger.kernel.org,
linux-mm@kvack.org
Subject: Re: [PATCH v4] zone_reclaim is always 0 by default
Date: Tue, 09 Jun 2009 19:47:10 +0000 [thread overview]
Message-ID: <20090609124710.87da85ce.akpm@linux-foundation.org> (raw)
In-Reply-To: <20090609120213.GA18753@attica.americas.sgi.com>
On Tue, 9 Jun 2009 07:02:14 -0500
Robin Holt <holt@sgi.com> wrote:
> On Tue, Jun 09, 2009 at 11:37:55AM +0100, Mel Gorman wrote:
> > On Tue, Jun 09, 2009 at 04:55:07AM -0500, Robin Holt wrote:
> > > On Mon, Jun 08, 2009 at 12:50:48PM +0100, Mel Gorman wrote:
> > >
> > > Let me start by saying I agree completely with everything you wrote and
> > > still disagree with this patch, but was willing to compromise and work
> > > around this for our upcoming x86_64 machine by putting a "value add"
> > > into our packaging of adding a sysctl that turns reclaim back on.
> > >
> >
> > To be honest, I'm more leaning towards a NACK than an ACK on this one. I
> > don't support enough NUMA machines to feel strongly enough about it but
> > unconditionally setting zone_reclaim_mode to 0 on x86-64 just because i7's
> > might be there seems ill-advised to me and will have other consequences for
> > existing more traditional x86-64 NUMA machines.
>
> I was sort-of planning on coming up with an x86_64 arch specific function
> for setting zone_reclaim_mode, but didn't like the direction things
> were going.
>
> Something to the effect of...
> --- 20090609.orig/mm/page_alloc.c 2009-06-09 06:51:34.000000000 -0500
> +++ 20090609/mm/page_alloc.c 2009-06-09 06:55:00.160762069 -0500
> @@ -2326,12 +2326,7 @@ static void build_zonelists(pg_data_t *p
> while ((node = find_next_best_node(local_node, &used_mask)) >= 0) {
> int distance = node_distance(local_node, node);
>
> - /*
> - * If another node is sufficiently far away then it is better
> - * to reclaim pages in a zone before going off node.
> - */
> - if (distance > RECLAIM_DISTANCE)
> - zone_reclaim_mode = 1;
> + zone_reclaim_mode = arch_zone_reclaim_mode(distance);
>
> /*
> * We don't want to pressure a particular node.
>
> And then letting each arch define an arch_zone_reclaim_mode(). If other
> values are needed in the determination, we would add parameters to
> reflect this.
>
> For ia64, add
>
> static inline ia64_zone_reclaim_mode(int distance)
> {
> if (distance > 15)
> return 1;
> }
>
> #define arch_zone_reclaim_mode(_d) ia64_zone_reclaim_mode(_d)
>
>
> Then, inside x86_64_zone_reclaim_mode(), I could make it something like
> if (distance > 40 || is_uv_system())
> return 1;
>
> In the end, I didn't think this fight was worth fighting given how ugly
> this felt. Upon second thought, I am beginning to think it is not that
> bad, but I also don't think it is that good either.
>
We've done worse before now...
Is it not possible to work out at runtime whether zone reclaim mode is
beneficial?
Given that zone_reclaim_mode is settable from initscripts, why all the
fuss?
Is anyone testing RECLAIM_WRITE and RECLAIM_SWAP, btw?
The root cause of this problem: having something called "mode". Any
time we put a "mode" in the kernel, we get in a mess trying to work out
when to set it and to what.
I think I'll drop this patch for now.
WARNING: multiple messages have this Message-ID (diff)
From: Andrew Morton <akpm@linux-foundation.org>
To: Robin Holt <holt@sgi.com>
Cc: riel@redhat.com, cl@linux-foundation.org, linux-mm@kvack.org,
mel@csn.ul.ie, yanmin.zhang@intel.com,
linux-kernel@vger.kernel.org, linuxppc-dev@ozlabs.org,
holt@sgi.com, kosaki.motohiro@jp.fujitsu.com,
linux-ia64@vger.kernel.org, fengguang.wu@intel.com
Subject: Re: [PATCH v4] zone_reclaim is always 0 by default
Date: Tue, 9 Jun 2009 12:47:10 -0700 [thread overview]
Message-ID: <20090609124710.87da85ce.akpm@linux-foundation.org> (raw)
In-Reply-To: <20090609120213.GA18753@attica.americas.sgi.com>
On Tue, 9 Jun 2009 07:02:14 -0500
Robin Holt <holt@sgi.com> wrote:
> On Tue, Jun 09, 2009 at 11:37:55AM +0100, Mel Gorman wrote:
> > On Tue, Jun 09, 2009 at 04:55:07AM -0500, Robin Holt wrote:
> > > On Mon, Jun 08, 2009 at 12:50:48PM +0100, Mel Gorman wrote:
> > >
> > > Let me start by saying I agree completely with everything you wrote and
> > > still disagree with this patch, but was willing to compromise and work
> > > around this for our upcoming x86_64 machine by putting a "value add"
> > > into our packaging of adding a sysctl that turns reclaim back on.
> > >
> >
> > To be honest, I'm more leaning towards a NACK than an ACK on this one. I
> > don't support enough NUMA machines to feel strongly enough about it but
> > unconditionally setting zone_reclaim_mode to 0 on x86-64 just because i7's
> > might be there seems ill-advised to me and will have other consequences for
> > existing more traditional x86-64 NUMA machines.
>
> I was sort-of planning on coming up with an x86_64 arch specific function
> for setting zone_reclaim_mode, but didn't like the direction things
> were going.
>
> Something to the effect of...
> --- 20090609.orig/mm/page_alloc.c 2009-06-09 06:51:34.000000000 -0500
> +++ 20090609/mm/page_alloc.c 2009-06-09 06:55:00.160762069 -0500
> @@ -2326,12 +2326,7 @@ static void build_zonelists(pg_data_t *p
> while ((node = find_next_best_node(local_node, &used_mask)) >= 0) {
> int distance = node_distance(local_node, node);
>
> - /*
> - * If another node is sufficiently far away then it is better
> - * to reclaim pages in a zone before going off node.
> - */
> - if (distance > RECLAIM_DISTANCE)
> - zone_reclaim_mode = 1;
> + zone_reclaim_mode = arch_zone_reclaim_mode(distance);
>
> /*
> * We don't want to pressure a particular node.
>
> And then letting each arch define an arch_zone_reclaim_mode(). If other
> values are needed in the determination, we would add parameters to
> reflect this.
>
> For ia64, add
>
> static inline ia64_zone_reclaim_mode(int distance)
> {
> if (distance > 15)
> return 1;
> }
>
> #define arch_zone_reclaim_mode(_d) ia64_zone_reclaim_mode(_d)
>
>
> Then, inside x86_64_zone_reclaim_mode(), I could make it something like
> if (distance > 40 || is_uv_system())
> return 1;
>
> In the end, I didn't think this fight was worth fighting given how ugly
> this felt. Upon second thought, I am beginning to think it is not that
> bad, but I also don't think it is that good either.
>
We've done worse before now...
Is it not possible to work out at runtime whether zone reclaim mode is
beneficial?
Given that zone_reclaim_mode is settable from initscripts, why all the
fuss?
Is anyone testing RECLAIM_WRITE and RECLAIM_SWAP, btw?
The root cause of this problem: having something called "mode". Any
time we put a "mode" in the kernel, we get in a mess trying to work out
when to set it and to what.
I think I'll drop this patch for now.
WARNING: multiple messages have this Message-ID (diff)
From: Andrew Morton <akpm@linux-foundation.org>
To: Robin Holt <holt@sgi.com>
Cc: mel@csn.ul.ie, holt@sgi.com, kosaki.motohiro@jp.fujitsu.com,
cl@linux-foundation.org, riel@redhat.com, yanmin.zhang@intel.com,
fengguang.wu@intel.com, linux-ia64@vger.kernel.org,
linuxppc-dev@ozlabs.org, linux-kernel@vger.kernel.org,
linux-mm@kvack.org
Subject: Re: [PATCH v4] zone_reclaim is always 0 by default
Date: Tue, 9 Jun 2009 12:47:10 -0700 [thread overview]
Message-ID: <20090609124710.87da85ce.akpm@linux-foundation.org> (raw)
In-Reply-To: <20090609120213.GA18753@attica.americas.sgi.com>
On Tue, 9 Jun 2009 07:02:14 -0500
Robin Holt <holt@sgi.com> wrote:
> On Tue, Jun 09, 2009 at 11:37:55AM +0100, Mel Gorman wrote:
> > On Tue, Jun 09, 2009 at 04:55:07AM -0500, Robin Holt wrote:
> > > On Mon, Jun 08, 2009 at 12:50:48PM +0100, Mel Gorman wrote:
> > >
> > > Let me start by saying I agree completely with everything you wrote and
> > > still disagree with this patch, but was willing to compromise and work
> > > around this for our upcoming x86_64 machine by putting a "value add"
> > > into our packaging of adding a sysctl that turns reclaim back on.
> > >
> >
> > To be honest, I'm more leaning towards a NACK than an ACK on this one. I
> > don't support enough NUMA machines to feel strongly enough about it but
> > unconditionally setting zone_reclaim_mode to 0 on x86-64 just because i7's
> > might be there seems ill-advised to me and will have other consequences for
> > existing more traditional x86-64 NUMA machines.
>
> I was sort-of planning on coming up with an x86_64 arch specific function
> for setting zone_reclaim_mode, but didn't like the direction things
> were going.
>
> Something to the effect of...
> --- 20090609.orig/mm/page_alloc.c 2009-06-09 06:51:34.000000000 -0500
> +++ 20090609/mm/page_alloc.c 2009-06-09 06:55:00.160762069 -0500
> @@ -2326,12 +2326,7 @@ static void build_zonelists(pg_data_t *p
> while ((node = find_next_best_node(local_node, &used_mask)) >= 0) {
> int distance = node_distance(local_node, node);
>
> - /*
> - * If another node is sufficiently far away then it is better
> - * to reclaim pages in a zone before going off node.
> - */
> - if (distance > RECLAIM_DISTANCE)
> - zone_reclaim_mode = 1;
> + zone_reclaim_mode = arch_zone_reclaim_mode(distance);
>
> /*
> * We don't want to pressure a particular node.
>
> And then letting each arch define an arch_zone_reclaim_mode(). If other
> values are needed in the determination, we would add parameters to
> reflect this.
>
> For ia64, add
>
> static inline ia64_zone_reclaim_mode(int distance)
> {
> if (distance > 15)
> return 1;
> }
>
> #define arch_zone_reclaim_mode(_d) ia64_zone_reclaim_mode(_d)
>
>
> Then, inside x86_64_zone_reclaim_mode(), I could make it something like
> if (distance > 40 || is_uv_system())
> return 1;
>
> In the end, I didn't think this fight was worth fighting given how ugly
> this felt. Upon second thought, I am beginning to think it is not that
> bad, but I also don't think it is that good either.
>
We've done worse before now...
Is it not possible to work out at runtime whether zone reclaim mode is
beneficial?
Given that zone_reclaim_mode is settable from initscripts, why all the
fuss?
Is anyone testing RECLAIM_WRITE and RECLAIM_SWAP, btw?
The root cause of this problem: having something called "mode". Any
time we put a "mode" in the kernel, we get in a mess trying to work out
when to set it and to what.
I think I'll drop this patch for now.
WARNING: multiple messages have this Message-ID (diff)
From: Andrew Morton <akpm@linux-foundation.org>
To: Robin Holt <holt@sgi.com>
Cc: mel@csn.ul.ie, kosaki.motohiro@jp.fujitsu.com,
cl@linux-foundation.org, riel@redhat.com, yanmin.zhang@intel.com,
fengguang.wu@intel.com, linux-ia64@vger.kernel.org,
linuxppc-dev@ozlabs.org, linux-kernel@vger.kernel.org,
linux-mm@kvack.org
Subject: Re: [PATCH v4] zone_reclaim is always 0 by default
Date: Tue, 9 Jun 2009 12:47:10 -0700 [thread overview]
Message-ID: <20090609124710.87da85ce.akpm@linux-foundation.org> (raw)
In-Reply-To: <20090609120213.GA18753@attica.americas.sgi.com>
On Tue, 9 Jun 2009 07:02:14 -0500
Robin Holt <holt@sgi.com> wrote:
> On Tue, Jun 09, 2009 at 11:37:55AM +0100, Mel Gorman wrote:
> > On Tue, Jun 09, 2009 at 04:55:07AM -0500, Robin Holt wrote:
> > > On Mon, Jun 08, 2009 at 12:50:48PM +0100, Mel Gorman wrote:
> > >
> > > Let me start by saying I agree completely with everything you wrote and
> > > still disagree with this patch, but was willing to compromise and work
> > > around this for our upcoming x86_64 machine by putting a "value add"
> > > into our packaging of adding a sysctl that turns reclaim back on.
> > >
> >
> > To be honest, I'm more leaning towards a NACK than an ACK on this one. I
> > don't support enough NUMA machines to feel strongly enough about it but
> > unconditionally setting zone_reclaim_mode to 0 on x86-64 just because i7's
> > might be there seems ill-advised to me and will have other consequences for
> > existing more traditional x86-64 NUMA machines.
>
> I was sort-of planning on coming up with an x86_64 arch specific function
> for setting zone_reclaim_mode, but didn't like the direction things
> were going.
>
> Something to the effect of...
> --- 20090609.orig/mm/page_alloc.c 2009-06-09 06:51:34.000000000 -0500
> +++ 20090609/mm/page_alloc.c 2009-06-09 06:55:00.160762069 -0500
> @@ -2326,12 +2326,7 @@ static void build_zonelists(pg_data_t *p
> while ((node = find_next_best_node(local_node, &used_mask)) >= 0) {
> int distance = node_distance(local_node, node);
>
> - /*
> - * If another node is sufficiently far away then it is better
> - * to reclaim pages in a zone before going off node.
> - */
> - if (distance > RECLAIM_DISTANCE)
> - zone_reclaim_mode = 1;
> + zone_reclaim_mode = arch_zone_reclaim_mode(distance);
>
> /*
> * We don't want to pressure a particular node.
>
> And then letting each arch define an arch_zone_reclaim_mode(). If other
> values are needed in the determination, we would add parameters to
> reflect this.
>
> For ia64, add
>
> static inline ia64_zone_reclaim_mode(int distance)
> {
> if (distance > 15)
> return 1;
> }
>
> #define arch_zone_reclaim_mode(_d) ia64_zone_reclaim_mode(_d)
>
>
> Then, inside x86_64_zone_reclaim_mode(), I could make it something like
> if (distance > 40 || is_uv_system())
> return 1;
>
> In the end, I didn't think this fight was worth fighting given how ugly
> this felt. Upon second thought, I am beginning to think it is not that
> bad, but I also don't think it is that good either.
>
We've done worse before now...
Is it not possible to work out at runtime whether zone reclaim mode is
beneficial?
Given that zone_reclaim_mode is settable from initscripts, why all the
fuss?
Is anyone testing RECLAIM_WRITE and RECLAIM_SWAP, btw?
The root cause of this problem: having something called "mode". Any
time we put a "mode" in the kernel, we get in a mess trying to work out
when to set it and to what.
I think I'll drop this patch for now.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2009-06-09 19:47 UTC|newest]
Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-04 10:23 [PATCH v4] zone_reclaim is always 0 by default KOSAKI Motohiro
2009-06-04 10:23 ` KOSAKI Motohiro
2009-06-04 10:23 ` KOSAKI Motohiro
2009-06-04 10:59 ` Wu Fengguang
2009-06-04 10:59 ` Wu Fengguang
2009-06-04 10:59 ` Wu Fengguang
2009-06-04 10:59 ` Wu Fengguang
2009-06-04 12:24 ` Robin Holt
2009-06-04 12:24 ` Robin Holt
2009-06-04 12:24 ` Robin Holt
2009-06-04 12:24 ` Robin Holt
2009-06-08 11:50 ` Mel Gorman
2009-06-08 11:50 ` Mel Gorman
2009-06-08 11:50 ` Mel Gorman
2009-06-08 11:50 ` Mel Gorman
2009-06-09 9:55 ` Robin Holt
2009-06-09 9:55 ` Robin Holt
2009-06-09 9:55 ` Robin Holt
2009-06-09 9:55 ` Robin Holt
2009-06-09 10:37 ` Mel Gorman
2009-06-09 10:37 ` Mel Gorman
2009-06-09 10:37 ` Mel Gorman
2009-06-09 10:37 ` Mel Gorman
2009-06-09 12:02 ` Robin Holt
2009-06-09 12:02 ` Robin Holt
2009-06-09 12:02 ` Robin Holt
2009-06-09 12:02 ` Robin Holt
2009-06-09 19:47 ` Andrew Morton [this message]
2009-06-09 19:47 ` Andrew Morton
2009-06-09 19:47 ` Andrew Morton
2009-06-09 19:47 ` Andrew Morton
2009-06-09 13:48 ` KOSAKI Motohiro
2009-06-09 13:48 ` KOSAKI Motohiro
2009-06-09 13:48 ` KOSAKI Motohiro
2009-06-09 13:48 ` KOSAKI Motohiro
2009-06-09 14:38 ` Mel Gorman
2009-06-09 14:38 ` Mel Gorman
2009-06-09 14:38 ` Mel Gorman
2009-06-09 14:38 ` Mel Gorman
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=20090609124710.87da85ce.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=cl@linux-foundation.org \
--cc=fengguang.wu@intel.com \
--cc=holt@sgi.com \
--cc=kosaki.motohiro@jp.fujitsu.com \
--cc=linux-ia64@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=linuxppc-dev@ozlabs.org \
--cc=mel@csn.ul.ie \
--cc=riel@redhat.com \
--cc=yanmin.zhang@intel.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.