On 07/14/2012 03:44 PM, Christoph Hellwig wrote: > True. I still like the idea of doing the epoll in the actual threads > instead of doing constant context switching and/or thread creation and > destruction. I am using threaded tr/tx to overlap requests, constant context has nothing to do with threaded tx/rx, it is the issue of threading implementation. We can have static threads pool to heal this, but, I don't think context switching will be that costy because threads will do disk IO. If you stick to your idea, I am not against it if you can solve the too many connection problems. Well, even with this change, we can easily modify the threaded tr/rx to adopt to the new design too. Thanks, Yuan |