[dpdk-dev] [PATCH v6] vhost: allow for many vhost user ports

Stephen Hemminger stephen at networkplumber.org
Wed Dec 21 19:06:36 CET 2016


On Wed, 21 Dec 2016 17:45:13 +0800
Yuanhan Liu <yuanhan.liu at linux.intel.com> wrote:

> From: Jan Wickbom <jan.wickbom at 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.andersson at ericsson.com>
> Signed-off-by: Jan Wickbom <jan.wickbom at ericsson.com>
> Signed-off-by: Yuanhan Liu <yuanhan.liu at linux.intel.com>

Why not epoll()? It scales much better. The old System V poll
is just as bad with 1023 fd's.



More information about the dev mailing list