Open GoogleCodeExporter opened 9 years ago
Value of -1 for VMA_RX_POLL and VMA_SELECT_POLL means infinite polling (until
data arrive) with no going to sleep.
This mean that each thread will use 100% cpu at all time.
If all of them running on the same cpu core, you will experience a "hang like"
behavior since one thread keep the others from running most of the time.
The best solution is to separate the threads to different cpu cores.
Another solution is to use small positive values for this parameters.
Currently, this parameters cannot be selectively applied to UDP/TCP.
But, there is no real limitation here, the code can be changed relatively easy
to have different parameters for UDP and TCP.
Original comment by orkmella...@gmail.com
on 10 Jul 2014 at 10:18
Would be great to apply different polling parameters per protocol or per FD
even.
I've too many TCP connections to assign dedicated CPU core for each but much
less UDP channels.
Original comment by denis.iv...@gmail.com
on 10 Jul 2014 at 10:25
Original issue reported on code.google.com by
denis.iv...@gmail.com
on 8 Jul 2014 at 1:46