Can I reschedule a process to real time scheduling?
up vote
0
down vote
favorite
I'm running some stuff in a python script. At one point there's a few lines of code where I need the timing to be exactly the same every time. The time isn't important - just consistency. Unfortunately, the real world time delay between those things varies by 100s of ms. I assume this because other things taking up processing time in inconsistent amounts.
Is there a way I could do something like renicing, but into real time scheduling just before executing those commands, and then turn it off afterwards so background stuff can resume?
I've tried just renicing the whole script execution to -20 but that only helps a bit.
I can't leave python, the critical stuff contains calls to third party libraries.
python scheduling nice priority
add a comment |
up vote
0
down vote
favorite
I'm running some stuff in a python script. At one point there's a few lines of code where I need the timing to be exactly the same every time. The time isn't important - just consistency. Unfortunately, the real world time delay between those things varies by 100s of ms. I assume this because other things taking up processing time in inconsistent amounts.
Is there a way I could do something like renicing, but into real time scheduling just before executing those commands, and then turn it off afterwards so background stuff can resume?
I've tried just renicing the whole script execution to -20 but that only helps a bit.
I can't leave python, the critical stuff contains calls to third party libraries.
python scheduling nice priority
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I'm running some stuff in a python script. At one point there's a few lines of code where I need the timing to be exactly the same every time. The time isn't important - just consistency. Unfortunately, the real world time delay between those things varies by 100s of ms. I assume this because other things taking up processing time in inconsistent amounts.
Is there a way I could do something like renicing, but into real time scheduling just before executing those commands, and then turn it off afterwards so background stuff can resume?
I've tried just renicing the whole script execution to -20 but that only helps a bit.
I can't leave python, the critical stuff contains calls to third party libraries.
python scheduling nice priority
I'm running some stuff in a python script. At one point there's a few lines of code where I need the timing to be exactly the same every time. The time isn't important - just consistency. Unfortunately, the real world time delay between those things varies by 100s of ms. I assume this because other things taking up processing time in inconsistent amounts.
Is there a way I could do something like renicing, but into real time scheduling just before executing those commands, and then turn it off afterwards so background stuff can resume?
I've tried just renicing the whole script execution to -20 but that only helps a bit.
I can't leave python, the critical stuff contains calls to third party libraries.
python scheduling nice priority
python scheduling nice priority
asked yesterday
argentum2f
1135
1135
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f482082%2fcan-i-reschedule-a-process-to-real-time-scheduling%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown