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

Asymmetrical treatment of "priority" and "policy" #118

Open
douglas-raillard-arm opened this issue Mar 3, 2021 · 0 comments
Open

Asymmetrical treatment of "priority" and "policy" #118

douglas-raillard-arm opened this issue Mar 3, 2021 · 0 comments

Comments

@douglas-raillard-arm
Copy link

"priority" and "policy" keys are not treated on the same ground.

Given the base configuration:

{
	  "global": {
		    "duration": -1,
		    "calibration": 265,
		    "lock_pages": false,
		    "logdir": "./"
	  },
	  "tasks": {
		    "invar0": {
		        "loop": 1,
		        "phases": {
			          "phase1": {
			              "policy": "SCHED_FIFO",
			              "priority": 15,
			              "run": 10,
			          },
			          "phase2": {
			              "run": 10,
			          }
		        }
		    }
	  }
}

If "phase2" gets policy=SCHED_FIFO, the priority will be reset to the default value instead of 15 being preserved. If "phase2" gets priority=15, the policy will not get reset and will still be FIFO.

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

No branches or pull requests

1 participant