Skip to content

Add duty cycle parameters to multiload#52

Open
yunlianj wants to merge 1 commit into
google:masterfrom
yunlianj:feature-enable-burst-traffic
Open

Add duty cycle parameters to multiload#52
yunlianj wants to merge 1 commit into
google:masterfrom
yunlianj:feature-enable-burst-traffic

Conversation

@yunlianj
Copy link
Copy Markdown

This change adds -i (interval) and -u (active duration) flags to multiload to allow running the workload with a specified duty cycle.

  • Added load_interval_ns and load_active_ns to thread data.
  • Added CHECK_DUTY_CYCLE macro using absolute time (now_nsec() % interval_ns) to synchronize threads.
  • Updated all load functions to use the macro.
  • Added argument parsing and usage info in main.

This change adds -i (interval) and -u (active duration) flags to multiload to allow running the workload with a specified duty cycle.

- Added load_interval_ns and load_active_ns to thread data.
- Added CHECK_DUTY_CYCLE macro using absolute time (now_nsec() % interval_ns) to synchronize threads.
- Updated all load functions to use the macro.
- Added argument parsing and usage info in main.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant