diff mbox series

[i-g-t,16/21] gem_wsim: Some more example workloads

Message ID 20190508121058.27038-17-tvrtko.ursulin@linux.intel.com (mailing list archive)
State New, archived
Headers show
Series Media scalability tooling | expand

Commit Message

Tvrtko Ursulin May 8, 2019, 12:10 p.m. UTC
From: Tvrtko Ursulin <tvrtko.ursulin@intel.com>

A few additional workloads useful for experimenting with scheduling.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
---
 benchmarks/wsim/frame-split-60fps.wsim      | 16 ++++++++++++++++
 benchmarks/wsim/high-composited-game.wsim   | 11 +++++++++++
 benchmarks/wsim/media-1080p-player.wsim     |  5 +++++
 benchmarks/wsim/medium-composited-game.wsim |  9 +++++++++
 4 files changed, 41 insertions(+)
 create mode 100644 benchmarks/wsim/frame-split-60fps.wsim
 create mode 100644 benchmarks/wsim/high-composited-game.wsim
 create mode 100644 benchmarks/wsim/media-1080p-player.wsim
 create mode 100644 benchmarks/wsim/medium-composited-game.wsim

Comments

Chris Wilson May 8, 2019, 12:27 p.m. UTC | #1
Quoting Tvrtko Ursulin (2019-05-08 13:10:53)
> From: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
> 
> A few additional workloads useful for experimenting with scheduling.
> 
> Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>

Are the extra modes & .wsim supported by scripts/media-bench.pl?
i.e. can I just run media-bench.pl and have it exercise all the new
features?
-Chris
Tvrtko Ursulin May 8, 2019, 1:50 p.m. UTC | #2
On 08/05/2019 13:27, Chris Wilson wrote:
> Quoting Tvrtko Ursulin (2019-05-08 13:10:53)
>> From: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
>>
>> A few additional workloads useful for experimenting with scheduling.
>>
>> Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
> 
> Are the extra modes & .wsim supported by scripts/media-bench.pl?
> i.e. can I just run media-bench.pl and have it exercise all the new
> features?

Not sure what you mean by extra modes? If all new wsim commands then no. 
They are not in the default media-bench.pl set. The workloads from this 
patch are not in that set so are just for reference.

Virtual engine (gem_wsim -b i915) is supported by media-bench.pl even 
with the old/default set of workloads.

The catch is old wsim workloads use VCS to mean any VCS and in those 
cases -b i915 will set up the virtual engine 
automatically/transparently. So those old workloads can be ran both with 
userspace or i915 balancing.

Regards,

Tvrtko
Chris Wilson May 8, 2019, 1:56 p.m. UTC | #3
Quoting Tvrtko Ursulin (2019-05-08 14:50:41)
> 
> On 08/05/2019 13:27, Chris Wilson wrote:
> > Quoting Tvrtko Ursulin (2019-05-08 13:10:53)
> >> From: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
> >>
> >> A few additional workloads useful for experimenting with scheduling.
> >>
> >> Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
> > 
> > Are the extra modes & .wsim supported by scripts/media-bench.pl?
> > i.e. can I just run media-bench.pl and have it exercise all the new
> > features?
> 
> Not sure what you mean by extra modes? If all new wsim commands then no. 
> They are not in the default media-bench.pl set. The workloads from this 
> patch are not in that set so are just for reference.

That's what I meant, are the new example.wsim with explicit engine maps
and so I presume inter-mixing of load-balanced workloads with other work
included in the default set run by ./scripts/media-bench.pl

What's the minimum amount of effort I need to exercise all the new
features of gem_wsim? :)

> Virtual engine (gem_wsim -b i915) is supported by media-bench.pl even 
> with the old/default set of workloads.
> 
> The catch is old wsim workloads use VCS to mean any VCS and in those 
> cases -b i915 will set up the virtual engine 
> automatically/transparently. So those old workloads can be ran both with 
> userspace or i915 balancing.

And seems to still be working.
-Chris
Tvrtko Ursulin May 8, 2019, 2:16 p.m. UTC | #4
On 08/05/2019 14:56, Chris Wilson wrote:
> Quoting Tvrtko Ursulin (2019-05-08 14:50:41)
>>
>> On 08/05/2019 13:27, Chris Wilson wrote:
>>> Quoting Tvrtko Ursulin (2019-05-08 13:10:53)
>>>> From: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
>>>>
>>>> A few additional workloads useful for experimenting with scheduling.
>>>>
>>>> Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
>>>
>>> Are the extra modes & .wsim supported by scripts/media-bench.pl?
>>> i.e. can I just run media-bench.pl and have it exercise all the new
>>> features?
>>
>> Not sure what you mean by extra modes? If all new wsim commands then no.
>> They are not in the default media-bench.pl set. The workloads from this
>> patch are not in that set so are just for reference.
> 
> That's what I meant, are the new example.wsim with explicit engine maps
> and so I presume inter-mixing of load-balanced workloads with other work
> included in the default set run by ./scripts/media-bench.pl

