You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2021/01/19 09:56:44 UTC

[GitHub] [incubator-nuttx] anchao opened a new pull request #2719: sched/task: setup the scheduling policy to task

anchao opened a new pull request #2719:
URL: https://github.com/apache/incubator-nuttx/pull/2719


   ## Summary
   
   sched/task: setup the scheduling policy to task
   
   ## Impact
   
   kthread_create / nxtask_create
   
   ## Testing
   
   enable  CONFIG_RR_INTERVAL 
   
   
   before:
   ```
   ap> ps
     PID GROUP PRI POLICY   TYPE    NPX STATE    EVENT     SIGMASK   STACK   USED  FILLED    CPU COMMAND
       0     0   0 FIFO     Kthread N-- Ready              00000000 003072 001408  45.8%   98.9% Idle Task
       1     1 253 FIFO     Kthread --- Waiting  Signal    00000000 003060 000432  14.1%    0.0% hpwork
       2     1 253 FIFO     Kthread --- Waiting  Signal    00000000 003060 000432  14.1%    0.0% hpwork
       3     1 253 FIFO     Kthread --- Waiting  Signal    00000000 003060 000432  14.1%    0.0% hpwork
       4     1 100 FIFO     Kthread --- Waiting  Signal    00000000 004084 001704  41.7%    0.0% lpwork
       9     6 253 RR       pthread --- Waiting  Semaphore 00000000 008168 000496   6.0%    0.0% ....
      10     6 100 RR       pthread --- Waiting  Signal    00000000 003076 000480  15.6%    0.0% ....
      11     6 252 RR       pthread --- Waiting  MQ empty  00000000 010216 001472  14.4%    0.0% ....
      12     6 252 RR       pthread --- Waiting  MQ empty  00000000 008168 000684   8.3%    0.0% ....
      13     6 252 RR       pthread --- Waiting  Semaphore 00000000 004072 001584  38.8%    0.0% ....
      14     6 224 FIFO     Kthread --- Waiting  Signal    00000002 004060 000512  12.6%    0.0% ....
      17    -1 100 FIFO     Task    --- Running            00000000 004084 001568  38.3%    0.5% init
      19     9  80 FIFO     Task    --- Waiting  Semaphore 00000000 004084 000640  15.6%    0.0% usrsock
      21     6 101 RR       pthread --- Waiting  MQ empty  00000000 004100 000560  13.6%    0.0% ....
      22     6 253 RR       pthread --- Waiting  MQ empty  00000000 004072 001496  36.7%    0.0% ....
   ```
   
   
   ```
   ap> ps
     PID GROUP PRI POLICY   TYPE    NPX STATE    EVENT     SIGMASK   STACK   USED  FILLED    CPU COMMAND
       0     0   0 FIFO     Kthread N-- Ready              00000000 003072 001408  45.8%   98.9% Idle Task
       1     1 253 RR       Kthread --- Waiting  Signal    00000000 003060 000432  14.1%    0.0% hpwork
       2     1 253 RR       Kthread --- Waiting  Signal    00000000 003060 000432  14.1%    0.0% hpwork
       3     1 253 RR       Kthread --- Waiting  Signal    00000000 003060 000432  14.1%    0.0% hpwork
       4     1 100 RR       Kthread --- Waiting  Signal    00000000 004084 001704  41.7%    0.0% lpwork
       9     6 253 RR       pthread --- Waiting  Semaphore 00000000 008168 000496   6.0%    0.0% ....
      10     6 100 RR       pthread --- Waiting  Signal    00000000 003076 000480  15.6%    0.0% ....
      11     6 252 RR       pthread --- Waiting  MQ empty  00000000 010216 001472  14.4%    0.0% ....
      12     6 252 RR       pthread --- Waiting  MQ empty  00000000 008168 000684   8.3%    0.0% ....
      13     6 252 RR       pthread --- Waiting  Semaphore 00000000 004072 001584  38.8%    0.0% ....
      14     6 224 RR       Kthread --- Waiting  Signal    00000002 004060 000512  12.6%    0.0% ....
      17    -1 100 RR       Task    --- Running            00000000 004084 001568  38.3%    0.5% init
      19     9  80 RR       Task    --- Waiting  Semaphore 00000000 004084 000640  15.6%    0.0% usrsock
      21     6 101 RR       pthread --- Waiting  MQ empty  00000000 004100 000560  13.6%    0.0% ....
      22     6 253 RR       pthread --- Waiting  MQ empty  00000000 004072 001496  36.7%    0.0% ....
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-nuttx] acassis merged pull request #2719: sched/task: setup the scheduling policy to task

Posted by GitBox <gi...@apache.org>.
acassis merged pull request #2719:
URL: https://github.com/apache/incubator-nuttx/pull/2719


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org