Home | History | Annotate | Download | only in network

Lines Matching refs:netperf

17     """Encapsulates logic to parse and represent netperf results."""
21 """Parse the text output of netperf and return a NetperfResult.
24 @param results string raw results from netperf.
88 raise error.TestFail('Invalid netperf test type: %r.' % test_type)
238 """Defines a set of expectations for netperf results."""
320 """Defines a single netperf run."""
326 # MAERTS is stream backwards. Measure bitrate of a stream from the netperf
332 # This is like a TCP_STREAM test except that the netperf client will use
349 # server to the DUT by running the netperf server on the DUT and the
391 raise error.TestFail('Invalid netperf test type: %r.' % test_type)
423 """@return string test type suitable for passing to netperf."""
432 """False iff the server and DUT should switch roles for running netperf.
435 this indicates that the DUT should run netserv and netperf
468 """Delegate to run netperf on a client/server pair."""
496 'netperf', host=self._client_host)
531 """Run netperf and take a performance measurement.
533 @param ignore_failures bool True iff netperf runs that fail should be
536 @param retry_count int number of times to retry the netperf command if
537 it fails due to an internal timeout within netperf.
538 @return NetperfResult summarizing a netperf run.
541 netperf = '%s -H %s -p %s -t %s -l %d -- -P 0,%d' % (
548 logging.debug('Running netperf client.')
549 logging.info('Running netperf for %d seconds.', self._config.test_time)
553 result = self._client_host.run(netperf, ignore_status=True,
557 logging.info('Retrying netperf after empty result.')
566 logging.info('Retrying netperf after internal timeout error.')
575 logging.info('Retrying netperf after an unknown error.')
581 raise error.TestFail("No results; cmd: %s", netperf)
584 raise error.CmdError(netperf, result,