Skip to content

Add duty cycle parameters to multiload#52

Merged
seranian merged 1 commit into
google:masterfrom
yunlianj:feature-enable-burst-traffic
May 21, 2026
Merged

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

Conversation

@yunlianj
Copy link
Copy Markdown
Contributor

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.
@seranian seranian merged commit b7bb237 into google:master May 21, 2026
2 checks passed
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.

2 participants