Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable Sequential Rule Evaluation with Conditional Continuation #23

Open
SystemXFiles opened this issue Sep 28, 2024 · 0 comments
Open
Labels
enhancement New feature or request P:Med Medium prority

Comments

@SystemXFiles
Copy link
Owner

Summary

Add a feature allowing the utility to continue evaluating subsequent rules after applying the current one. The current rule can specify whether to continue searching for more rules (e.g., with a special flag). If the rule permits further evaluation, the utility will continue applying additional rules, enhancing flexibility in process management.

Basic example

For instance, you may need to set the CPU affinity for an application to all cores initially, and after a delay of 10 seconds, change it to cores 0-1. This can be achieved with two rules:

  1. Rule 1: Set CPU affinity to cores 0-7, with a flag allowing the search for subsequent rules.
  2. Rule 2: After a 10-second delay, update CPU affinity to cores 0-1.

With this new feature, the utility will apply both rules sequentially: first setting affinity to all cores, then switching to a more restrictive set of cores after the delay.

Motivation

This feature enables more flexible process management where stepwise changes to settings are needed. For example, initially allowing full CPU usage and later restricting it after a certain period. It supports advanced use cases like dynamic changes in affinity or priority based on conditions. The expected outcome is enhanced process control and greater flexibility in configuring rules.

@SystemXFiles SystemXFiles added enhancement New feature or request P:Med Medium prority labels Sep 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request P:Med Medium prority
Projects
None yet
Development

No branches or pull requests

1 participant