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

The name of the pictureThe name of the pictureThe name of the pictureClash 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?







share|improve this question
























    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?







    share|improve this question






















      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?







      share|improve this question












      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?









      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 7 at 9:19









      Wu Yuan Chun

      11




      11

























          active

          oldest

          votes











          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );








           

          draft saved


          draft discarded


















          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



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes










           

          draft saved


          draft discarded


























           


          draft saved


          draft discarded














          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













































































          Popular posts from this blog

          Peggy Mitchell

          Palaiologos

          The Forum (Inglewood, California)