masayuki2009 commented on PR #9297:
URL: https://github.com/apache/nuttx/pull/9297#issuecomment-1581744463

   >@masayuki2009 Thanks, we figure out the reason and update the patch, new 
test results are also updated, could you take a look?
   
   @CV-Bowen 
   Now rv-virt:knetnsh64_smp works but it seems that the performance is not 
good compared to the latest master.
   
   With this PR,
   
   ```
   NuttShell (NSH) NuttX-10.2.0
   nsh> uname -a
   NuttX  10.2.0 73ba318ed8 Jun  8 2023 09:37:54 risc-v rv-virt
   nsh> ps
     PID GROUP CPU PRI POLICY   TYPE    NPX STATE    EVENT     SIGMASK          
 STACK   USED  FILLED COMMAND
       0     0   0   0 FIFO     Kthread N-- Assigned           0000000000000000 
003024 001592  52.6%  CPU0 IDLE
       1     1   1   0 FIFO     Kthread N-- Running            0000000000000000 
003024 000584  19.3%  CPU1 IDLE
       2     2   2   0 FIFO     Kthread N-- Running            0000000000000000 
003024 000584  19.3%  CPU2 IDLE
       3     3   3   0 FIFO     Kthread N-- Running            0000000000000000 
003024 000584  19.3%  CPU3 IDLE
       4     4 --- 224 RR       Kthread --- Waiting  Semaphore 0000000000000000 
001952 000408  20.9%  hpwork 0x80205988
       5     5 --- 100 RR       Kthread --- Waiting  Semaphore 0000000000000000 
001952 000408  20.9%  lpwork 0x802059b8
       6     6   0 100 RR       Task    --- Running            0000000000000000 
002976 001720  57.7%  /system/bin/init
       7     7 --- 100 RR       Task    --- Waiting  Semaphore 0000000000020000 
001968 000648  32.9%  telnetd
   nsh> free
                      total       used       free    largest  nused  nfree
           Kmem:    1945936     115968    1829968    1826800     83      5
           Page:    4194304    1277952    2916352    2916352
   nsh> iperf -s -i 1
        IP: 10.0.2.15
   
    mode=tcp-server sip=10.0.2.15:5001,dip=0.0.0.0:5001, interval=1, time=0
   accept: 10.0.2.2:42966
   
              Interval         Transfer         Bandwidth
   
      0.00-   1.01 sec   21740920 Bytes  172.21 Mbits/sec
      1.01-   2.02 sec   17514024 Bytes  138.72 Mbits/sec
      2.02-   3.03 sec   17508692 Bytes  138.68 Mbits/sec
      3.03-   4.04 sec   17411632 Bytes  137.91 Mbits/sec
      4.04-   5.05 sec   17481728 Bytes  138.47 Mbits/sec
   ```
   
   With the latest master,
   
   ```
   NuttShell (NSH) NuttX-12.0.0
   nsh> uname -a
   NuttX  12.0.0 b89215a11f Jun  8 2023 09:46:10 risc-v rv-virt
   nsh> ps
     PID GROUP CPU PRI POLICY   TYPE    NPX STATE    EVENT     SIGMASK          
 STACK   USED  FILLED COMMAND
       0     0   0   0 FIFO     Kthread N-- Assigned           0000000000000000 
003024 001592  52.6%  CPU0 IDLE
       1     1   1   0 FIFO     Kthread N-- Running            0000000000000000 
003024 000584  19.3%  CPU1 IDLE
       2     2   2   0 FIFO     Kthread N-- Running            0000000000000000 
003024 000584  19.3%  CPU2 IDLE
       3     3   3   0 FIFO     Kthread N-- Running            0000000000000000 
003024 000584  19.3%  CPU3 IDLE
       4     4 --- 224 RR       Kthread --- Waiting  Semaphore 0000000000000000 
001952 000408  20.9%  hpwork 0x80205778
       5     5 --- 100 RR       Kthread --- Waiting  Semaphore 0000000000000000 
001952 000408  20.9%  lpwork 0x802057a8
       6     6   0 100 RR       Task    --- Running            0000000000000000 
002976 001720  57.7%  /system/bin/init
       7     7 --- 100 RR       Task    --- Waiting  Semaphore 0000000000020000 
001968 000648  32.9%  telnetd
   nsh> free
                      total       used       free    largest  nused  nfree
           Kmem:    1945936      38496    1907440    1906672     92      3
           Page:    4194304    1277952    2916352    2916352
   nsh> iperf -s -i 1
        IP: 10.0.2.15
   
    mode=tcp-server sip=10.0.2.15:5001,dip=0.0.0.0:5001, interval=1, time=0
   accept: 10.0.2.2:49160
   
              Interval         Transfer         Bandwidth
   
      0.00-   1.02 sec   25213764 Bytes  197.76 Mbits/sec
      1.02-   2.03 sec   25088640 Bytes  198.72 Mbits/sec
      2.03-   3.04 sec   25368960 Bytes  200.94 Mbits/sec
      3.04-   4.05 sec   25217120 Bytes  199.74 Mbits/sec
      4.05-   5.06 sec   25193760 Bytes  199.55 Mbits/sec
   ```


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to