2014-04-09 12:16:28

by Jiri Olsa

[permalink] [raw]
Subject: Re: [PATCH 1/3] perf bench: Set more defaults in the 'numa' suite

On Thu, Mar 27, 2014 at 07:50:17PM -0400, Ramkumar Ramachandra wrote:
> Currently,
>
> $ perf bench numa mem
>
> errors out with usage information. To make this more user-friendly, let
> us provide a minimum set of default values required for a test
> run. As an added bonus,
>
> $ perf bench all
>
> now goes all the way to completion.
>
> Cc: Ingo Molnar <[email protected]>
> Cc: Jiri Olsa <[email protected]>
> Cc: David Ahern <[email protected]>
> Cc: Arnaldo Carvalho de Melo <[email protected]>
> Signed-off-by: Ramkumar Ramachandra <[email protected]>
> ---
> tools/perf/bench/numa.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/tools/perf/bench/numa.c b/tools/perf/bench/numa.c
> index d4c83c6..20697fb 100644
> --- a/tools/perf/bench/numa.c
> +++ b/tools/perf/bench/numa.c
> @@ -1593,6 +1593,10 @@ static void init_params(struct params *p, const char *name, int argc, const char
> p->data_rand_walk = true;
> p->nr_loops = -1;
> p->init_random = true;
> + p->mb_global_str = "1";
> + p->nr_proc = 1;
> + p->nr_threads = 1;
> + p->nr_secs = 5;

hi,
I dont claim to understand this benchmark, but I'm now getting this:

$ ./perf bench numa all
# Running numa/mem benchmark...

SNIP

###
# 1 task will execute (on 1 nodes, 4 CPUs):
# -1x 1MB global shared mem operations
# -1x 0MB process shared mem operations
# -1x 0MB thread local mem operations
###
...


'-1x' does not seem right/intentional for default case

thanks,
jirka


2014-04-11 00:32:16

by Ramkumar Ramachandra

[permalink] [raw]
Subject: Re: [PATCH 1/3] perf bench: Set more defaults in the 'numa' suite

Jiri Olsa wrote:
> ###
> # 1 task will execute (on 1 nodes, 4 CPUs):
> # -1x 1MB global shared mem operations
> # -1x 0MB process shared mem operations
> # -1x 0MB thread local mem operations
> ###
> ...
>
>
> '-1x' does not seem right/intentional for default case

As you can see from print_summary(), -1 is the value of nr_loops. In
init_params(), Ingo set nr_loops is set to -1 in his original patch --
I haven't touched that. So, unless I'm missing something, it's quite
an apt default case.

Ram

2014-04-11 10:33:44

by Jiri Olsa

[permalink] [raw]
Subject: Re: [PATCH 1/3] perf bench: Set more defaults in the 'numa' suite

On Thu, Apr 10, 2014 at 08:31:32PM -0400, Ramkumar Ramachandra wrote:
> Jiri Olsa wrote:
> > ###
> > # 1 task will execute (on 1 nodes, 4 CPUs):
> > # -1x 1MB global shared mem operations
> > # -1x 0MB process shared mem operations
> > # -1x 0MB thread local mem operations
> > ###
> > ...
> >
> >
> > '-1x' does not seem right/intentional for default case
>
> As you can see from print_summary(), -1 is the value of nr_loops. In
> init_params(), Ingo set nr_loops is set to -1 in his original patch --
> I haven't touched that. So, unless I'm missing something, it's quite
> an apt default case.

fair enough ;-) ok

thanks,
jirka