[Haskell-cafe] Optimizing a high-traffic network architecture
simonmar at microsoft.com
Fri Dec 16 11:06:13 EST 2005
On 16 December 2005 15:19, Lennart Augustsson wrote:
> John Meacham wrote:
>> On Thu, Dec 15, 2005 at 02:02:02PM -0000, Simon Marlow wrote:
>>> With 2k connections the overhead of select() is going to start to
>>> be a problem. You would notice the system time going up.
>>> -threaded may help with this, because it calls select() less often.
>> we should be using /dev/poll on systems that support it.
> And kqueue for systems that support that. Much, much more efficient
> than select.
Yeah, yeah. We know. We just haven't got around to doing anything
about it :-( It's actually quite fiddly to hook this up to Handles -
see Einar's implementation in Network.Alt for instance.
Simon (who wished he hadn't mentioned select() again)
More information about the Haskell-Cafe