Skip to main content

SyscallTaxScenario

Agents scenarios · Implementation: mlsysim/engine/scenario_definitions/agents.py.

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

calls ordinary system calls priced by the terms each isolation envelope pays.

Notes

Equation: Result = mlsysim.solvers.SyscallTaxModel.solve with the named scenario fields; no extra fitting or postprocessing is applied.

Assumptions: The supplied inputs use the units and validity regime documented by SyscallTaxModel.solve; this class binds one reproducible configuration.

Excludes: Any behavior excluded by SyscallTaxModel.solve, and measurement or calibration of the supplied inputs.

References

Implementation reference: mlsysim.solvers.SyscallTaxModel.solve documents the composed equation and its sources.

Examples

The named registry scenario supplies the stated inputs; this is a modeled calculation, not a new measurement.

>>> from mlsysim import Scenarios
>>> scenario = Scenarios.SyscallTaxPerMillionCalls
>>> round((scenario.result.container_call).to('μs').magnitude, 6)
0.15

Attributes

Name Description
calls
emulate
filter
result Return mlsysim.solvers.SyscallTaxModel.solve for this scenario; output fields retain the units and feasibility semantics specified by that solver.
switch
trap

calls

Type: int.

Declared default: required.

trap

Type: Quantity.

Declared default: required.

filter

Type: Quantity.

Declared default: required.

emulate

Type: Quantity.

Declared default: required.

switch

Type: Quantity.

Declared default: required.

result

engine.scenario_types.SyscallTaxScenario.result

Return mlsysim.solvers.SyscallTaxModel.solve for this scenario; output fields retain the units and feasibility semantics specified by that solver.

Equation: mlsysim.solvers.SyscallTaxModel.solve (scenario fields).

Back to top