From: Ingo Molnar <mingo@elte.hu>
To: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>
Cc: linux-kernel@vger.kernel.org,
Peter Zijlstra <a.p.zijlstra@chello.nl>,
Paul Turner <pjt@google.com>, Venki Pallipadi <venki@google.com>,
Vaidyanathan Srinivasan <svaidy@linux.vnet.ibm.com>,
Srivatsa Vaddagiri <vatsa@linux.vnet.ibm.com>,
Arnaldo Carvalho de Melo <acme@redhat.com>
Subject: Re: [PATCH] perf bench sched cpu-matrix benchmark
Date: Thu, 10 Nov 2011 15:52:02 +0100 [thread overview]
Message-ID: <20111110145201.GA29614@elte.hu> (raw)
In-Reply-To: <20111104115620.GA25704@linux.vnet.ibm.com>
* Kamalesh Babulal <kamalesh@linux.vnet.ibm.com> wrote:
> Hi,
>
> During the discussion of the nohz load balancer fix
> (https://lkml.org/lkml/2011/9/27/197), Ingo Molnar suggested
> to replace the simple while1 loop, used for publishing the
> test results with cpu-matrix test. This patch adds cpu-matrix
> benchmark under perf bench.
>
> TODO:
> - Provide option to run main thread at real-time priority.
> - Provide option for changing scheduling priority/policy
> of worker threads.
>
>
> perf bench: Add sched cpu-matrix benchmark
>
> perf bench sched cpu-matrix benchmark is a matrix multiplication
> workload, which can be replaced with the traditional while1
> cpu hog.
>
> Example of usage:
>
> % perf bench sched cpu-matrix
> # Running sched/cpu-matrix benchmark...
>
> Multiplication of [20] x [20] matrix, using [1] threads
> Total time: 0.000170 [sec]
>
> % perf bench sched cpu-matrix -s1k -t3
> # Running sched/cpu-matrix benchmark...
> elapsed time = 0.100066 sec, progress = 27270868
> elapsed time = 0.100079 sec, progress = 27299841
> elapsed time = 0.100071 sec, progress = 27253513
> elapsed time = 0.100073 sec, progress = 27272693
> elapsed time = 0.100090 sec, progress = 10208415
>
> Multiplication of [1024] x [1024] matrix, using [3] threads
> Total time: 0.500495 [sec]
It would be nice to also print the *size* of the matrix, in MBs or
so. 1024x1024 of int, long, float ... or double?
Looks pretty useful otherwise. Arnaldo, any objections?
Thanks,
Ingo
next prev parent reply other threads:[~2011-11-10 14:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-04 11:56 [PATCH] perf bench sched cpu-matrix benchmark Kamalesh Babulal
2011-11-04 12:50 ` Srivatsa Vaddagiri
2011-11-10 14:52 ` Ingo Molnar [this message]
2011-11-14 8:57 ` [PATCH V2] " Kamalesh Babulal
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20111110145201.GA29614@elte.hu \
--to=mingo@elte.hu \
--cc=a.p.zijlstra@chello.nl \
--cc=acme@redhat.com \
--cc=kamalesh@linux.vnet.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=pjt@google.com \
--cc=svaidy@linux.vnet.ibm.com \
--cc=vatsa@linux.vnet.ibm.com \
--cc=venki@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.