mm: Remove NUMA_INTERLEAVE_HIT
Subsystems (5)
RFC PATCH 1/1 mm: Remove NUMA_INTERLEAVE_HIT
Since the NUMA_INTERLEAVE_HIT statistic is useless on its own; it wants to be compared to either a total of interleave allocations or to a miss count, remove it.
Fixing it would be possible, but since we've gone years without these statistics I figure we can continue that way.
This cleans up some of the weird MPOL_INTERLEAVE allocation exceptions.
--- drivers/base/node.c | 2 +- include/linux/mmzone.h | 1 - mm/mempolicy.c | 66 +++++++++++++++-------------------------------- 3 files changed, 22 insertions(+), 47 deletions(-)
drivers/base/node.c +1 -1
@@ -172,7 +172,7 @@ static ssize_t node_read_numastat(struct sys_device * dev,node_page_state (dev->id,NUMA_HIT ),node_page_state (dev->id,NUMA_MISS ),node_page_state (dev->id,NUMA_FOREIGN ), -node_page_state (dev->id,NUMA_INTERLEAVE_HIT ), +0 ,node_page_state (dev->id,NUMA_LOCAL ), node_page_state(dev->id, NUMA_OTHER)); }
include/linux/mmzone.h +0 -1
@@ -111,7 +111,6 @@ enum zone_stat_item {NUMA_HIT ,/* allocated in intended node */ NUMA_MISS ,/* allocated in non intended node */ NUMA_FOREIGN ,/* was intended here, hit elsewhere */ -NUMA_INTERLEAVE_HIT ,/* interleaver preferred this zone */ NUMA_LOCAL ,/* allocation from local node */ NUMA_OTHER, /* allocation from other node */ #endif
mm/mempolicy.c +21 -45
101 lines not on this page · raw message
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 6 lines · Peter Zijlstra
Since the
NUMA_INTERLEAVE_HITstatistic is useless on its own; it wants to be compared to either a total of interleave allocations or to a miss count, remove it.Fixing it would be possible, but since we've gone years without these statistics I figure we can continue that way.
Never found any use for it.
Quoted 1 line
This cleans up some of the weird
MPOL_INTERLEAVEallocation exceptions.
What others are there? Exceptions in terms of special casing in various functions?
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Andi Kleen
NAKQuoted 3 lines · Peter Zijlstra
Since the
NUMA_INTERLEAVE_HITstatistic is useless on its own; it wants to be compared to either a total of interleave allocations or to a miss count, remove it.
Nack!
This would break the numactl testsuite.
-Andi
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 8 lines · Andi Kleen
Quoted 3 lines · Peter Zijlstra
Since the
NUMA_INTERLEAVE_HITstatistic is useless on its own; it wants to be compared to either a total of interleave allocations or to a miss count, remove it.Nack!
This would break the numactl testsuite.
This seems slightly strange reason to me. Almost useless/deprecated feature removement broke ltp testsuite. But endusers never complained. Because they never use testcases for development. So, May I clarify your intention? To use Documention/feature-removal-schedule.txt solve your worry?
Personally, I haven't observed NUMA_INTERLEAVE_HIT is used on production environment. But, I also haven't felt this feature is a code maintenance bottleneck. So, I'd like to just ask.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 2 lines
This seems slightly strange reason to me. Almost useless/deprecated feature removement broke ltp testsuite. But endusers never complained. Because they
Don't know about that, but it sounds like a regression that should have been reverted. Testing is important.
Quoted 1 line
never use testcases for development.
It's a feature for developers. I originally added it for debugging this code.
Quoted 2 lines
So, May I clarify your intention? To
useDocumention/feature-removal-schedule.txtsolve your worry?
I just want it to stay so that the test suite keeps working.
-Andi
Signature · 8 lines
[email protected] -- Speaking for myself only. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 2 lines · Andi Kleen
This would break the numactl testsuite.
How so? The userspace output will still contain the field, we'll simply always print 0.
But if you want I can provide a patch for numactl.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 5 lines · Peter Zijlstra
Quoted 2 lines · Andi Kleen
This would break the numactl testsuite.
How so? The userspace output will still contain the field, we'll simply always print 0.
Then the interleave test in the test suite will fail
Quoted 2 lines
But if you want I can provide a patch for numactl.
Disable the test? That would be bad too.
-Andi
Signature · 8 lines
[email protected] -- Speaking for myself only. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Andrew Morton
maintainerQuoted 7 lines · On Thu, 12 Jan 2012 22:07:43 +0100 Andi Kleen <[email protected]> wrote:
Quoted 5 lines · Peter Zijlstra
Quoted 2 lines · Andi Kleen
This would break the numactl testsuite.
How so? The userspace output will still contain the field, we'll simply always print 0.
Quoted 7 lines
Then the interleave test in the test suite will fail
Quoted 2 lines
But if you want I can provide a patch for numactl.
Disable the test? That would be bad too.
My googling and codesearch attempts didn't reveal any users of NUMA_INTERLEAVE_HIT. But then, it didn't find the usage in the numactl suite either.
It would be good if we could find some way to remove this code (and any other code!). If that causes a bit of pain for users of the test suite (presumably a small number of technically able people) then that seems acceptable to me - we end up with a better kernel.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 13 lines · Andrew Morton
Quoted 10 lines · On Thu, 12 Jan 2012 22:07:43 +0100 Andi Kleen <[email protected]> wrote:
Quoted 5 lines · Peter Zijlstra
Quoted 2 lines · Andi Kleen
This would break the numactl testsuite.
How so? The userspace output will still contain the field, we'll simply always print 0.
Then the interleave test in the test suite will fail
Quoted 1 line
Quoted 7 lines
Quoted 4 lines
Quoted 1 line
But if you want I can provide a patch for numactl.
Disable the test? That would be bad too.
My googling and codesearch attempts didn't reveal any users of
NUMA_INTERLEAVE_HIT. But then, it didn't find the usage in the numactl
Obviously you have to search for "interleave_hit", the uppercase variant is just an kernel internal define.
Quoted 1 line
suite either.
test/regress
Quoted 5 lines
It would be good if we could find some way to remove this code (and any other code!). If that causes a bit of pain for users of the test suite (presumably a small number of technically able people) then that seems acceptable to me - we end up with a better kernel.
The problem is that then there will be nothing left that actually tests interleaving. The numactl has caught kernel regressions in the past.
I don't think disabling useful regression tests is a good idea. In contrary the kernel needs far more of them, not less.
-Andi
Signature · 8 lines
[email protected] -- Speaking for myself only. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 2 lines · Andi Kleen
The problem is that then there will be nothing left that actually tests interleaving. The numactl has caught kernel regressions in the past.
How about adding a CONFIG_NUMA_DEBUG option and have it only available then? I think there is no general use case.
Quoted 2 lines
I don't think disabling useful regression tests is a good idea. In contrary the kernel needs far more of them, not less.
True. Some more debugging code for the NUMA features would be appreciated but that does not need to be enabled by default. Lately I have become a bit concerned about the number of statistics we are adding. The per_cpu_pageset structure should not get too large.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 7 lines · Christoph Lameter
Quoted 2 lines · Andi Kleen
The problem is that then there will be nothing left that actually tests interleaving. The numactl has caught kernel regressions in the past.
How about adding a
CONFIG_NUMA_DEBUGoption and have it only available then? I think there is no general use case.
For a few lines of code? And making it harder to test?
Quoted 7 lines
Quoted 2 lines
I don't think disabling useful regression tests is a good idea. In contrary the kernel needs far more of them, not less.
True. Some more debugging code for the NUMA features would be appreciated but that does not need to be enabled by default. Lately I have become a bit concerned about the number of statistics we are adding. The
per_cpu_pagesetstructure should not get too large.
I don't think the single counter is a problem.
-Andi
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 10 lines · Andi Kleen
Quoted 7 lines · Christoph Lameter
Quoted 2 lines · Andi Kleen
The problem is that then there will be nothing left that actually tests interleaving. The numactl has caught kernel regressions in the past.
How about adding a
CONFIG_NUMA_DEBUGoption and have it only available then? I think there is no general use case.For a few lines of code? And making it harder to test?
For now yes. We can then add more debugging stuff. Right now there is no framework for that.
Quoted 9 lines
Quoted 7 lines
Quoted 2 lines
I don't think disabling useful regression tests is a good idea. In contrary the kernel needs far more of them, not less.
True. Some more debugging code for the NUMA features would be appreciated but that does not need to be enabled by default. Lately I have become a bit concerned about the number of statistics we are adding. The
per_cpu_pagesetstructure should not get too large.I don't think the single counter is a problem.
I never said that .... There are multiple counters that may not be too useful in that structure. Not just the one thats useless.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
[tip:sched/numa] mm/mpol: Remove NUMA_INTERLEAVE_HIT
In reply to Peter ZijlstraCommit-ID: e975d6ac08f3447d7e44851d37f7791ace6da73b Gitweb: http://git.kernel.org/tip/e975d6ac08f3447d7e44851d37f7791ace6da73b Author: Peter Zijlstra <[email protected]> AuthorDate: Thu, 12 Jan 2012 16:07:00 +0100 Committer: Ingo Molnar <[email protected]> CommitDate: Thu, 17 May 2012 14:06:12 +0200
mm/mpol: Remove NUMA_INTERLEAVE_HIT
Since the NUMA_INTERLEAVE_HIT statistic is useless on its own; it wants to be compared to either a total of interleave allocations or to a miss count, remove it.
Fixing it would be possible, but since we've gone years without these statistics I figure we can continue that way.
Also NUMA_HIT fully includes NUMA_INTERLEAVE_HIT so users might switch to using that.
This cleans up some of the weird MPOL_INTERLEAVE allocation exceptions.
--- drivers/base/node.c | 2 +- include/linux/mmzone.h | 1 - mm/mempolicy.c | 68 +++++++++++++++--------------------------------- 3 files changed, 22 insertions(+), 49 deletions(-)
drivers/base/node.c +1 -1
@@ -169,7 +169,7 @@ static ssize_t node_read_numastat(struct device *dev,node_page_state (dev->id,NUMA_HIT ),node_page_state (dev->id,NUMA_MISS ),node_page_state (dev->id,NUMA_FOREIGN ), -node_page_state (dev->id,NUMA_INTERLEAVE_HIT ), +0UL ,node_page_state (dev->id,NUMA_LOCAL ), node_page_state(dev->id, NUMA_OTHER)); }
include/linux/mmzone.h +0 -1
@@ -111,7 +111,6 @@ enum zone_stat_item {NUMA_HIT ,/* allocated in intended node */ NUMA_MISS ,/* allocated in non intended node */ NUMA_FOREIGN ,/* was intended here, hit elsewhere */ -NUMA_INTERLEAVE_HIT ,/* interleaver preferred this zone */ NUMA_LOCAL ,/* allocation from local node */ NUMA_OTHER, /* allocation from other node */ #endif
mm/mempolicy.c +21 -47
103 lines not on this page · raw message