Skip to content

Conversation

@alan-maguire
Copy link
Member

tuners can support multiple strategies; strategies should be set in the init() method via bpftune_strategies_add(). A strategy specifies a

  • name
  • description
  • timeout
  • evaluation function
  • set of bpf program names in tuner associated with strategy

The current strategy runs until timeout, then the evaluation functions for all strategies are called; we then switch to the strategy with the highest evaluation. See tests/strategy for an example of a tuner implementing multiple strategies.

tuners can support multiple strategies; strategies should be
set in the init() method via bpftune_strategies_add().  A
strategy specifies a
 - name
 - description
 - timeout
 - evaluation function
 - set of bpf program names in tuner associated with strategy

The current strategy runs until timeout, then the evaluation
functions for all strategies are called; we then switch to
the strategy with the highest evaluation.  See tests/strategy
for an example of a tuner implementing multiple strategies.
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Jul 20, 2023
@alan-maguire alan-maguire merged commit 36476da into main Jul 20, 2023
@alan-maguire alan-maguire deleted the strategy branch December 2, 2024 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant