[Haskell-cafe] FreeBSD: Max # of sockets opened
dot at dotat.at
Tue Dec 13 13:11:52 EST 2005
On Tue, 13 Dec 2005, Joel Reymont wrote:
> It looks like 'ulimit -n' on FreeBSD lets you have 10k+ file descriptors open
> per process. FD_SETSIZE is 1024 in the system headers, though. GHC relies on
> this value (see ghc/rts/Select.c).
FD_SETSIZE is actually dynamic on FreeBSD (at least from the kernel's
point of view - the macros are less so). You can re-set it to whatever
value you like at compile time (e.g. gcc -DFD_SETSIZE=10240).
f.a.n.finch <dot at dotat.at> http://dotat.at/
BISCAY: WEST 5 OR 6 BECOMING VARIABLE 3 OR 4. SHOWERS AT FIRST. MODERATE OR
More information about the Haskell-Cafe