On Fri, Jul 13, 2012 at 08:33:11PM +0800, Liu Yuan wrote: > The real benefit is, as I described before, that requests from different > sources (be it from peer recovery req or io req, or gateway req) can > overlap each other, I think this will improve the scalability and will > work out better performance. Well, I think I should test the patch with > several real boxes than on one box, because one disk shared by several > sheep might hide the real benefit. > > I don't think per-connection thread model will work out. The big problem > is that, we will use too many threads for one sheep: > > nr_threads = nr_node * 8 + nr_vm > > For e.g, for 1k node setup, we'll have 8000+ threads at most! This will > be definitely a problem. 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. |