
On Wed, 11 Dec 2019 23:17:48 -0500 Kyle Stanley <aeros167@gmail.com> wrote:
TL;DR: It's definitely possible to have more than one client per TCP port.
Thanks for correcting me. Not sure why, but I appear to make that mistake once every couple years.
I'm have no idea what the realistic maximum limit of global FDs would be for most modern servers though, but here's the upper bound limit on Linux kernel 5.3.13:
[aeros:~]$ cat /proc/sys/fs/file-max 9223372036854775807
Looks like 2**63 - 1 to me :-)
I recall reading somewhere that per additional 100 file descriptors, it requires approximately 1MB of main memory.
More than file descriptors per se, what's relevant here is the per-TCP connection overhead (unless you're interested in keeping closed TCP sockets around?). Which I guess is related to the latency*bandwidth product. Regards Antoine.