Maximum number of nodes?

Guus Sliepen guus at tinc-vpn.org
Tue Jul 12 09:23:03 CEST 2011


On Tue, Jul 12, 2011 at 08:43:24AM +0200, Flynn Marquardt wrote:

> > There is no limit in tinc itself. However, each known node uses a few kilobytes
> > of memory (worst case), and by default you can only have 1024 open
> > filedescriptors, which limits the amount of nodes that you can ConnectTo. So if
> > you have a star topology, the central node can only maintain meta connections
> > with approximately 1000 nodes. This does not affect UDP communication though.
> 
> The limit of 1024 file descriptors is only a default value under
> Linux/UNIX, it can changed
> by calling
> 
>        ulimit -n nr
> 
> (nr number of open file descriptors) before starting tinc. I never
> tested this with tinc, but with lighttpd it works perfect.

There is another limit; tinc 1.0.x uses the FD_SET macro to manipulate an
fdset_t, and that can only hold 1024 fds. Tinc 1.1 uses libevent, and that
doesn't have a limit as far as I know.

-- 
Met vriendelijke groet / with kind regards,
     Guus Sliepen <guus at tinc-vpn.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://www.tinc-vpn.org/pipermail/tinc/attachments/20110712/cf474073/attachment.pgp>


More information about the tinc mailing list