All of lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [igt PATCH v1 1/1] i915/gem_ctx_switch: evenly run 4 child processes
@ 2019-02-23  6:54 Caz Yokoyama
  2019-02-23  0:25 ` [igt-dev] ✓ Fi.CI.BAT: success for series starting with [v1,1/1] " Patchwork
                   ` (6 more replies)
  0 siblings, 7 replies; 18+ messages in thread
From: Caz Yokoyama @ 2019-02-23  6:54 UTC (permalink / raw)
  To: igt-dev

gem_ctx_switch@basic-all-light test creates 4 child processes for each
engine and wait. render engine runs slower than others. By this patch,
4 child processes run fairly evenly. As a result, parent process runs
faster. On my NUC, its execution time becomes about half.

Signed-off-by: Caz Yokoyama <caz.yokoyama@intel.com>
---
 tests/i915/gem_ctx_switch.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tests/i915/gem_ctx_switch.c b/tests/i915/gem_ctx_switch.c
index 1208cb8d..9ed22f35 100644
--- a/tests/i915/gem_ctx_switch.c
+++ b/tests/i915/gem_ctx_switch.c
@@ -247,7 +247,9 @@ static void all(int fd, uint32_t handle, unsigned flags, int timeout)
 
 				clock_gettime(CLOCK_MONOTONIC, &start);
 				do {
-					for (int loop = 0; loop < qlen; loop++) {
+					int x = strcmp(name[child], "render") == 0 ? qlen/2 : qlen;
+
+					for (int loop = 0; loop < x; loop++) {
 						execbuf.rsvd1 = contexts[loop % nctx];
 						gem_execbuf(fd, &execbuf);
 					}
-- 
2.17.1

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

^ permalink raw reply related	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2019-02-26 16:15 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-23  6:54 [igt-dev] [igt PATCH v1 1/1] i915/gem_ctx_switch: evenly run 4 child processes Caz Yokoyama
2019-02-23  0:25 ` [igt-dev] ✓ Fi.CI.BAT: success for series starting with [v1,1/1] " Patchwork
2019-02-23  0:41 ` [igt-dev] [igt PATCH v1 1/1] " Chris Wilson
2019-02-26 16:07   ` Caz Yokoyama
2019-02-23  1:09 ` Antonio Argenziano
2019-02-23  1:34 ` [PATCH i-g-t] i915/gem_ctx_switch: Use minimum qlen over all engines and measure switches Chris Wilson
2019-02-23  1:34   ` [igt-dev] " Chris Wilson
2019-02-25 18:28   ` Caz Yokoyama
2019-02-25 18:28     ` [igt-dev] " Caz Yokoyama
2019-02-25 18:29     ` Chris Wilson
2019-02-25 18:29       ` [Intel-gfx] " Chris Wilson
2019-02-26 16:14       ` Caz Yokoyama
2019-02-26 16:14         ` [igt-dev] " Caz Yokoyama
2019-02-26 16:15         ` Chris Wilson
2019-02-26 16:15           ` [igt-dev] " Chris Wilson
2019-02-23  2:00 ` [igt-dev] ✓ Fi.CI.BAT: success for series starting with [i-g-t] i915/gem_ctx_switch: Use minimum qlen over all engines and measure switches (rev2) Patchwork
2019-02-23  6:42 ` [igt-dev] ✓ Fi.CI.IGT: success for series starting with [v1,1/1] i915/gem_ctx_switch: evenly run 4 child processes Patchwork
2019-02-23  9:31 ` [igt-dev] ✓ Fi.CI.IGT: success for series starting with [i-g-t] i915/gem_ctx_switch: Use minimum qlen over all engines and measure switches (rev2) Patchwork

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.