masayuki2009 commented on PR #7318:
URL: https://github.com/apache/incubator-nuttx/pull/7318#issuecomment-1279950194

   @xiaoxiang781216 
   
   >Hmm, I noticed that 'hello' application not found with spresense:wifi_smp
   
   The issue does not happen now but 'spresense:posix_spawn' has a problem that 
does not show 'the stdin redirection test'
   
   With this PR
   
   ```
   Initial memory usage: 5312
   Registering romdisk at /dev/ram0
   
   Memory Usage after romdisk_register:
     Before:     5312 After:     5392 Change:       80
   Mounting ROMFS filesystem at target=/mnt/romfs with source=/dev/ram0
   
   Memory Usage after mount:
     Before:     5392 After:     5760 Change:      368
   
   ****************************************************************************
   * Executing hello
   ****************************************************************************
   
   
   Memory Usage after file_action/attr init:
     Before:     5760 After:     5760 Change:        0
   
   Memory Usage before posix_spawn:
     Before:     5760 After:     5760 Change:        0
   Getting ready to say "Hello, world"
   
   Hello, world!
   It has been said.
   
   argc = 4
   argv = 0x0x2d017ea8
   argv[0]      = (0x0x2d017ebc) "hello"
   argv[1]      = (0x0x2d017ec2) "Argument 1"
   argv[2]      = (0x0x2d017ecd) "Argument 2"
   argv[3]      = (0x0x2d017ed8) "Argument 3"
   argv[4]      = 0x0
   Goodbye, world!
   
   Memory Usage after posix_spawn:
     Before:     5760 After:     7984 Change:     2224
   
   Memory Usage after file_action/attr destruction:
     Before:     7984 After:     7984 Change:        0
   
   ****************************************************************************
   * Executing redirect
   ****************************************************************************
   
   
   Memory Usage after file_action/attr init:
     Before:     7984 After:     7984 Change:        0
   
   Memory Usage after adding file_actions:
     Before:     7984 After:     5856 Change:    -2128
   
   Memory Usage before posix_spawn:
     Before:     5856 After:     5856 Change:        0
   ERROR: posix_spawn failed: 2
   
   Memory Usage after posix_spawn:
     Before:     5856 After:     7056 Change:     1200
   
   Memory Usage after file_action/attr destruction:
     Before:     7056 After:     6960 Change:      -96
   
   Memory Usage End-of-Test:
     Before:     6960 After:     6960 Change:        0
   ```
   
   The latest master
   
   ```
   Initial memory usage: 5312
   Registering romdisk at /dev/ram0
   
   Memory Usage after romdisk_register:
     Before:     5312 After:     5392 Change:       80
   Mounting ROMFS filesystem at target=/mnt/romfs with source=/dev/ram0
   
   Memory Usage after mount:
     Before:     5392 After:     5760 Change:      368
   
   ****************************************************************************
   * Executing hello
   ****************************************************************************
   
   
   Memory Usage after file_action/attr init:
     Before:     5760 After:     5760 Change:        0
   
   Memory Usage before posix_spawn:
     Before:     5760 After:     5760 Change:        0
   Getting ready to say "Hello, world"
   
   Hello, world!
   It has been said.
   
   argc = 4
   argv = 0x0x2d017ea8
   argv[0]      = (0x0x2d017ebc) "hello"
   argv[1]      = (0x0x2d017ec2) "Argument 1"
   argv[2]      = (0x0x2d017ecd) "Argument 2"
   argv[3]      = (0x0x2d017ed8) "Argument 3"
   argv[4]      = 0x0
   Goodbye, world!
   
   Memory Usage after posix_spawn:
     Before:     5760 After:     7984 Change:     2224
   
   Memory Usage after file_action/attr destruction:
     Before:     7984 After:     7984 Change:        0
   
   ****************************************************************************
   * Executing redirect
   ****************************************************************************
   
   
   Memory Usage after file_action/attr init:
     Before:     7984 After:     7984 Change:        0
   
   Memory Usage after adding file_actions:
     Before:     7984 After:     5856 Change:    -2128
   
   Memory Usage before posix_spawn:
     Before:     5856 After:     5856 Change:        0
   Entering the stdin redirection test
   Now is the time for all good men to come to the aid of their party.
   Exit-ing the stdin redirection test
   
   Memory Usage after posix_spawn:
     Before:     5856 After:     9280 Change:     3424
   
   Memory Usage after file_action/attr destruction:
     Before:     9280 After:     9184 Change:      -96
   
   Memory Usage End-of-Test:
     Before:     9184 After:     9184 Change:        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.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

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

Reply via email to