[PATCH v3] KSM: numa awareness sysfs knob

2012-09-14 Thread Petr Holasek
odes store function - introduced share_all debugging knob proposed by Andrew - minor cleanups Signed-off-by: Petr Holasek --- Documentation/vm/ksm.txt | 12 ++ mm/ksm.c | 326 +-- 2 files changed, 270 insertions(+), 68 delet

[PATCH v4] KSM: numa awareness sysfs knob

2012-09-23 Thread Petr Holasek
_all debugging knob proposed by Andrew - minor cleanups v4: - merge_nodes was renamed to merge_across_nodes - share_all debug knob was dropped - get_kpfn_nid helper - fixed page migration behaviour Signed-off-by: Petr Holasek --- Documentation/vm/ksm.txt

[PATCH] perf: Fix failing assertions in perf bench numa

2013-10-03 Thread Petr Holasek
n `!(bind_node_0 < 0 || bind_node_0 >= g->p.nr_nodes)' failed. Aborted Signed-off-by: Petr Benas Signed-off-by: Petr Holasek --- tools/perf/bench/numa.c | 34 +- 1 file changed, 21 insertions(+), 13 deletions(-) diff --git a/tools/pe

Re: [PATCH] mm/ksm: return NULL when doesn't get mergeable page

2013-09-19 Thread Petr Holasek
On Mon, 16 Sep 2013, Jianguo Wu wrote: > In get_mergeable_page() local variable page is not initialized, > it may hold a garbage value, when find_mergeable_vma() return NULL, > get_mergeable_page() may return a garbage value to the caller. > > So initialize page as NULL. > > Signed-off-by: Jiangu

[PATCH] ipv6: ipv6_create_tempaddr cleanup

2013-08-30 Thread Petr Holasek
This two-liner removes max_addresses variable which is now unecessary related to patch [ipv6: remove max_addresses check from ipv6_create_tempaddr]. Signed-off-by: Petr Holasek --- net/ipv6/addrconf.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c

Re: [PATCH v4] KSM: numa awareness sysfs knob

2012-10-08 Thread Petr Holasek
7;s some other easier points. > > On Mon, 24 Sep 2012, Petr Holasek wrote: > > > Introduces new sysfs boolean knob /sys/kernel/mm/ksm/merge_across_nodes > > which control merging pages across different numa nodes. > > When it is set to zero only pages from the same node ar

[PATCH v5] KSM: numa awareness sysfs knob

2012-12-10 Thread Petr Holasek
- unstable node's nid presence depends on CONFIG_NUMA - fixed oops appearing when stable nodes were removed from tree - roots of stable trees are initialized properly - fixed unstable page migration issue Signed-off-by: Petr Holasek Acked-by: Rik van Riel ---

[PATCH v7 1/2] KSM: numa awareness sysfs knob

2012-12-27 Thread Petr Holasek
page migration issue v6: - fixed oops caused by stable_nodes appended to wrong tree - KSM_RUN_MERGE test removed v7: - added sysfs ABI documentation for KSM Signed-off-by: Petr Holasek Signed-off-by: Hugh Dickins Acked-by: Rik van Riel --- Documentation/vm/ksm

[PATCH v7 2/2] Documentation: add sysfs ABI documentation for ksm

2012-12-27 Thread Petr Holasek
This patch adds sysfs documentation for Kernel Samepage Merging (KSM) including new merge_across_nodes knob. Signed-off-by: Petr Holasek --- Documentation/ABI/testing/sysfs-kernel-mm-ksm | 51 +++ 1 file changed, 51 insertions(+) create mode 100644 Documentation/ABI

Re: [PATCH v7 1/2] KSM: numa awareness sysfs knob

2013-01-03 Thread Petr Holasek
Hi Simon, On Mon, 31 Dec 2012, Simon Jeons wrote: > On Fri, 2012-12-28 at 02:32 +0100, Petr Holasek wrote: > > > > v7: - added sysfs ABI documentation for KSM > > Hi Petr, > > How you handle "memory corruption because the ksm page still points to >

Re: mm, ksm: NULL ptr deref in unstable_tree_search_insert

2012-12-19 Thread Petr Holasek
On Tue, 18 Dec 2012, Hugh Dickins wrote: > On Tue, 18 Dec 2012, Sasha Levin wrote: > > > Hi all, > > > > While fuzzing with trinity inside a KVM tools guest, running latest > > linux-next kernel, I've > > stumbled on the following: > > > > [ 127.959264] BUG: unable to handle kernel NULL pointe

Re: mm, ksm: NULL ptr deref in unstable_tree_search_insert

2012-12-19 Thread Petr Holasek
On Tue, 18 Dec 2012, Hugh Dickins wrote: > On Tue, 18 Dec 2012, Sasha Levin wrote: > > > Hi all, > > > > While fuzzing with trinity inside a KVM tools guest, running latest > > linux-next kernel, I've > > stumbled on the following: > > > > [ 127.959264] BUG: unable to handle kernel NULL pointe

Re: [PATCH] ksm: make rmap walks more scalable

2012-12-20 Thread Petr Holasek
On Thu, 20 Dec 2012, Sasha Levin wrote: > On 12/20/2012 05:37 PM, Hugh Dickins wrote: > > On Thu, 20 Dec 2012, Sasha Levin wrote: > >> On 12/19/2012 08:44 PM, Hugh Dickins wrote: > >>> The rmap walks in ksm.c are like those in rmap.c: > >>> they can safely be done with anon_vma_lock_read(). > >>> >

[PATCH v6] KSM: numa awareness sysfs knob

2012-12-23 Thread Petr Holasek
s caused by stable_nodes appended to wrong tree - KSM_RUN_MERGE test removed Signed-off-by: Petr Holasek Signed-off-by: Hugh Dickins Acked-by: Rik van Riel --- Documentation/vm/ksm.txt | 7 +++ mm/ksm.c | 151 +-- 2 files change

Re: [PATCH v3] KSM: numa awareness sysfs knob

2012-09-15 Thread Petr Holasek
On Fri, 14 Sep 2012, Andrew Morton wrote: Hi Andrew, at first thanks for your review! > On Fri, 14 Sep 2012 23:22:47 +0200 > Petr Holasek wrote: > > > Introduces new sysfs boolean knob /sys/kernel/mm/ksm/merge_nodes > > I wonder if merge_across_nodes would be a be

[PATCH 1/3] perf bench numa: Fixes of --quiet argument

2015-04-16 Thread Petr Holasek
Corrected description and fixed function of --quiet argument. Signed-off-by: Petr Holasek --- tools/perf/bench/numa.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/perf/bench/numa.c b/tools/perf/bench/numa.c index ebfa163..cd872e9c 100644 --- a/tools/perf/bench

[PATCH 3/3] perf bench numa: fix immediate meeting of convergence condition

2015-04-16 Thread Petr Holasek
s and some bigger amount of shared process memory, e.g. one process, two threads and 5GB of process memory. Signed-off-by: Petr Holasek --- tools/perf/bench/numa.c | 8 1 file changed, 8 insertions(+) diff --git a/tools/perf/bench/numa.c b/tools/perf/bench/numa.c index 72edc49..1704929 10

[PATCH 2/3] perf bench numa: show more stats of particular threads in verbose mode

2015-04-16 Thread Petr Holasek
In verbose mode perf bench numa shows also GB/s speed, system and user cpu time for each particular thread. Using of getrusage() can provide much more per process or per thread stats in future. Signed-off-by: Petr Holasek --- tools/perf/bench/numa.c | 32 +++- 1 file

[PATCH 0/3] a few perf numa benchmark fixes

2015-04-16 Thread Petr Holasek
Hi, this small series is fixing two bugs in perf bench numa and adds some per thread stats. Petr Holasek (3): perf bench numa: Fixes of --quiet argument perf bench numa: show more stats of particular threads in verbose mode perf bench numa: fix immediate meeting of convergence condition

Re: [RFC][PATCH] add pagesize field to /proc/pid/numa_maps

2014-10-22 Thread Petr Holasek
On Mon, 20 Oct 2014, David Rientjes wrote: > On Tue, 21 Oct 2014, Petr Holasek wrote: > > > There were some similar attempts to add vma's pagesize to numa_maps in the > > past, > > so I've distilled the most straightforward one - adding pagesize field > >

[RFC][PATCH] add pagesize field to /proc/pid/numa_maps

2014-10-20 Thread Petr Holasek
65 Signed-off-by: Petr Holasek --- fs/proc/task_mmu.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fs/proc/task_mmu.c b/fs/proc/task_mmu.c index 4e0388c..964c4de 100644 --- a/fs/proc/task_mmu.c +++ b/fs/proc/task_mmu.c @@ -1498,6 +1498,9 @@ static int show_numa_map(struct seq_file *

[PATCH] perf tools: rework of handling lack of sched_getcpu in old glibc

2015-05-19 Thread Petr Holasek
uma and made the benchmark heavily relying on this function unusable. This patch alternates weak function magic for preprocessor defines. Signed-off-by: Petr Holasek --- tools/perf/util/cloexec.c | 13 +++-- tools/perf/util/cloexec.h | 6 -- 2 files changed, 11 insertions(+), 8 deletion

Re: [PATCH] perf tools: rework of handling lack of sched_getcpu in old glibc

2015-05-19 Thread Petr Holasek
On Tue, 19 May 2015, Arnaldo Carvalho de Melo wrote: > Em Tue, May 19, 2015 at 03:20:47PM +0200, Petr Holasek escreveu: > > Commit e1e455f4f4d3 ("perf tools: Work around lack of sched_getcpu in > > glibc < 2.6.") introduced weak function sched_getcpu() which

[tip:perf/core] perf bench: Fix failing assertions in numa bench

2013-10-14 Thread tip-bot for Petr Holasek
Commit-ID: b81a48ea877e1a104dace1392d92f708ff208f97 Gitweb: http://git.kernel.org/tip/b81a48ea877e1a104dace1392d92f708ff208f97 Author: Petr Holasek AuthorDate: Thu, 3 Oct 2013 19:28:45 +0200 Committer: Arnaldo Carvalho de Melo CommitDate: Fri, 11 Oct 2013 12:17:38 -0300 perf bench

[tip:perf/core] perf bench numa: Show more stats of particular threads in verbose mode

2015-05-05 Thread tip-bot for Petr Holasek
Commit-ID: b64aa553d8430aabd24f303899cfa4de678e2c3a Gitweb: http://git.kernel.org/tip/b64aa553d8430aabd24f303899cfa4de678e2c3a Author: Petr Holasek AuthorDate: Thu, 16 Apr 2015 17:38:18 +0200 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 4 May 2015 12:43:41 -0300 perf bench

[tip:perf/urgent] perf bench numa: Fixes of --quiet argument

2015-05-01 Thread tip-bot for Petr Holasek
Commit-ID: 24f1ced167e5e011040b4c3aae75aee45a79eed5 Gitweb: http://git.kernel.org/tip/24f1ced167e5e011040b4c3aae75aee45a79eed5 Author: Petr Holasek AuthorDate: Thu, 16 Apr 2015 17:38:17 +0200 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 27 Apr 2015 13:57:49 -0300 perf bench

[tip:perf/urgent] perf bench numa: Fix immediate meeting of convergence condition

2015-05-01 Thread tip-bot for Petr Holasek
Commit-ID: 1d90a685eb75a56648d7dd22c704a1a6da516de9 Gitweb: http://git.kernel.org/tip/1d90a685eb75a56648d7dd22c704a1a6da516de9 Author: Petr Holasek AuthorDate: Thu, 16 Apr 2015 17:38:19 +0200 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 27 Apr 2015 13:57:50 -0300 perf bench