Reduce netsimd CPU usage

- In aosp/3044938, callng libslirp_main_loop_wait() in a separate thread
  improved Wi-Fi performance but caused higher CPU usage
- Reduced CPU usage by calling the libslirp_main_loop_wait() every 1 ms
  instead of 10 us
- CPU usage droped from 20 to ~5 %
- iperf3 performance remains the same: ~66 Mbits/sec

Bug: 337161678
Test: ninja
Change-Id: I848c34438f5aea49dea4d031e20e6bf924bf1268
1 file changed
tree: 1780e7599d059c45eda1d3848a1c28c01203fb83
  1. cmake/
  2. doc/
  3. guide/
  4. pdl/
  5. proto/
  6. rust/
  7. scripts/
  8. src/
  9. testing/
  10. ui/
  11. .clang-format
  12. .gitignore
  13. Android.bp
  14. cmake-format.json
  15. CMakeLists.txt
  16. dummy.c
  17. LICENSE
  18. OWNERS
  19. README.md
  20. TEST_MAPPING
README.md

netsim - a network simulation tool for multi-device use cases

Netsim is a development stage open-source tool for testing and analysis of android multi-device apps and frameworks. It offers radio level control and HCI tracing.