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

Bulat Ziganshin bulatz at HotPOP.com
Thu Dec 15 13:57:51 EST 2005

Hello Joel,

Thursday, December 15, 2005, 5:13:17 PM, you wrote:
>>> The statistics are phys/VM, CPU usage in % and #packets/transfer
>>> speed
>>> Total:   1345, Lobby:   1326, Failed:  0, 102/184, 50%, 90/8kb
>>> Total:   1395, Lobby:   1367, Failed:  2
>>> Total:   1421, Lobby:   1394, Failed:  4
>>> Total:   1490, Lobby:   1463, Failed:  4, 108/194, 50%, 110/11Kb
>>> Total:   1574, Lobby:   1546, Failed:  4, 113/202, 50%, 116/11kb
>> Hmm, your machine is spending 50% of its time doing nothing, and the
>> network traffic is very low.  I wouldn't expect 2k connections to pose
>> any problem at all, so further investigation is definitely required.

JR> That's CPU utilization by the program. My laptop is actually running  
JR> a lot of other stuff as well, although the other stuff is not  
JR> consuming much CPU.

if your program has something to do, but cpu usage is less that 100%,
this means (at least in windows), that your program is just works in
some system calls, which waits for hardware. for example, read from
disk. your program may wait for network i/o, logging i/o. try to
disable using these code parts and see how cpu utilization will

Best regards,
 Bulat                            mailto:bulatz at HotPOP.com

More information about the Haskell-Cafe mailing list