Re: [PATCH v1 2/3] perf record: apply affinity masks when reading mmap buffers

2018-12-12 Thread Alexey Budankov
Hi, On 12.12.2018 15:15, Jiri Olsa wrote: > On Wed, Dec 12, 2018 at 10:40:22AM +0300, Alexey Budankov wrote: >> >> Build node cpu masks for mmap data buffers. Bind AIO data buffers >> to nodes according to kernel data buffers location. Apply node cpu >> masks to trace reading thread every time it

Re: [PATCH v1 2/3] perf record: apply affinity masks when reading mmap buffers

2018-12-12 Thread Alexey Budankov
Hi, On 12.12.2018 15:15, Jiri Olsa wrote: > On Wed, Dec 12, 2018 at 10:40:22AM +0300, Alexey Budankov wrote: > > SNIP > >> int perf_mmap__mmap(struct perf_mmap *map, struct mmap_params *mp, int fd, >> int cpu) >> { >> +int c, nr_cpus, node; >> /* >> * The last one will be done a

Re: [PATCH v1 2/3] perf record: apply affinity masks when reading mmap buffers

2018-12-12 Thread Alexey Budankov
Hi, On 12.12.2018 15:14, Jiri Olsa wrote: > On Wed, Dec 12, 2018 at 10:40:22AM +0300, Alexey Budankov wrote: > > SNIP > >> diff --git a/tools/perf/util/mmap.c b/tools/perf/util/mmap.c >> index e68ba754a8e2..0d017ea85dcb 100644 >> --- a/tools/perf/util/mmap.c >> +++ b/tools/perf/util/mmap.c >> @@

Re: [PATCH v1 2/3] perf record: apply affinity masks when reading mmap buffers

2018-12-12 Thread Jiri Olsa
On Wed, Dec 12, 2018 at 10:40:22AM +0300, Alexey Budankov wrote: SNIP > int perf_mmap__mmap(struct perf_mmap *map, struct mmap_params *mp, int fd, > int cpu) > { > + int c, nr_cpus, node; > /* >* The last one will be done at perf_mmap__consume(), so that we >* make su

Re: [PATCH v1 2/3] perf record: apply affinity masks when reading mmap buffers

2018-12-12 Thread Jiri Olsa
On Wed, Dec 12, 2018 at 10:40:22AM +0300, Alexey Budankov wrote: > > Build node cpu masks for mmap data buffers. Bind AIO data buffers > to nodes according to kernel data buffers location. Apply node cpu > masks to trace reading thread every time it references memory cross > node or cross cpu. >

Re: [PATCH v1 2/3] perf record: apply affinity masks when reading mmap buffers

2018-12-12 Thread Jiri Olsa
On Wed, Dec 12, 2018 at 10:40:22AM +0300, Alexey Budankov wrote: SNIP > diff --git a/tools/perf/util/mmap.c b/tools/perf/util/mmap.c > index e68ba754a8e2..0d017ea85dcb 100644 > --- a/tools/perf/util/mmap.c > +++ b/tools/perf/util/mmap.c > @@ -10,6 +10,9 @@ > #include > #include > #include >

[PATCH v1 2/3] perf record: apply affinity masks when reading mmap buffers

2018-12-11 Thread Alexey Budankov
Build node cpu masks for mmap data buffers. Bind AIO data buffers to nodes according to kernel data buffers location. Apply node cpu masks to trace reading thread every time it references memory cross node or cross cpu. Signed-off-by: Alexey Budankov --- tools/perf/builtin-record.c | 9 ++