[naviserver-devel] Driver with epoll

2007-01-23 Thread Vlad Seryakov
Hi, I was playing with epoll and changed driver to see if performance will be better with it. Using ab utility i actually got worse performance with epoll, i suspect may be i implemented it not very effectively.

Re: [naviserver-devel] Driver with epoll

2007-01-23 Thread Zoran Vasiljevic
Am 23.01.2007 um 17:14 schrieb Vlad Seryakov: and lighttpd also uses sendfile which is faster than user-spave read-send operation fastpath uses There you go. They do it all in kernel. I guess this can't be beat. Anyways, it is good to know where we stand.

Re: [naviserver-devel] Driver with epoll

2007-01-23 Thread Stephen Deasey
On 1/23/07, Zoran Vasiljevic [EMAIL PROTECTED] wrote: Am 23.01.2007 um 17:14 schrieb Vlad Seryakov: and lighttpd also uses sendfile which is faster than user-spave read-send operation fastpath uses There you go. They do it all in kernel. I guess this can't be beat. Anyways, it is good to

Re: [naviserver-devel] Driver with epoll

2007-01-23 Thread Vlad Seryakov
How are you using ab? What exactly are you testing? ab -n 1000 -n 15 http://localhost/1 And remember why poll() is inefficient: it's the scanning of the array of active file descriptors. The whole array needs to be scanned even if only one socket has a new event. Therefore you'd expect

Re: [naviserver-devel] Driver with epoll

2007-01-23 Thread Vlad Seryakov
We do not need it, using sendfile as etc has its own limitations, only for static files, no templates and other dynamic stuff. For only static files lighttpd is fine and it is more effective to use it instead of using naviserver Stephen Deasey wrote: On 1/23/07, Zoran Vasiljevic [EMAIL