def measurements_tcp():
    """Define the produced measurements for TCP workloads."""
    return [types.MeasurementDef(THROUGHPUT, "Mbps"),
            types.MeasurementDef(DURATION, "seconds"),
            types.MeasurementDef(RETRANSMITS, "#"),
            types.MeasurementDef(CPU_UTILIZATION_HOST, "percentage"),
            types.MeasurementDef(CPU_UTILIZATION_GUEST, "percentage")]
def measurements():
    """Define the produced measurements for TCP workloads."""
    return [types.MeasurementDef.cpu_utilization_vcpus_total(),
            types.MeasurementDef.cpu_utilization_vmm(),
            types.MeasurementDef(test_cfg.THROUGHPUT, "Mbps"),
            types.MeasurementDef(test_cfg.DURATION, "seconds"),
            types.MeasurementDef(test_cfg.RETRANSMITS, "#")]
def measurements():
    """Define the produced measurements for VSOCK workloads."""
    return [types.MeasurementDef(test_cfg.THROUGHPUT,
                                 test_cfg.THROUGHPUT_UNIT),
            types.MeasurementDef(test_cfg.DURATION, test_cfg.DURATION_UNIT),
            types.MeasurementDef.cpu_utilization_vmm(),
            types.MeasurementDef.cpu_utilization_vcpus_total()]
Exemplo n.º 4
0
def measurements_vsock():
    """Define the produced measurements for VSOCK workloads."""
    return [
        types.MeasurementDef(THROUGHPUT, THROUGHPUT_UNIT),
        types.MeasurementDef(DURATION, DURATION_UNIT),
        types.MeasurementDef(CPU_UTILIZATION_HOST, CPU_UTILIZATION_UNIT),
        types.MeasurementDef(CPU_UTILIZATION_GUEST, CPU_UTILIZATION_UNIT)
    ]
Exemplo n.º 5
0
def measurements():
    """Define the produced measurements."""
    return [
        types.MeasurementDef(LATENCY, "millisecond"),
        types.MeasurementDef(PKT_LOSS, "percentage")
    ]