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

client and wrapper: fix process priority mismatch #3988

Merged
merged 1 commit into from Aug 28, 2020

Conversation

davidpanderson
Copy link
Contributor

It turns out we have two different encodings of process priority:

  1. specified in cc_config.xml and used by the client: 0 (low) to 4 (high)
  2. specified in job.xml and used by the wrapper: 1 (low) to 5 (high).

This didn't cause any problems until recently when I added code
to pass the cc_config.xml info to the wrapper;
it was interpreting it on the 1-5 scale.

Fix: have the wrapper convert it (add one).

Also: I forgot to have the client actually put the priority into
in the app_init_data.xml file.

It turns out we have two different encodings of process priority:
1) specified in cc_config.xml and used by the client: 0 (low) to 4 (high)
2) specified in job.xml and used by the wrapper: 1 (low) to 5 (high).

This didn't cause any problems until recently when I added code
to pass the cc_config.xml info to the wrapper;
it was interpreting it on the 1-5 scale.

Fix: have the wrapper convert it (add one).

Also: I forgot to have the client actually put the priority into
in the app_init_data.xml file.
@@ -747,7 +747,10 @@ int TASK::run(int argct, char** argvt) {
priority_val = 0;
} else {
if (aid.process_priority > 0) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please also change this test to

if (aid.process_priority > CONFIG_PRIORITY_UNSPECIFIED) {

@CharlieFenton CharlieFenton merged commit 548cf03 into master Aug 28, 2020
CharlieFenton added a commit that referenced this pull request Aug 28, 2020
client and wrapper: fix process priority mismatch

(cherry picked from commit 548cf03)
@AenBleidd AenBleidd added this to In progress in BOINC Client/Manager via automation Sep 10, 2020
@AenBleidd AenBleidd moved this from In progress to Done in BOINC Client/Manager Sep 10, 2020
@AenBleidd AenBleidd removed this from Done in BOINC Client/Manager Aug 4, 2021
@AenBleidd AenBleidd added this to In progress in Client Release 7.20.0 via automation Aug 4, 2021
@AenBleidd AenBleidd moved this from In progress to Done in Client Release 7.20.0 Aug 4, 2021
@AenBleidd AenBleidd deleted the dpa_priority2 branch August 15, 2023 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

4 participants