[nanomsg] Re: Nanomsg List Alive?

  • From: Matthew Hall <mhall@xxxxxxxxxxxxxxx>
  • To: nanomsg@xxxxxxxxxxxxx
  • Date: Fri, 10 Feb 2017 14:47:53 -0800

On Tue, Feb 07, 2017 at 12:51:27PM -0800, Garrett D'Amore wrote:

falling over around only 2K threads

It would help to see a bit more specifics what went wrong for you here.

Generally you can do 10K or 20K moderately active sockets on one epoll or 
kqueue.

Not to mention multiple thousand processes or threads (internally they're 
really the same) in Linux NPTL w/ O(1) scheduler according to IBM's 
benchmarking after those were added to the kernel.

This sort of performance could almost surely not be replicated outside of 
Linux, BSD, or Solaris however.

If however you're making entire threads for single sockets, or trying to pass 
the sockets between threads, that will work very badly. Particularly with UDP 
sockets, which sadly still don't have good ways of making associativity 
between different connections through the same socket descriptor.

Matthew.

Other related posts: