mtcp-stack / mtcp

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

Empty log files #242

Open awaisather opened 5 years ago

awaisather commented 5 years ago

I have tweaked make file options to enable log creation but all my log_ files remain empty after each run. Anyone know about this issue?.I am trying to debug my code which i have implemented in mTCP is there a was to print outputs on the console which runs when running epserver/epwget,printf() does not works it breaks the app.

ajamshed commented 5 years ago

@awaisather,

Apologies for the delayed response. You need to un-comment line 44 from mtcp/src/Makefile. The macro DBGMSG should get log_ file(s) populated. I just discovered that the source code gives a compile-time error when this is enabled. You need to replace line 130 in mtcp/src/io_module.c from TRACE_DBG to TRACE_INFO for the time being. I will patch up this fix in my next commit.

awaisather commented 5 years ago

Why a single flows throughput does not increase 1.4-1.5 gbps, when i try multiple concurrency i can fill my 10 gbps throughput, but when i use single request i.e. single concurrency the throughput does not go beyond 1.5 gbps

eunyoung14 commented 5 years ago

I think it's a matter of the buffer size in the configuration. Please try to set the buffer enough large to fully utilize 10G. The default value is set to 8K, which is good for large concurrency, but could limit the per-flow performance.