Files changed (1)
The send/received ratios remain similar, and the average per client too. The core of the chat server can thus theoretically handle over 15000 users sending each other messages every 5 second without too much degradation in response time per user. Note that at that point, the shut down of processes became a bit hard on my laptop and user timeouts started appearing (after the results were done and clients disconnected).
-Here are the memory statistics, done with [[http://github.com/whoppix/erlang-statistics|erlang-statistics]] on a
300 seconds run.
+Here are the memory statistics, done with [[http://github.com/whoppix/erlang-statistics|erlang-statistics]] on a .
Half the memory seems to be taken by the processes themselves, and the other half by what they contain. It is likely the message history in each user (10 messages each, max) is what's driving it up. The drop near 11:10 is likely the 10th message being swapped out across many users.
On this one, the huge IO peak is the benchmark code announcing the creation of each user process. It falls down afterwards, once the real messaging begins.
Real world trials would be needed to further show reliability of Chut's core, but so far I'm pretty satisfied with the results.