mtcp-stack / mtcp

mTCP: A Highly Scalable User-level TCP Stack for Multicore Systems
Other
1.96k stars 432 forks source link

Simple ping-pong mTCP app - slow ping (0.016 sec on a direct 10G connection) - mTCP not production-ready #306

Open vitalif opened 3 years ago

vitalif commented 3 years ago

Hi. I managed to get mTCP up and running. To accomplish that I did the following:

Then I wrote a simple ping-pong app that basically sends 4096 byte packets and receives them back. HOWEVER, the result is sad. Ping-pong time is 16 MILLIseconds on a direct 10G connection (Intel X520 <> Solarflare SFN7122F), with 100% CPU usage. I suspect there's a usleep(16000) but I can't easily tell where it is :-). I see mTCP lacks NODELAY, maybe that's the cause, MTU configuration is also lacking. No idea if you're watching issues here, but maybe... maybe you'll see this one :) Anyway I'm probably going to try F-Stack because mTCP seems more like a toy project than a production-ready library...