Netperf allows users to request CPU utilization stats (albeit in a platform-dependent manner) for both the netperf server and client. The NetperfRunner and NetperfResult classes in the autotest_lib.server.cros.network.netperf_runner package, however, do not support collecting this information.
CPU utilization information would be quite useful in determining the origin of network performance results that are poorer than expected.
Netperf allows users to request CPU utilization stats (albeit in a platform-dependent manner) for both the netperf server and client. The NetperfRunner and NetperfResult classes in the autotest_lib.server.cros.network.netperf_runner package, however, do not support collecting this information.
CPU utilization information would be quite useful in determining the origin of network performance results that are poorer than expected.
The method netperf employs on Linux for collecting CPU utilization stats involves collecting the utilization of each core independently, and then averaging the result in order to return a single percentage. Thus getting a single CPU utilization percentage in autotest should be fairly trivial, but getting stats on a per-core basis would require modifying the netperf package that is used by ChromeOS.
Comment 1 by akhouderchah@chromium.org
, Jun 26 2018