g2gps opened a new pull request, #2150:
URL: https://github.com/apache/nuttx-apps/pull/2150

   Add port of the sdstress utility from PX4-Autopilot:  
https://github.com/PX4/PX4-Autopilot
   
   ## Summary
   
   Used in conjunction with https://github.com/apache/nuttx/pull/10478 , This 
tool is useful for verifying correct operation of SD, EMMC, or other 
mountpoints.
   
   Relevant Kconfig options:
   ```
   CONFIG_ALLOW_BSD_COMPONENTS=y
   CONFIG_TESTING_SD_STRESS=m
   CONFIG_TESTING_SD_STRESS_PROGNAME="sdstress"
   CONFIG_TESTING_SD_STRESS_PRIORITY=100
   CONFIG_TESTING_SD_STRESS_STACKSIZE=8192
   CONFIG_TESTING_SD_STRESS_DEVICE="/mnt"
   ```
   
   Help prompt:
   ```
   nsh> sdstress -h
   Stress test on a mount point
   sdstress: [-r] [-b] [-f]
     -r   Number of runs (1-10000), default 32
     -b   Number of bytes (1-10000), default 4096
     -f   Number of files (1-999), default 64
   ```
   
   Example usage:
   ```
   nsd> sdstress -b 4096 -f 8 -r 4
   Start stress test with 32 files, 4096 bytes and 5 iterations.
   iteration 0 took 4063.445 ms: OK
   iteration 1 took 4158.073 ms: OK
   iteration 2 took 4216.130 ms: OK
   iteration 3 took 4295.138 ms: OK
   iteration 4 took 4352.903 ms: OK
   Test OK: Average time: 4217.138 ms
   ```
   
   ## Impact
   
   Aids in testing of block devices, caching and file systems.
   
   ## Testing
   
   Local usage with https://github.com/apache/nuttx/pull/10478
   


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