romange / helio

A modern framework for backend development based on io_uring Linux interface
Apache License 2.0
435 stars 49 forks source link

feat: enable direct-fd sockets #196

Closed romange closed 9 months ago

romange commented 9 months ago
  1. Fixed socket migration code.
  2. Enabled direct-fd feature for server side sockets for kernels that support it.
  3. Added some stats about cqe completions to uring_proactor.
  4. Added maxclients flag to echo_server.

memtier load: memtier_benchmark -s 172.31.36.182 --command=PING -t 16 -c 18 -n 60000 --hide-histogram --distinct-client-seed

dragonfly on helio master

==================================================================================================
Type         Ops/sec    Avg. Latency     p50 Latency     p99 Latency   p99.9 Latency       KB/sec
--------------------------------------------------------------------------------------------------
Pings      968745.62         0.30147         0.30300         0.43900         0.51900     19866.85

dragonfly on this PR:

==================================================================================================
Type         Ops/sec    Avg. Latency     p50 Latency     p99 Latency   p99.9 Latency       KB/sec
--------------------------------------------------------------------------------------------------
Pings     1083269.17         0.28287         0.27900         0.42300         0.51100     22215.48
codecov-commenter commented 9 months ago

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (507a49a) 79.32% compared to head (04c916d) 78.94%.

Files Patch % Lines
util/fibers/uring_proactor.cc 66.66% 2 Missing :warning:
util/fibers/uring_socket.cc 96.00% 1 Missing :warning:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #196 +/- ## ========================================== - Coverage 79.32% 78.94% -0.39% ========================================== Files 100 100 Lines 7511 7527 +16 ========================================== - Hits 5958 5942 -16 - Misses 1553 1585 +32 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.