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

   ## Summary
   
   Size the IOB self-test from the free pool instead of fixed counts:
   
   - The two copy threads size their buffers from iob_navail(false) and
     iob_navail(true), keeping two buffers of headroom.
   - The main chain copy sizes the chain from iob_navail(false) minus four
     buffers, and skips the test when the pool has no room.
   - This prevents the test from hanging when other tasks hold part of the
     pool.
   
   ## Impact
   
   * Is new feature added? NO - test fix.
   * Impact on user: NO
   * Impact on build: NO
   * Impact on hardware: NO
   * Impact on documentation: NO
   * Impact on security: NO
   * Impact on compatibility: NO
   
   ## Testing
   
   Build host: Linux x86_64, NuttX CI Docker image.
   
   Configuration: sim:nsh with CONFIG_MM_IOB=y and CONFIG_TESTING_IOB=y.
   
   ```
   nsh> iob
   iob_test!!
   ...
   nothrottled thread 0 statistic failed_count 0 success_count 10000
   nothrottled thread 1 statistic failed_count 0 success_count 10000
   throttled thread 0 statistic failed_count 0 success_count 10000
   throttled thread 1 statistic failed_count 0 success_count 10000
   ```
   
   All copy/trim/reserve phases and both throttled and non-throttled
   thread phases complete without failures.
   
   ## PR verification
   
   * [x] This PR introduces only one functional change.
   * [x] I have updated all required description fields above.
   * [x] My PR adheres to Contributing Guidelines and Documentation.
   * [ ] My PR is still work in progress (not ready for review).
   * [x] My PR is ready for review and can be safely merged into a codebase.
   


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