From: John Harrison <John.C.Harrison@Intel.com>
To: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH 2/2] igt/gem_exec_nop: clarify & extend output from parallel execution test
Date: Mon, 22 Aug 2016 15:39:17 +0100 [thread overview]
Message-ID: <f78c2fac-ec2e-e3ef-19b0-bbae864aa5f2@Intel.com> (raw)
In-Reply-To: <1470238607-34415-3-git-send-email-david.s.gordon@intel.com>
[-- Attachment #1.1: Type: text/plain, Size: 3057 bytes --]
On 03/08/2016 16:36, Dave Gordon wrote:
> To make sense of the output of the parallel execution test (preferably
> without reading the source!), we need to see the various measurements
> that it makes, specifically: time/batch on each engine separately, total
> time across all engines sequentially, and the time/batch when the work
> is distributed over all engines in parallel.
>
> Since we know the per-batch time on the slowest engine (which will
> determine the minimum possible execution time of any equal-split
> parallel test), we can also calculate a new figure representing the
> degree to which work on the faster engines is overlapped with that on
> the slowest engine, and therefore does not contribute to the total time.
> Here we choose to present it as a percentage, with parallel-time==serial
> time giving 0% overlap, up to parallel-time==slowest-engine-
> time/n_engines being 100%. Note that negative values are possible;
> values greater than 100% may also be possible, although less likely.
>
> Signed-off-by: Dave Gordon <david.s.gordon@intel.com>
> ---
> tests/gem_exec_nop.c | 15 ++++++++++-----
> 1 file changed, 10 insertions(+), 5 deletions(-)
>
> diff --git a/tests/gem_exec_nop.c b/tests/gem_exec_nop.c
> index c2bd472..05aa383 100644
> --- a/tests/gem_exec_nop.c
> +++ b/tests/gem_exec_nop.c
> @@ -137,7 +137,9 @@ static void all(int fd, uint32_t handle, int timeout)
> if (ignore_engine(fd, engine))
> continue;
>
> - time = nop_on_ring(fd, handle, engine, 1, &count) / count;
> + time = nop_on_ring(fd, handle, engine, 2, &count) / count;
> + igt_info("%s: %'lu cycles: %.3fus/batch\n",
> + e__->name, count, time*1e6);
> if (time > max) {
> name = e__->name;
> max = time;
> @@ -148,8 +150,9 @@ static void all(int fd, uint32_t handle, int timeout)
> engines[nengine++] = engine;
> }
> igt_require(nengine);
> - igt_info("Maximum execution latency on %s, %.3fus, total %.3fus per cycle\n",
> - name, max*1e6, sum*1e6);
> + igt_info("Slowest engine was %s, %.3fus/batch\n", name, max*1e6);
> + igt_info("Total for all %d engines is %.3fus per cycle, average %.3fus/batch\n",
> + nengine, sum*1e6, sum*1e6/nengine);
>
> memset(&obj, 0, sizeof(obj));
> obj.handle = handle;
> @@ -187,8 +190,10 @@ static void all(int fd, uint32_t handle, int timeout)
> igt_assert_eq(intel_detect_and_clear_missed_interrupts(fd), 0);
>
> time = elapsed(&start, &now) / count;
> - igt_info("All (%d engines): %'lu cycles, average %.3fus per cycle\n",
> - nengine, count, 1e6*time);
> + igt_info("All %d engines (parallel/%d): %'lu cycles, "
> + "average %.3fus/batch, overlap %.1f%\n",
> + nengine, BURST, count,
> + 1e6*time, 100*(sum-time)/(sum-(max/nengine)));
>
> /* The rate limiting step is how fast the slowest engine can
> * its queue of requests, if we wait upon a full ring all dispatch
I'm not entirely convinced about the overlap calculation. The other info
is definitely useful though.
Reviewed-by: John Harrison <john.c.harrison@intel.com>
[-- Attachment #1.2: Type: text/html, Size: 3482 bytes --]
[-- Attachment #2: Type: text/plain, Size: 160 bytes --]
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2016-08-22 14:39 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-03 15:36 [PATCH 0/2] Updates to gem_exec_nop parallel execution test Dave Gordon
2016-08-03 15:36 ` [PATCH 1/2] igt/gem_exec_nop: add burst submission to " Dave Gordon
2016-08-03 15:45 ` Chris Wilson
2016-08-03 16:05 ` Dave Gordon
2016-08-18 12:01 ` John Harrison
2016-08-18 15:27 ` Dave Gordon
2016-08-18 15:36 ` Dave Gordon
2016-08-18 15:54 ` Dave Gordon
2016-08-18 15:59 ` Dave Gordon
2016-08-22 14:28 ` John Harrison
2016-08-03 15:36 ` [PATCH 2/2] igt/gem_exec_nop: clarify & extend output from " Dave Gordon
2016-08-22 14:39 ` John Harrison [this message]
2016-08-22 14:42 ` John Harrison
2016-08-03 16:07 ` ✗ Ro.CI.BAT: failure for Updates to gem_exec_nop " Patchwork
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=f78c2fac-ec2e-e3ef-19b0-bbae864aa5f2@Intel.com \
--to=john.c.harrison@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
/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.