Re: kqueue examples?

2006-10-24 Thread Iantcho Vassilev
On 10/24/06, Mark Bucciarelli <[EMAIL PROTECTED]> wrote: On Tue, Oct 24, 2006 at 11:03:34AM +0800, Adrian Chadd wrote: > On 10/24/06, Mark Bucciarelli <[EMAIL PROTECTED]> wrote: > >On Mon, Oct 23, 2006 at 02:21:07PM +0800, Adrian Chadd wrote: > >> > >> Has anyone come across some network softwar

Re: kqueue examples?

2006-10-24 Thread Mark Bucciarelli
On Tue, Oct 24, 2006 at 11:03:34AM +0800, Adrian Chadd wrote: > On 10/24/06, Mark Bucciarelli <[EMAIL PROTECTED]> wrote: > >On Mon, Oct 23, 2006 at 02:21:07PM +0800, Adrian Chadd wrote: > >> > >> Has anyone come across some network software which uses kqueue > >> "differently" to the above ? > > >

Re: kqueue examples?

2006-10-23 Thread Adrian Chadd
On 10/24/06, Mark Bucciarelli <[EMAIL PROTECTED]> wrote: On Mon, Oct 23, 2006 at 02:21:07PM +0800, Adrian Chadd wrote: > > Has anyone come across some network software which uses kqueue > "differently" to the above ? lighttpd uses kqueue. Don't know how "different" it is. Again its pretty sim

Re: kqueue examples?

2006-10-23 Thread Mark Bucciarelli
On Mon, Oct 23, 2006 at 02:21:07PM +0800, Adrian Chadd wrote: > > Has anyone come across some network software which uses kqueue > "differently" to the above ? lighttpd uses kqueue. Don't know how "different" it is. m ___ freebsd-performance@freebsd.o

Re: kqueue examples?

2006-10-23 Thread Mike Horwath
On Tue, Oct 24, 2006 at 07:49:47AM +0800, Adrian Chadd wrote: > On 10/24/06, Mike Horwath <[EMAIL PROTECTED]> wrote: > > > > >I haven't dug into it yet, but dovecot is using kqueue() on FreeBSD. > > > >http://dovecot.org/ > > Its a pretty simplistic use of kevent(); at least it is in 1.0r7 which

Re: kqueue examples?

2006-10-23 Thread Adrian Chadd
On 10/24/06, Mike Horwath <[EMAIL PROTECTED]> wrote: I haven't dug into it yet, but dovecot is using kqueue() on FreeBSD. http://dovecot.org/ Its a pretty simplistic use of kevent(); at least it is in 1.0r7 which I have here. (Single submission of events to kevent() rather than bunching them

Re: kqueue examples?

2006-10-23 Thread Mike Horwath
On Mon, Oct 23, 2006 at 02:21:07PM +0800, Adrian Chadd wrote: > All I've found thus far (and I hope I'm not to blame for my initial > hackings of kqueue in a few bits of software!) are simple > level-triggered uses which don't seem much better than Linux epoll or > Solaris /dev/poll. Even libevent

kqueue examples?

2006-10-22 Thread Adrian Chadd
Hi all, I'm currently fiddling with writing a 'simple' TCP proxy for FreeBSD which uses kqueue to handle IO. I've been looking for examples of kqueue code which uses all the cute features of kqueue to "optimise" things, eg "hinting" at send/recv size, whether EOF has been seen, setting the buffer