Why is my scheduling policy is 0 (SCHED_NORMAL) but priority is 20 as well?

Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I have a device which is running linux 2.6.36.
There is no file, "sched", in /proc/pid. So I use /proc/pid/stat to see what priority is being used.
The "stat" shows (as below) that my priority is 20 but in the meanwhile my policy is 0 as well.
[root]cat stat
3001 (asterisk) S 1 3001 3001 0 -1 4194624 3041 0 25 0 288 157 0 0 20 0 31 0 5426 33370112 2225 2147483647 4194304 6332812 2146804640 2146799784 728612916 0 0 4100 1074937859 4294967295 0 0 18 0 0 0 0 0 0
(Note: https://elixir.bootlin.com/linux/v2.6.36/source/Documentation/filesystems/proc.txt
Table 1-4: Contentxxxx in the above link shows the meaning of stat contents. The 18th and 41th items are priority and policy respectively.)
My question:
As I know, priority 0-99 should be RT scheduling which policy should be SHCED_FIFO or SCHED_RR. How can I have SCHED_NORMAL (policy = 0) and my priority is 20 (between 0-99)? Isn't this a conflict or how can I interpret these information?
scheduling priority
add a comment |Â
up vote
0
down vote
favorite
I have a device which is running linux 2.6.36.
There is no file, "sched", in /proc/pid. So I use /proc/pid/stat to see what priority is being used.
The "stat" shows (as below) that my priority is 20 but in the meanwhile my policy is 0 as well.
[root]cat stat
3001 (asterisk) S 1 3001 3001 0 -1 4194624 3041 0 25 0 288 157 0 0 20 0 31 0 5426 33370112 2225 2147483647 4194304 6332812 2146804640 2146799784 728612916 0 0 4100 1074937859 4294967295 0 0 18 0 0 0 0 0 0
(Note: https://elixir.bootlin.com/linux/v2.6.36/source/Documentation/filesystems/proc.txt
Table 1-4: Contentxxxx in the above link shows the meaning of stat contents. The 18th and 41th items are priority and policy respectively.)
My question:
As I know, priority 0-99 should be RT scheduling which policy should be SHCED_FIFO or SCHED_RR. How can I have SCHED_NORMAL (policy = 0) and my priority is 20 (between 0-99)? Isn't this a conflict or how can I interpret these information?
scheduling priority
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have a device which is running linux 2.6.36.
There is no file, "sched", in /proc/pid. So I use /proc/pid/stat to see what priority is being used.
The "stat" shows (as below) that my priority is 20 but in the meanwhile my policy is 0 as well.
[root]cat stat
3001 (asterisk) S 1 3001 3001 0 -1 4194624 3041 0 25 0 288 157 0 0 20 0 31 0 5426 33370112 2225 2147483647 4194304 6332812 2146804640 2146799784 728612916 0 0 4100 1074937859 4294967295 0 0 18 0 0 0 0 0 0
(Note: https://elixir.bootlin.com/linux/v2.6.36/source/Documentation/filesystems/proc.txt
Table 1-4: Contentxxxx in the above link shows the meaning of stat contents. The 18th and 41th items are priority and policy respectively.)
My question:
As I know, priority 0-99 should be RT scheduling which policy should be SHCED_FIFO or SCHED_RR. How can I have SCHED_NORMAL (policy = 0) and my priority is 20 (between 0-99)? Isn't this a conflict or how can I interpret these information?
scheduling priority
I have a device which is running linux 2.6.36.
There is no file, "sched", in /proc/pid. So I use /proc/pid/stat to see what priority is being used.
The "stat" shows (as below) that my priority is 20 but in the meanwhile my policy is 0 as well.
[root]cat stat
3001 (asterisk) S 1 3001 3001 0 -1 4194624 3041 0 25 0 288 157 0 0 20 0 31 0 5426 33370112 2225 2147483647 4194304 6332812 2146804640 2146799784 728612916 0 0 4100 1074937859 4294967295 0 0 18 0 0 0 0 0 0
(Note: https://elixir.bootlin.com/linux/v2.6.36/source/Documentation/filesystems/proc.txt
Table 1-4: Contentxxxx in the above link shows the meaning of stat contents. The 18th and 41th items are priority and policy respectively.)
My question:
As I know, priority 0-99 should be RT scheduling which policy should be SHCED_FIFO or SCHED_RR. How can I have SCHED_NORMAL (policy = 0) and my priority is 20 (between 0-99)? Isn't this a conflict or how can I interpret these information?
scheduling priority
asked Mar 7 at 9:19
Wu Yuan Chun
11
11
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
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f428699%2fwhy-is-my-scheduling-policy-is-0-sched-normal-but-priority-is-20-as-well%23new-answer', 'question_page');
);
Post as a guest
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
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
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