On Wed, 21 Dec 2016 17:45:13 +0800 Yuanhan Liu <yuanhan....@linux.intel.com> wrote:
> From: Jan Wickbom <jan.wick...@ericsson.com> > > Currently select() is used to monitor file descriptors for vhostuser > ports. This limits the number of ports possible to create since the > fd number is used as index in the fd_set and we have seen fds > 1023. > This patch changes select() to poll(). This way we can keep an > packed (pollfd) array for the fds, e.g. as many fds as the size of > the array. > > Also see: > http://dpdk.org/ml/archives/dev/2016-April/037024.html > > Reported-by: Patrik Andersson <patrik.r.anders...@ericsson.com> > Signed-off-by: Jan Wickbom <jan.wick...@ericsson.com> > Signed-off-by: Yuanhan Liu <yuanhan....@linux.intel.com> Why not epoll()? It scales much better. The old System V poll is just as bad with 1023 fd's.