Hi

I have an experimental branch at 
https://github.com/clbr/monkey/commits/mallocless that removes all dynamic 
memory allocation from the hot path. On a typical siege run, this dropped the 
amount of malloc calls from 400k to 700 :)

Will help memory fragmentation and possibly speed. I didn't measure any speed 
difference, but monkey may be hitting some other bottleneck on my system.

On the other hand, because of the pre-allocation of the client_session pool, 
idle ram use grows ~2.7mb (with the default ulimit -n = 1024). Even so, I think 
it's completely reasonable, and since we know the maximum amount of sessions, 
makes much sense to preallocate instead of doing it anew for each connection. 
Repeated work for no gain, that.

- Lauri
_______________________________________________
Monkey mailing list
[email protected]
http://lists.monkey-project.com/listinfo/monkey

Reply via email to