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/06/24 02:54:14 UTC

[GitHub] [incubator-nuttx] masayuki2009 commented on pull request #3919: tcp iob throttling related fixes

masayuki2009 commented on pull request #3919:
URL: https://github.com/apache/incubator-nuttx/pull/3919#issuecomment-867294665


   @yamt 
   
   I noticed that a telnet connection is unstable when tested nxplayer with spresense:rndis_smp.
   The test repeats the following sequence during playback audio files with nxplayer.
   
   1. connect to the telnet daemon to spresense
   2. execute several commands (i.e. ps/free/ifconfig) via telnet
   3. exit the telnet connection
   4. sleep 1 second and repeat 1/2/3
   
   The following is the telnet command log and we can see that some Telnet sessions still alive, 
   even though the connection had been closed and finally it reached the max TCP connections.
   
   ```
   sh> cat /proc/uptime 
       247.29 
   nsh> ps 
     PID CPU PRI POLICY TYPE NPX STATE EVENT SIGMASK STACK USED FILLED COMMAND 
       0 0 0 FIFO Kthread N-- Running 00000000 000976 000408 41.8% CPU0 IDLE 
       1 1 0 FIFO Kthread N-- Assigned 00000000 000976 000236 24.1% CPU1 IDLE 
       3 --- 224 RR Kthread --- Waiting Signal 00000000 002032 000660 32.4% hpwork 
       4 --- 100 RR Kthread --- Waiting Signal 00000000 002032 000636 31.2% lpwork 
       5 --- 100 RR Task --- Waiting Semaphore 00000000 003056 001620 53.0% init 
       6 --- 200 RR Task --- Waiting MQ empty 00000000 001000 000480 48.0% cxd56_pm_task 
       7 --- 100 RR Task --- Waiting Semaphore 00000000 002008 000708 35.2% Telnet daemon 0x2d064450 
     104 --- 100 RR Task --- Waiting Semaphore 00000000 003048 001516 49.7% Telnet session 
      10 --- 100 RR Task --- Waiting Semaphore 00000000 003048 001044 34.2% nxplayer 
      11 --- 246 RR pthread --- Waiting MQ empty 00000000 003072 000828 26.9% playthread 0x2d066c10 
      12 --- 252 RR pthread --- Waiting MQ empty 00000000 001024 000468 45.7% cxd56 0x2d062b70 
      13 --- 100 RR Kthread --- Waiting Semaphore 00000000 001000 000492 49.2% telnet_io 
     142 --- 100 RR Task --- Waiting Semaphore 00000000 003048 001516 49.7% Telnet session 
     143 1 100 RR Task --- Running 00000000 003048 001500 49.2% Telnet session 
     113 --- 100 RR Task --- Waiting Semaphore 00000000 003048 001516 49.7% Telnet session 
      19 --- 100 RR Task --- Waiting Semaphore 00000000 003048 001516 49.7% Telnet session 
      20 --- 100 RR Task --- Waiting Semaphore 00000000 003048 001516 49.7% Telnet session 
     124 --- 100 RR Task --- Waiting Semaphore 00000000 003048 001516 49.7% Telnet session 
      29 --- 100 RR Task --- Waiting Semaphore 00000000 003048 001516 49.7% Telnet session 
   nsh> free 
                        total used free largest nused nfree 
           Umem: 1204592 236064 968528 968528 278 1 
   nsh> ifconfig 
   lo Link encap:Local Loopback at UP 
   inet addr:127.0.0.1 DRaddr:127.0.0.1 Mask:255.0.0.0 
   
   eth0 Link encap:Ethernet HWaddr 00:e0:de:ad:be:ff at UP 
   inet addr:10.0.1.20 DRaddr:10.0.1.1 Mask:255.255.255.0 
   
                IPv4 TCP UDP ICMP 
   Received aa54 aa26 0000 0014 
   Dropped 001a 02b3 0000 0000 
     IPv4 VHL: 0000 Frg: 0000 
     Checksum 0000 0000 0000 ---- 
     TCP ACK: 0000 SYN: 0000 
                 RST: 0006 0006 
     Type 0000 ---- ---- 0000 
   Sent d1b8 d1a4 0000 0014 
     Rexmit ---- 0001 ---- ---- 
   nsh> exit 
   Connection closed by foreign host. 
   Trying 10.0.1.20... 
   Connected to 10.0.1.20. 
   Escape character is '^]'. 
   Traceback (most recent call last): 
     File "./expect_nuttx_telnetd_test.py 
   
   ```
   


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