RE: [Haskell-cafe] Optimizing a high-traffic network architecture

16 Dec
2005
16 Dec
'05
11:06 a.m.
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. Cheers, Simon (who wished he hadn't mentioned select() again)
7100
Age (days ago)
7100
Last active (days ago)
0 comments
1 participants
participants (1)
-
Simon Marlow