From 32681f8ad2bdef07dccfce80630831fe2f005cd3 Mon Sep 17 00:00:00 2001 From: Tvrtko Ursulin Date: Wed, 7 Jun 2017 09:56:42 +0100 Subject: media-bench.pl: Add GT2 mode So gem_wsim can be driven in it. Signed-off-by: Tvrtko Ursulin --- scripts/media-bench.pl | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'scripts') diff --git a/scripts/media-bench.pl b/scripts/media-bench.pl index 19ab460c..2da0015a 100755 --- a/scripts/media-bench.pl +++ b/scripts/media-bench.pl @@ -36,6 +36,7 @@ my $tolerance = 0.01; my $client_target_s = 10; my $idle_tolerance_pct = 2.0; my $verbose = 0; +my $gt2 = 0; my $show_cmds = 0; my $realtime_target = 0; my $wps_target = 0; @@ -135,6 +136,7 @@ sub run_workload my ($time, $wps, $cmd); @args = add_wps_arg(@args); + push @args, '-2' if $gt2; unshift @args, "$wsim"; $cmd = join ' ', @args; @@ -164,6 +166,7 @@ sub trace_workload my $warg = defined $w_direct ? $wrk : "-w $wrk_root/$wrk"; push @args, "$b -R" unless $b eq ''; + push @args, '-2' if $gt2; push @args, $warg; unshift @args, '-q'; @@ -300,7 +303,7 @@ sub find_saturation_point } } -getopts('hvxn:b:W:B:r:t:i:R:T:w:', \%opts); +getopts('hv2xn:b:W:B:r:t:i:R:T:w:', \%opts); if (defined $opts{'h'}) { print <{'2'} or not exists $engines->{'3'}) { + } elsif (not exists $engines->{'2'} or not exists $engines->{$vcs2}) { # VCS1 and VCS2 not present in a balancing workload $result = 'FAIL'; } elsif ($saturated == 1 and ($engines->{'2'} < $idle_tolerance_pct or - $engines->{'3'} < $idle_tolerance_pct)) { + $engines->{$vcs2} < $idle_tolerance_pct)) { # Only one VCS saturated $result = 'WARN'; } -- cgit v1.2.3