Skip to main content

TraceVolumeScenario

Serving scenarios · Implementation: mlsysim/engine/scenario_definitions/serving.py.

Construct this scenario with keyword inputs. The fields below show the types and defaults declared by this class.

A profiler trace of window on every one of devices devices.

Notes

Equation: aggregate trace bytes = device count * per-device trace bytes.

Assumptions: Each device emits the supplied volume for the same observation window.

Excludes: Trace compression, sampling changes, collection overhead, and retention beyond the stated window.

References

Derivation: aggregate trace bytes = device count * per- device trace bytes. The individual properties state units and intermediate accounting; this class introduces no fitted coefficient.

Examples

The named scenario supplies illustrative inputs; the output is calculated.

>>> from mlsysim import Scenarios
>>> case = Scenarios.NsightTraceVolume1K
>>> round(float(case.total.to('GB').magnitude), 3)
512.0

Attributes

Name Description
devices
per_device
total Aggregate trace storage in GB, per-device volume times device count.
window

per_device

Type: Quantity.

Declared default: required.

devices

Type: int.

Declared default: required.

window

Type: Quantity.

Declared default: required.

total

engine.scenario_types.TraceVolumeScenario.total

Aggregate trace storage in GB, per-device volume times device count.

Equation: return (per_device * devices).to('GB').

Back to top