It's not in the default set but manual workloads can be given to 
media-bench.pl using the -w switch. String passed there is passed onto 
gem_wsim directly so one or more workloads can be manually specified.

> What's the minimum amount of effort I need to exercise all the new
> features of gem_wsim? :)

frame-split-60fps.wsim uses almost all new features: preemption control, 
engine map, load balance, bond, submit fence and the "endless" batch.

Only missing is SSEU control for which I did not add an example workload 
(there is a snippet in README though) since the access to uapi is 
blocked outside the gen11 special case. To use that the i915 IS_GEN11 
check in set_sseu needs to be lifted as well.

>> Virtual engine (gem_wsim -b i915) is supported by media-bench.pl even
>> with the old/default set of workloads.
>>
>> The catch is old wsim workloads use VCS to mean any VCS and in those
>> cases -b i915 will set up the virtual engine
>> automatically/transparently. So those old workloads can be ran both with
>> userspace or i915 balancing.
> 
> And seems to still be working.

I'd hope so, I mostly do test things! :)

Regards,

Tvrtko
Chris Wilson May 10, 2019, 1:37 p.m. UTC | #5
Quoting Tvrtko Ursulin (2019-05-08 13:10:53)
> From: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
> 
> A few additional workloads useful for experimenting with scheduling.
> 
> Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Acked-by: Chris Wilson <chris@chris-wilson.co.uk>
-Chris
diff mbox series

Patch

diff --git a/benchmarks/wsim/frame-split-60fps.wsim b/benchmarks/wsim/frame-split-60fps.wsim
new file mode 100644
index 000000000000..cfbfcd39be7d
--- /dev/null
+++ b/benchmarks/wsim/frame-split-60fps.wsim
@@ -0,0 +1,16 @@ 
+X.1.0
+M.1.VCS1
+B.1
+X.2.0
+M.2.VCS2
+B.2
+b.2.1.VCS1
+f
+1.DEFAULT.4000-6000.f-1.0
+2.DEFAULT.4000-6000.s-1.0
+a.-3
+3.RCS.2000-4000.-3/-2.0
+3.VECS.2000.-1.0
+4.BCS.1000.-1.0
+s.-2
+p.16667
diff --git a/benchmarks/wsim/high-composited-game.wsim b/benchmarks/wsim/high-composited-game.wsim
new file mode 100644
index 000000000000..a90a2b2be95b
--- /dev/null
+++ b/benchmarks/wsim/high-composited-game.wsim
@@ -0,0 +1,11 @@ 
+1.RCS.500.0.0
+1.RCS.2000.0.0
+1.RCS.2000.0.0
+1.RCS.2000.0.0
+1.RCS.2000.0.0
+1.RCS.2000.0.0
+1.RCS.2000.0.0
+P.2.1
+2.BCS.1000.-2.0
+2.RCS.2000.-1.1
+p.16667
diff --git a/benchmarks/wsim/media-1080p-player.wsim b/benchmarks/wsim/media-1080p-player.wsim
new file mode 100644
index 000000000000..bcbb0cfd2ad3
--- /dev/null
+++ b/benchmarks/wsim/media-1080p-player.wsim
@@ -0,0 +1,5 @@ 
+1.VCS.5000-10000.0.0
+2.RCS.1000-2000.-1.0
+P.3.1
+3.BCS.1000.-2.0
+p.16667
diff --git a/benchmarks/wsim/medium-composited-game.wsim b/benchmarks/wsim/medium-composited-game.wsim
new file mode 100644
index 000000000000..580883516168
--- /dev/null
+++ b/benchmarks/wsim/medium-composited-game.wsim
@@ -0,0 +1,9 @@ 
+1.RCS.1000-2000.0.0
+1.RCS.1000-2000.0.0
+1.RCS.1000-2000.0.0
+1.RCS.1000-2000.0.0
+1.RCS.1000-2000.0.0
+P.2.1
+2.BCS.1000.-2.0
+2.RCS.2000.-1.1
+p.16667