Hocko
Signed-off-by: Kemi Wang
---
drivers/base/node.c| 23 +++
include/linux/mmzone.h | 27
include/linux/vmstat.h | 31 -
mm/mempolicy.c | 2 +-
mm/page_alloc.c| 16 +++--
mm/vmstat.c| 177
Since the functionality of zone_statistics() updates numa counters, but
numa statistics has been separated from zone statistics framework. Thus,
the function name makes people confused. So, change the name to
numa_statistics() as well as its call sites accordingly.
Signed-off-by: Kemi Wang
worry about
it.
Signed-off-by: Kemi Wang
---
drivers/base/node.c | 17 ++---
mm/vmstat.c | 2 +-
2 files changed, 11 insertions(+), 8 deletions(-)
diff --git a/drivers/base/node.c b/drivers/base/node.c
index a045ea1..cf303f8 100644
--- a/drivers/base/node.c
+++ b/drivers
any functionality change.
before after
sizeof(struct per_cpu_nodestat)28 68
Signed-off-by: Kemi Wang
---
include/linux/mmzone.h | 4 ++--
mm/vmstat.c| 16
2 files changed, 10 insertions(+), 10 deletions(-)
diff --git
nd deals
with global counter update using different threshold size for node page
stats.
Signed-off-by: Kemi Wang
---
mm/vmstat.c | 13 +++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/mm/vmstat.c b/mm/vmstat.c
index 9c681cc..64e08ae 100644
--- a/mm/vmstat.c
+++ b/mm/vms
per-cpu infrastructure for node page stats by
entending local cpu counters vm_node_stat_diff from s8 to s16
b) reuse the per-cpu infrastrcuture for NUMA stats
Kemi Wang (5):
mm: migrate NUMA stats from per-zone to per-node
mm: Extends local cpu counter vm_diff_nodestat from s8 to s16
Since numa statistics has been separated from zone statistics framework,
but the functionality of zone_statistics() updates numa counters. Thus, the
function name makes people confused. So, change the name to
numa_statistics() as well as its call sites accordingly.
Signed-off-by: Kemi Wang
ices/system/sys 0m0.001s sys 0m0.000s
node/node*/numastat
We would not worry it much as it is a slow path and will not be read
frequently.
Suggested-by: Andi Kleen
Signed-off-by: Kemi Wang
---
drivers/base/node.c| 14 ++---
include/linux/mmzone.h | 2 -
include/linux/v
The original patch is contributed by Andi Kleen.
Signed-off-by: Andi Kleen
Signed-off-by: Kemi Wang
Tested-by: Kemi Wang
Reviewed-by: Jens Axboe
---
include/linux/buffer_head.h | 5 -
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/include/linux/buffer_head.h b/include/linux/b
The original patch is contributed by Andi Kleen.
Signed-off-by: Andi Kleen
Signed-off-by: Kemi Wang
Tested-by: Kemi Wang
---
include/linux/buffer_head.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/include/linux/buffer_head.h b/include/linux/buffer_head.h
index c8dae
ported-by: Jesper Dangaard Brouer
Suggested-by: Dave Hansen
Suggested-by: Ying Huang
Signed-off-by: Kemi Wang
---
Documentation/sysctl/vm.txt | 16 +++
include/linux/vmstat.h | 10 +++
kernel/sysctl.c | 9 ++
mm/mempolicy.c | 3 ++
mm/pag
ned.
Reported-by: Jesper Dangaard Brouer
Suggested-by: Dave Hansen
Suggested-by: Ying Huang
Signed-off-by: Kemi Wang
---
Documentation/sysctl/vm.txt | 16 +++
include/linux/vmstat.h | 10 +++
kernel/sysctl.c | 7 +
mm/mempolicy.c | 3 ++
mm/page_a
sper Dangaard Brouer
Suggested-by: Dave Hansen
Suggested-by: Ying Huang
Signed-off-by: Kemi Wang
---
Documentation/sysctl/vm.txt | 24 +
drivers/base/node.c | 4 ++
include/linux/vmstat.h | 23
init/main.c | 3 ++
kernel/sysctl.c
jump label to eliminate the overhead of branch selection;
c) Add a single-time log message at boot time to help tell users what
happened.
Reported-by: Jesper Dangaard Brouer
Suggested-by: Dave Hansen
Suggested-by: Ying Huang
Signed-off-by: Kemi Wang
---
Documentation/sysctl/vm.txt | 26 ++
tps://github.com/netoptimizer/prototype-kernel/tree/master/kernel/mm/
bench
Reported-by: Jesper Dangaard Brouer
Suggested-by: Dave Hansen
Suggested-by: Ying Huang
Signed-off-by: Kemi Wang
---
drivers/base/node.c| 2 ++
include/linux/vmstat.h | 6 +
mm/page_alloc.c| 13
can do:
echo [A|a]uto > /proc/sys/vm/vmstat_mode
The next patch handles numa statistics distinctively based-on different VM
stats mode.
Reported-by: Jesper Dangaard Brouer
Suggested-by: Dave Hansen
Suggested-by: Ying Huang
Signed-off-by: Kemi Wang
---
include/linux/vmstat.h | 14 +
Add a paragraph to introduce the functionality and usage on vmstat_mode in
sysctl/vm.txt
Reported-by: Jesper Dangaard Brouer
Suggested-by: Dave Hansen
Suggested-by: Ying Huang
Signed-off-by: Kemi Wang
---
Documentation/sysctl/vm.txt | 26 ++
1 file changed, 26
ds for single page allocation.
The third patch updates ABI document accordingly.
Kemi Wang (3):
mm, sysctl: make VM stats configurable
mm: Handle numa statistics distinctively based-on different VM stats
modes
sysctl/vm.txt: Update document
Documentation/sysctl/vm.txt
he consistant numa threshold.
d) Move zone_numa_state_snapshot() to an individual patch, since it
does not appear to be related to this patch.
Signed-off-by: Kemi Wang
Suggested-by: Dave Hansen
Suggested-by: Ying Huang
---
include/linux/mmzone.h | 3 +--
mm/vmstat.c| 28
000 394 489009617
3 395 488017817
65533 369(-31.3%) 521661345(+45.3%) <==> with this patchset
N/A 342(-36.3%) 562900157(+56.8%) <==> disable zone_statistics
Kemi Wang (3):
mm: Change the call sites of numa statistics items
mm: Update N
.
Changelog:
v2:
a) Modify the name of numa-stats-specific functions and params to avoid
confusion with those for zone/node page stats.
b) Get rid of showing the number of numa stat threshold in /proc/zoneinfo
since the value of this item is a constant.
Signed-off-by: Kemi Wang
---
drivers/base/node.c
.
Changelog:
v2:
a) new creation.
Signed-off-by: Kemi Wang
---
include/linux/vmstat.h | 6 +-
mm/vmstat.c| 9 +++--
2 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/include/linux/vmstat.h b/include/linux/vmstat.h
index a29bd98..72e9ca6 100644
--- a/include/linux
threshold: 10*
...
The next patch updates the numa stats counter size and threshold.
Signed-off-by: Kemi Wang
---
drivers/base/node.c| 22 ---
include/linux/mmzone.h | 25 +---
include/linux/vmstat.h | 29 +
mm/page_alloc.c
489009617
3 395 488017817
32765 394(-26.6%) 488932078(+36.2%) <==> with this patchset
N/A 342(-36.3%) 562900157(+56.8%) <==> disable zone_statistics
Kemi Wang (2):
mm: Change the call sites of numa statistics items
mm: Update NUMA counter t
2%) <==> with this patchset
N/A 342(-36.3%) 562900157(+56.8%) <==> disable zone_statistics
Signed-off-by: Kemi Wang
Suggested-by: Dave Hansen
Suggested-by: Ying Huang
---
include/linux/mmzone.h | 4 ++--
include/linux/vmstat.h | 6 +-
mm/vmstat.c| 23 +
25 matches
Mail list logo