AW: Py2.7/FreeBSD: maximum number of open files

2011-11-14 Thread Tobias Oberstein
> > I just confirmed that the bug is even there for FreeBSD 9 RC1 ! > > > > This is most unfortunate. Seriously. > > W00t, that sucks! You could migrate to another BSD (NetBSD) or Linux ... :) No, thanks;) > > I am running out of options, since I am willing to make my stuff > > Python 3 compatib

AW: Py2.7/FreeBSD: maximum number of open files

2011-11-14 Thread Tobias Oberstein
> > > > I need 50k sockets + 100 files. > > > > > > Thus, this is even more strange: the Python (a Twisted service) > > > > will happily accept 50k sockets, but as soon as you do open() a file, > > > > it'll > bail out. > > > > > A limit of 32k smells like a overflow in a signed int. Perhaps your

AW: Py2.7/FreeBSD: maximum number of open files

2011-11-14 Thread Tobias Oberstein
> > I need 50k sockets + 100 files. > > > > Thus, this is even more strange: the Python (a Twisted service) will > > happily accept 50k sockets, but as soon as you do open() a file, it'll bail > > out. > > A limit of 32k smells like a overflow in a signed int. Perhaps your system is > able and co

AW: Py2.7/FreeBSD: maximum number of open files

2011-11-14 Thread Tobias Oberstein
> I'm not familiar with BSD but Linux has similar Kernel options. The kernel > options might be *global* flags to set the total upper limit of open file > descriptors for the entire system, not for a single process. > Also on Linux "ulimit" doesn't display the fd limit. You have to use "ulimit > -